Current time: 11-27-2024, 09:03 AM Hello There, Guest! (LoginRegister)


Thread Closed 
No PHP Parsing
Author Message
frankwth Offline
Newbie
*

Posts: 9
Joined: Dec 2006
Reputation: 0
Post: #1
No PHP Parsing
Hallo,

I just d/l the latest trunk 20071104 and installed on Debian Etch (netinst). All packages have been installed and the installation script went through w/o problems. When calling my domain I am offered to save a file to disk. Looks like *.php files are not recognized. php -v shows "PHP 5.2.0-8+etch7 (cli)". I have tried to put "AddType application/x-httpd-php .php" into a .htaccess in the gui directory and in the <directory>-entries in "/etc/apache2/sites-available/00_master.conf". No success.

Am I missing something here. The only entries I can see in error.log are:
Code:
[Mon Nov 05 00:31:37 2007] [notice] caught SIGTERM, shutting down
[Mon Nov 05 00:31:39 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Mon Nov 05 00:31:39 2007] [notice] Apache/2.2.3 (Debian) configured -- resuming normal operations

Any help would be appreciated. Thanks in advance

Frank
11-05-2007 04:54 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: No PHP Parsing
have you installed libapache2-mod-fastcgi ?

/J
11-05-2007 05:19 AM
Visit this user's website Find all posts by this user
frankwth Offline
Newbie
*

Posts: 9
Joined: Dec 2006
Reputation: 0
Post: #3
RE: No PHP Parsing
joximu Wrote:have you installed libapache2-mod-fastcgi ?

/J

Yes, all according to the debian-etch package list in the doc directory (incl. the duplicate 'postgrey' Smile )

Kind regards
Frank

SORRY, I just see that aptitude is giving me "No candidate version found for libapache2-mod-fastcgi". So, obviously it is not. I think I have to do some research now. Or, do you have a quick idea.
(This post was last modified: 11-05-2007 05:42 AM by frankwth.)
11-05-2007 05:37 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: No PHP Parsing
Documentation Wrote:Note: Don't forget to add the non-free repository to your Debian apt sources list

or just download the right package from debian...
http://packages.debian.org/stable/web/li...od-fastcgi

/J
11-05-2007 05:55 AM
Visit this user's website Find all posts by this user
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #5
RE: No PHP Parsing
make sure you add the 'non-free' section in your /etc/apt/sources.list
11-05-2007 06:05 AM
Visit this user's website Find all posts by this user
frankwth Offline
Newbie
*

Posts: 9
Joined: Dec 2006
Reputation: 0
Post: #6
RE: No PHP Parsing
Thank you for your help,

found it on google already. After changing the sources.list I got it installed and forced a reload of apache2. To be sure I checked all other packages. Looks like this was the only one on non-free.

But, the problem is still the same. Should I repeat the install? "a2enmod fastcgi" shows me, that the module is enabled.

Thanks again for your help
11-05-2007 06:08 AM
Find all posts by this user
frankwth Offline
Newbie
*

Posts: 9
Joined: Dec 2006
Reputation: 0
Post: #7
Solved the hard way
FYI,

as I used a virtual machine anyway, I did a new installation after making sure to include the non-free sources and installing "libapache2-mod-fastcgi". I did not do a deep research on how to fix the problem if this module is missing BEFORE the installation. Maybe this should be mentioned in the INSTALL-doc to avoid problems for others in the future.

The system is running now and I will start testing tomorrow.

Thanks again for the quick help here in the forum.

Frank
(This post was last modified: 11-05-2007 06:59 AM by frankwth.)
11-05-2007 06:58 AM
Find all posts by this user
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #8
RE: No PHP Parsing
If you didn't have fastcgi installed at setup time (ispcp-setup) you might need to hack around the config files.
This is because ispcp-setup takes the original fastcgi.load and creates a copy called fastcgi_ispcp.conf (adding an <IfModule...) and then disables fastcgi and enables fastcgi_ispcp
11-05-2007 07:01 AM
Visit this user's website Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: No PHP Parsing
But frankwth is right: would be nice if the setup programm says something like:

"hey you idiot, you didn't install all packages..."
(or better :-)

/J
11-05-2007 07:05 AM
Visit this user's website Find all posts by this user
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #10
RE: No PHP Parsing
it already checks for the perl modules, but it doesn't check for the rest
11-05-2007 07:50 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)