Page 1 of 1

How to define DocumentRoot for different project

Posted: Wed Mar 12, 2014 1:19 pm
by rap
Hello,

I installed phpmyfaq in folder /home/www/phpmyfaq and did the follow settings in /etc/httpd/conf/httpd.conf:
DocumentRoot "/home/www/phpmyfaq"
<Directory "/home/www/phpmyfaq">
So far all is working fine !!

Now I want to establish a 2nd project in /home/www/ip_db and I want to configure /home/www/index.html to
point to the 2 projects as follow:
<td align="center"><a href="phpmyfaq"><img src="images/faq.jpeg" width="200" height="200" alt="FAQ"></a></td>
<td align="center"><a href="ip_db/login.php"><img src="images/network.jpeg" width="200" height="200" alt="IP Management"></a></td>

Therefore I changed /etc/httpd/conf/httpd.conf as follow:
DocumentRoot "/home/www"
<Directory "/home/www">

Unfortunately this does not work for phpmyfaq because all images are missing and there is not format, so only text information.
I guess I have to define $SERVER['DOCUMENT_ROOT'] somewhere in phpmyfaq.

Any ideas?

Re: How to define DocumentRoot for different project

Posted: Thu Mar 13, 2014 8:04 pm
by Thorsten
Hi,

we don't use the document root for phpMyFAQ, I think there's something else what's misconfigured.

bye
Thorsten