LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2009, 12:41 AM   #1
siggma
LQ Newbie
 
Registered: Jul 2007
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
Apache 2.2.9 mpm worker and php5 source formatting


This is a non critical issue but I haven't seen any references elsewhere so I thought I'd ask.

I have a home server running debian 5.0, apache2-mpm-worker, php5.2.9-dotdeb as cgi under fcgid and eaccelerator 2.5.3. It's a tiny little PIII so ram is at a premium. Recently I switched from mpm-prefork to mpm-worker. I also switched from mod_php5 to php-cgi using fcgid. However after the switch my php source formatting disappeared.

When using mod_php5 I could copy a php script to phps and it was nicely formatted in the browser. Now it either strips php tags and dumps what's left or sends it as unrecognized mime type "phps" triggering a download. Has anyone else had this issue with apache2 mpm worker and php-cgi?


Relevant /etc/apache2/sites-enabled/000-default config lines:

#------------- PHP FASTCGI ---------------#
<IfModule mod_fastcgi.c>
ScriptAlias /cgi/ /usr/lib/cgi-bin/
AddHandler php-fastcgi .php
Action php-fastcgi /cgi/php
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>
#-----------------------------------------#

#------------ PHP FASTCGID ---------------#
<IfModule mod_fcgid.c>
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php
DefaultInitEnv PHPRC "/etc/php5/cgi"
MaxRequestsPerProcess 1000
# Maximum number of processes to spawn
MaxProcessCount 100
# Number of seconds of idle time before a php-cgi process is terminated
IPCCommTimeout 120
IdleTimeout 120
ScriptAlias /cgi/ /usr/lib/cgi-bin/
AddHandler php-fcgid .php
Action php-fcgid /cgi/php
</IfModule>
#-----------------------------------------#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache/2.2.9 MPM worker php 5.2.6 and Horde Groupware Webmail Editio hostmaster Linux - Server 0 03-18-2009 02:19 AM
what should i set in worker MPM and prefork MPM? modpriest Linux - Newbie 5 02-21-2008 06:25 PM
Apache - change to worker MPM rjcrews Linux - Software 2 03-22-2006 06:28 AM
cannot load php5 module in apache 2, compile from source parv Linux - Software 6 02-17-2006 04:29 PM
Apache + Suse 9.3 + MPM worker Suinatsa Linux - Software 1 01-31-2006 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration