Jump to content


Photo

Server does not run php files


  • Please log in to reply
1 reply to this topic

#1 rayf

rayf
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 10 May 2006 - 01:21 AM

Hi,
My system is an i686 linux machine (Debian)
Apache is version 2.2.2
php is version 5.1.2

I have enabled fastcgi, mysql

When I point to a .html file is shows and the php parts mostly work (end of php usually shows as text)
When I point to a .php file I get the error message:

"The requested URL /php-fastcgi/php5-fcgi/hello.php was not found on this server."

All attempts to put the hello.php file in different directories has so far failed.

Any help/suggestions on how to get the Apache server to process .php files would be much appreciated.

Thanks,

RF

#2 rayf

rayf
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 May 2006 - 10:54 PM

[!--quoteo(post=372793:date=May 9 2006, 07:21 PM:name=rayf)--][div class=\'quotetop\']QUOTE(rayf @ May 9 2006, 07:21 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Hi,
My system is an i686 linux machine (Debian)
Apache is version 2.2.2
php is version 5.1.2

I have enabled fastcgi, mysql

When I point to a .html file is shows and the php parts mostly work (end of php usually shows as text)
When I point to a .php file I get the error message:

"The requested URL /php-fastcgi/php5-fcgi/hello.php was not found on this server."

All attempts to put the hello.php file in different directories has so far failed.

Any help/suggestions on how to get the Apache server to process .php files would be much appreciated.

Thanks,

RF
[/quote]

Follow Up:

I have gotten the browser to recognize and run php file well now doing two things:

a) remove the two lines that referenced fast-cgi from httpd.conf:

"AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /php-fastcgi/php5-fcgi"

b) made this change in php.ini:

open_basedir = "/usr/local/apache2/htdocs" (the default php document dir)

I never did find out how to satisfy the path or change the path fast-cgi was looking for. but now the browser can access and process php files OK.

RF
[img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users