How to change index.php to index..php for xampp on kali linux? - xampp

I can not able to change the index.php file to index..php for xampp on kali linux(Gnome).
when I right click on the file the rename is not enable to change the name of this file. I think I need the root access to change the file name. but how can i access as a root so that I can change the file?

Related

OXID starting on localhost/source, I want to start it at localhost

My OXID store starts on localhost with http://localhost/source, but I just want it to start with http://localhost.
You need to change the DocumentRoot setting in your httpd.conf file. You also have to change the corresponding Directory Setting in the same file. Both should point to the "source" directory. How do I change the root directory of an Apache server?
In your Oxid installation you then have to change the "sShopURL" setting in config.inc.php to http://localhost/, and additionally you have to change "RewriteBase /source" to "RewriteBase /" in your .htaccess file (both of these files are in the "source" directory of your shop).
Remember that you have to remove the write protection from the config.inc.php file in order to edit it. One more Tip: if you are using xampp you can edit the httpd.conf file and restart apache in the xampp control panel.

Xampp redirects to /xampp

I just installed codeIgniter on my xampp but whenever I try to go to it's folder (localhost/ci) , it instead takes me to localhost/xampp
Can't find what else is needed to do.
Rename index.php in your htdocs folder to index1.php,
then try to access http://localhost,
so now you will see Apache's default Directory listing instead of XAMPP homepage.
If you somehow want to move back to the default XAMPP homepage, do rename index1.php to index.php
It's not really necessary to put your codeigniter project in the htdocs folder of xampp. You can also save it somewhere else.
To run it, go to C:\xampp\apache\conf\httpd.conf and replace the line DocumentRoot "/home/user/www" to your liked one.
"index.php" kept in htdocs directory works as redirection.
Open this file with notepad or in other editor.
At this line:
header('Location: '.$uri.'/xampp/');
Replace xampp with the name of your website directory name ie root:
header('Location: '.$uri.'/bulandshahr/');
Your website will work.

www.localhost.com/magento and Index of /magento page shows up

I am trying to install Magento on localhost.
actually, I am a beginner of Magento and stackoverflow.
I have followed guide book and I downloaded Magento sample file.. and unzipped the file at c:/xampp/htdocs/magento
also modified the host file..
whenever I am trying to enter the
www.localhost.com/magento
index of magento page shows up.like ftp server.
How can I open the Magento file as well guide book..
I do not use xammp so I don't know how it's directory structure looks like, but: it looks like you are installing Magento in a subdirectory, right?
If you do so, you have to edit .htaccess. Change RedirectBase to the name of your subdirectory. So here it should be /magento/ And if the RedirectBase line in .htaccess is commented out delete the # at the beginning of that line.
Once magento zip file is unzipped drag the unzipped file in
c:xampp/htdocs/(magento unzipped folder) --->> this is root directory of magento
Now we web browser hit this url
http://localhost/(magento unzipped folder name)
if you are hitting this url first time it asks for configuration and admin url name
to access admin panel
http://localhost/(magento unzipped folder name)/admin url name
That seems to be related with your webserver configuration, and not Magento. If you have Apache, for instance, have a look at your configuration file httpd.conf, and check the line that starts with "DirectoryIndex".
You need to have "index.php" as a valid index file. If you don't, just add it right after DirectoryIndex, restart Apache and it should work fine.
/etc/httpd/conf -> usual location for the httpd.conf file (standard installation, RedHat/CentOS family)
Depending on configuration in the .htaccess file, you might need to specify index.php in the url as such: localhost/magento/index.php or (www.localhost.com/magento/index.php as per your comment) to access it.
Check your virtual host configuration file for the domain name that you are using. If the directory index is missing in the configuration then the apache server will not be able to determine the entry point for the website and will list all of the files.

Changing htdocs directory xampp causing error

I'm working on mac 10.6.8 and I've installed xampp and would like to change where the htdocs files are looked for. I have changed the httpd.conf file in the etc folder within xampp
so the lines now read:
DocumentRoot "/WorkArea/folderforhtml"
I've also changed the directory to that folder
Directory "/WorkArea/folderforhtml"
I've put a test.html folder in that file but when I go to my localhost/test.html I'm getting a 403 error. Is there a permission setting I need to change in order to access these files?
I've restarted the server many times as well.

XAMPP is displaying parent directory

I installed XAMPP on my Windows 2008 server and created a new folder in the HTDOCS folder and the user can access the pages using the link.
For example:
http://1.1.20.305/MyDB/index.php
Will take the user to the index.php page.
But if I enter the following in my browser:
http://1.1.20.305/MyDB/
It displays the parent directory with all the files.
It is a security risk and how do I prevent it from happening? It should auto-route user to the index page or somewhere I define.
I added the .htaccess and .htpasswd file in the directory and the directory is not shown anymore.

Resources