apache2 still looking at var/www somehow
Hi guys - I have installed apache2 on my system and want to change my default directory from:
/var/www/ to, say /home/greg/Documents/programming/php/www/ I've done as much searching as I can with google on this problem but I'm still having trouble trying to have my browser look in a different directory than /var/www/ when I visit http://localhost. Indeed I can't see anything (useable that is) that even knows about /var/www/ with all the messing I've done yet still something knows about it The steps I've carried to do this out are: 0) made the directory above (with a different index.html file) 1) copied (within sites-available) the 000-default file to a file name mySite and changed the directory paths as above (in two instances: DocumentRoot ... and <Directory ...>) 2) run the commands: (I ought to learn exactly what these are doing later) a2dissite default, a2ensite mySite 3) restarted apache2 with service apache2 restart 4) cleared the cache in firefox (because googling for my problem, I found this was a solution for someone else) 5) typed http://localhost in my searchbar result: I'm still going to var/www/ (because I'm seeing the index.html in there and not my new one) I've also edited my (previously empty) httpd.conf file such that it reads as follows: ServerName localhost DocumentRoot /home/greg/Documents/programming/php/www/ I've tried grepping (recursively) for the string "var/www/" in /etc/ and only found the backup files I made of the files 000-default and default-ssl (and I have renamed these just in case they're somehow being loaded - yeah I'm just trying anything) I'm running out of ideas (and coming up short on google). Could there be something incredibly simple I've forgotton? Is there perhaps some configuration file associated to apache (or ubuntu itself) that needs to be changed? |
Quote:
Code:
find / | grep httpd.conf |
Quote:
greg@greg-Aspire-5742:/$ sudo find / | grep httpd.conf /etc/apache2/httpd.conf greg@greg-Aspire-5742:/$ the only thing it found was the one that started off as empty and now contains: ServerName localhost DocumentRoot /home/greg/Documents/programming/php/www/ |
Quote:
|
Quote:
Code:
As a sanity check, what follows is the contents of the sites-enabled directory and whats in the one file sitting there: greg@greg-Aspire-5742:/etc/apache2/sites-enabled$ ls mySite greg@greg-Aspire-5742:/etc/apache2/sites-enabled$ Code:
<VirtualHost *:80> |
I'd do a clean install. What Distro are you using?
|
Quote:
|
The workaround (just to keep things logical for me) I'm going to go with for now is to make a symlink to /var/www/ from within /home/greg/Documents/programming/php/www/
I don't know if I should mark this as solved since though I can get sort of what I want, I haven't got the foggiest idea what's going wrong trying to do it properly! But thanks again for your help anyway :] |
All times are GMT -5. The time now is 02:38 PM. |