Click to See Complete Forum and Search --> : running PHP across virtual servers


jeepin81
06-19-2007, 02:52 PM
Hello and Thanks in Advance!


Here is my issue and sorry if I am vague but this is new to me:

I have a 2 websites running off of an apache server on a iSeries AS/400 and with that I have virtual servers running those sites out of port 8081 but they do not read PHP files.

However, I have ZendCore running off of Port 89 - where I am able to run PHP scripts that are stored in "/www/zendcore/htdocs".


My question is how do I get it to were the websites running off of the port 8081 are able to run PHP scripts?

Do I need to move those entire sites over to the"/www/zendcore/htdocs" directory or is there a way to communicate between them and have them read PHP across all virtual servers and not just Port 89?


Again - Thank You and I look forward to any responses.

J.

jeepin81
06-28-2007, 01:26 PM
well here is where i am at now - maybe somebody knows if this correct?

1.) I want to add this Virtual Host Statement to the /www/zendcore/conf/httpd.conf. Using the i5/OS?


<VirtualHost myIP:8081>
ServerName myIP.com
DocumentRoot /www/awdweb/docs
ProxyReverse On
ProxyPass / http://myIP:8081/
ProxyPassReverse / http://myIP:8081/
<Directory /www/awdweb/docs>
Order Allow,Deny
Allow From all
</Directory>
</VirtualHost>


2.) I need to make an alias in /usr/local/zend/apache2/conf

Alias /myinst/www/awdweb/docs
<Directory /myinst>
Order allow,deny
Allow from all
</Directory>


3.) Once this is complete - I can add .php files to the ' www/awdweb/docs ' and it will be able to understand the .php?


Also, does anyone know what is the best program to use to edit the " .conf " so I don't lose the formatting?



Let me know if this sounds correct or if I am putting my alias in the wrong .conf files? Maybe it should be placed in the virtual server .conf file - oppossed to the PASE apache conf file?

Regards,
j




Thanks,