fredrated451
Programmer
I (new to linux and web development, been working in Windows far too long) am trying to configure Apache to work with Drupal. I am doing this on a Suse Linux machine.
I haven't installed Drupal yet, but Drupal documentation says that if you will be installing multiple sites on one machine, the web root directory should be set to public_html. From browsing Apache it seems that this is controlled by the directive DocumentRoot.
The only place I have found a reference to DocumentRoot is in /etc/apache2/default-server.conf, and the initial value after installing apache is /srv/ Since this directory and it's files are owned by root, I logged in as root, created public_html in the file system root, and copied the directories and files already found in /srv/ to public_html.
Then in /etc/apache2 I edited default-server.conf to change the line
DocumentRoot "/srv/to
DocumentRoot "public_html"
Rebooted the Suse Linux machine as the fastest way to restart Apache (i.e., faster than searching for the proper way to restart Apache assuming there is function to restart), but now when I browse to localhost I get a firefox error "Unable to connect Firefox can't establish a connection..." (Originally I got the 'It Works!' message).
One post suggested DocumentRoot needed to be changed in httpd.conf, but /etc/apache2/httpd.conf has no reference to DocumentRoot. So I added the line
DocumentRoot "public_html"
to httpd.conf
However, I still get the firefox 'can't connect' error.
Are there any suggestions on how to properly change the web root directory? Was I correct in thinking this is controlled by DocumentRoot, and if so, how do I properly change it to /public_html?
Thanks in advance for any help. Fred
I haven't installed Drupal yet, but Drupal documentation says that if you will be installing multiple sites on one machine, the web root directory should be set to public_html. From browsing Apache it seems that this is controlled by the directive DocumentRoot.
The only place I have found a reference to DocumentRoot is in /etc/apache2/default-server.conf, and the initial value after installing apache is /srv/ Since this directory and it's files are owned by root, I logged in as root, created public_html in the file system root, and copied the directories and files already found in /srv/ to public_html.
Then in /etc/apache2 I edited default-server.conf to change the line
DocumentRoot "/srv/to
DocumentRoot "public_html"
Rebooted the Suse Linux machine as the fastest way to restart Apache (i.e., faster than searching for the proper way to restart Apache assuming there is function to restart), but now when I browse to localhost I get a firefox error "Unable to connect Firefox can't establish a connection..." (Originally I got the 'It Works!' message).
One post suggested DocumentRoot needed to be changed in httpd.conf, but /etc/apache2/httpd.conf has no reference to DocumentRoot. So I added the line
DocumentRoot "public_html"
to httpd.conf
However, I still get the firefox 'can't connect' error.
Are there any suggestions on how to properly change the web root directory? Was I correct in thinking this is controlled by DocumentRoot, and if so, how do I properly change it to /public_html?
Thanks in advance for any help. Fred