Jump to content

Moving apache DocumentRoot


Recommended Posts

Hallo,

 

I have a server (Celeron 500MHz, 128Mb RAM) with Arch Linux at home. It controls network traffic and is also used for my personal pages, eg. PhpWebGallery, which runs on "LAMP".

 

The problem Im faced with is that Im unable no move the Apache home directory anywhere but the original location. When I let it in /home/httpd/html everything works fine - but when I move the files anywhere else, static pages (ei. redirect via index.html to /galerie) works well, but php seems to be confused, because instead of index.php a white empty page appears. Of course I have edited the file HTTPD.CONF. When I return the pages at their original place, all is back to normal.

 

My editing of HTTPD.CONF means that I have changed

 

DocumentRoot "/home/httpd/html" ... to ... DocumentRoot "/srv/html"

- and

<Directory "/home/httpd/html"> ... to ... <Directory "/srv/html"> ... or ... <Directory "/srv/html">

 

I understand that this should change the "root" of apache and change the directory which it assigns options.

 

I was unable to find any other place with /home/httpd/html to change. Neither in HTTPD.CONF, PHP.INI nor MY.CNF.

 

Can you please suggest any help? Or let me know about any hints or page with instructions? Thanks in advance!

 

PS: The reason to move the pages is becauce I have a 6gb main HDD and now I have received "new" 60gb HDD to store pages, files and so on.

 

PPS: I have tried to symlink but with the same results.

 

PPPS: My confs (not on my server as it may not be always available)

http://michalurban.kvalitne.cz/add/httpd.conf

http://michalurban.kvalitne.cz/add/php.ini

http://michalurban.kvalitne.cz/add/my.cnf

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.