problem with apache2 configuration

4 posts
by Visumnieks » Sat Jan 12, 2013 11:37 am

I mess around with my apache2 server from time to time and tried to set up opencart_v1.5.4.1 open-source webpage just for fun but after taking it down, apache2 now redirects me to when is opened in browser.

Tried googling how to change index.html/index.php location and came up with some results but non of them works for me. I cant find any entry for edited index location in /etc/apache2/apache2.conf, nor in /etc/apache2/sites-enabled/000-default files.

any ideas which else file may be edited by opencart? Thanks!
Posts: 11
Joined: Sun Jan 06, 2013 8:10 pm
by rpdom » Sat Jan 12, 2013 3:25 pm
I don't know what files may have been modifed by opencart, but you could try
Code: Select all
grep -R install /etc/apache2
It will throw a few false positives, but may find the file you are looking for.
User avatar
Posts: 10696
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK
by Visumnieks » Sat Jan 12, 2013 5:03 pm
weird, nothing useful showed up in apache2 folder..
root@raspberrypi:/etc# grep -R install /etc/apache2
/etc/apache2/apache2.conf:# default Apache2 installation attempts to make adding and removing modules,
/etc/apache2/sites-available/default-ssl: # A self-signed (snakeoil) certificate can be created by installing
Posts: 11
Joined: Sun Jan 06, 2013 8:10 pm
by Visumnieks » Sun Jan 13, 2013 11:18 am
Lol, turns out i didnt delete index.php file in var/www foler. It redirected web browser to non-existing file.
There was nothing wrong with apache2 configuration.

Found the problem by using "grep -R", so thank you rpdom for a great advice! :)
Posts: 11
Joined: Sun Jan 06, 2013 8:10 pm