PHP as CGI only executed by request from LAN

This is a discussion on PHP as CGI only executed by request from LAN within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, today I've installed PHP 5.0.3 as CGI and want to use it with Apache 1.3....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-09-2005
Nils Heuermann
 
Posts: n/a
Default PHP as CGI only executed by request from LAN

Hello,

today I've installed PHP 5.0.3 as CGI and want to use it with Apache
1.3.27 on Suse 8.2.
PHP 4 is installed as module, too.
PHP5 should only be used in defined directories, otherwise PHP4. That
works, but my problem is the following:
When I open my phpinfo-testpage from an other computer in my LAN, the
PHP-script is correctly executed by PHP5. But when someone from the
internet opens that page, PHP is not executed, so the sourcecode is
the content of the requested file.
The PHP4-Module is working as it should.

My configuration for that in my httpd.conf is the following:

# PHP5
<Directory /usr/local/php5/bin/>
Options +ExecCGI +FollowSymLinks
AllowOverride None
</Directory>

ScriptAlias /php5bin /usr/local/php5/bin/

<Directory /srv/www/htdocs/php5>
Action php5-cgi /php5bin/php
AddHandler php5-cgi .php
</Directory>

Greets,
Nils
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0