I have a running XAMPP(lampp)
in the /opt/lampp/htdocs/xampp
directory.
I have downloaded xampp 1.8.2-4
from here
I start xampp by sudo /opt/lampp/lampp start/stop
so whenever I hit localhost it redirects me to localhost/xampp
Now the problem is when I hit localhost/xampp
its showing
Not Found
The requested URL /xampp/ was not found on this server.
Apache/2.4.6 (Ubuntu) Server at localhost Port 80
the problem is my localhost is now pointing to /var/www/index.html
not to /opt
directory
Apache is starting when I type in the terminal:
$ service apache2 start
* Starting web server apache2
Now, after stopping XAMPP by
sudo /opt/lampp/lampp stop
when i hit localhost
its fetching index.html
from var/www
directory with a message
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
How can I make my XAMPP
responds with
sudo /opt/lampp/lampp start
How it can be resolved?
You must change
DocumentRoot
inVirtualHost
File is
/opt/lampp/etc/extra/httpd-vhosts.conf
: