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

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.

Related

Change localhost/htdocs folder in Xampp 8.2

I know this is not a new question but I think something has changed with Xampp in the latest version. I was using Xampp 8.0 and was using another directory to serve as localhost just fine. My Xampp installation is in C:/xampp while my projects are located in D:\Whip\Projects. This is the folder I want to load when using the address localhost.
I changed 2 lines in httpd.conf like I had done several times before
DocumentRoot "D:\Whip\Projects"
<Directory "D:\Whip\Projects">
The folder loads but PHP doesn't work properly. I get errors related to missing session folders and extensions. The problem is in php.ini file the paths are not absolute anymore. For example, in xampp 8.0 I had
session.save_path="C:\xampp\tmp"
In 8.2 I have
session.save_path="\xampp\tmp"
And same thing with extensions directory and all other paths defined in php.ini (and who knows where else). If I manually add C: to the path above, the sessions start working. I'm apprehensive of changing every path like that. Is there a better way to change the htdocs folder now?

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

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?

How to set mydomain.com locally in laravel?

I am new to laravel, and I have installed a fresh copy of laravel. My project root directory is located in E:/xampp/htdocs/myapp and I want this to load on myapp.com in browser how exactly to do this ? I am using laravel 5.2 and xampp for my project.
It is possible with enabling virtual host on your xampp settings. First of all you need to visit E:\xampp\apache\conf\extra\https-vhosts.conf and make some edits. Edit httpd-vhosts.conf file in your favorite editor and add the below code at end of the httpd-vhosts.conf file.
<VirtualHost *:80>
DocumentRoot "E:/xampp/htdocs/yourprojectfolder/public"
ServerName yourdesirename.com
</VirtualHost>
After this you need open notepad as administrator and edit hosts file
(C:\Windows\System32\drivers\etc\hosts)
Note : If hosts file is not showing in the target directory you need to change the select box to 'Show All Files'
and add 127.0.0.1 localhost yourdesirename.com at the end of hosts file, once done now open your browser and type yourdesirename.com and your project will dance live there.
If you're using Laravel 5.2 Valet is a pretty nice tool.

How to point server_x\laravel\submit as root in XAMPP?(windows)

I need to change it in order for the localhost to change its root directory. it will display the web page by default. I've tried changing the apache httpd.conf but then, apache doesn't run.

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.

Resources