michalurban Posted October 6, 2007 Share Posted October 6, 2007 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 Quote Link to comment Share on other sites More sharing options...
michalurban Posted October 6, 2007 Author Share Posted October 6, 2007 Well, thanks for nothing. The solution: I forgot to add /srv/html/ to the open_basedir in php.ini good bye Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.