0

I install xampp in my Ubuntu 12.10. After installation I deleted index.php inside /opt/lampp/htdocs then I

sudo chmod 777 -R /opt/lampp/htdocs

to create a folder and place my htmls after I placed my files I

sudo chmod 775 -R /opt/lampp/htdocs 

it was running initially when I typed

localhost 

the files within htdocs appeared but when I opened it again (after shutting down my laptop) it was gone. All I can see is

Index of/
Name Lastmodified Size Description
Apache/2.2.22 (Ubuntu) Server at localhost Port80

Please help.

Mestica
  • 147

1 Answers1

0

Most probably you already had an apache installed via the Ubuntu packet management when you installed xampp. You should decide if you really want to use xampp or just use the applications that come with Ubuntu (I personally prefer the latter).

If you want to keep xampp: remove apache2 with sudo apt-get remove apache2 (or with synaptics if you prefer a gui). After that you should be able to start your apache from the xampp installation again.

If you want to use the apps shipped with Ubuntu: the default document root of the apache is in /var/www, the configuration files reside in /etc/apache2. The Ubuntu wiki has loads of information about the configuration and usage.

If you already had apache installed it is possible that you run into similar problems with other services, for example MySQL.