How to define DocumentRoot for different project

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
rap
Posts: 5
Joined: Mon Mar 10, 2014 4:22 pm

How to define DocumentRoot for different project

Post 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?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to define DocumentRoot for different project

Post by Thorsten »

Hi,

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

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply