Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I compiled PHP 4.0 as CGI binary and I have got it in /usr/local/bin. Then I configured my Apache server and added lines to httpd.conf:
ScriptAlias /php/ "/usr/local/bin/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php
... and I can open PHP file, but only if it is localized in Apache's DocumentRoot (/var/apache/htdocs). My Apache's ServerRoot is /var/apache. I would like to create directory /var/apache/php to keep PHP files there and open PHP files using URL: I tried very hard to configure Apache to make it behaviours in this way, but it still do not. What should I change in httpd.conf?
Thanks,
Wojtek.
I compiled PHP 4.0 as CGI binary and I have got it in /usr/local/bin. Then I configured my Apache server and added lines to httpd.conf:
ScriptAlias /php/ "/usr/local/bin/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php
... and I can open PHP file, but only if it is localized in Apache's DocumentRoot (/var/apache/htdocs). My Apache's ServerRoot is /var/apache. I would like to create directory /var/apache/php to keep PHP files there and open PHP files using URL: I tried very hard to configure Apache to make it behaviours in this way, but it still do not. What should I change in httpd.conf?
Thanks,
Wojtek.