473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

SuEXEC patch to work FastCGI with PHP

Hello!

I'm searching patch for Apache SuEXEC (1.3.*) which get me gate to work PHP
(compiled with --enable-fastcgi) with mod_fastcgi. SuEXEC check owner/group
of script before run script, i don't want this! I have this configuration:

httpd.conf:

[...]
LoadModule fastcgi_module libexec/mod_fastcgi.so
[...]
FastCgiWrapper /usr/local/apache/bin/suexec
FastCgiServer /usr/local/apache/php/php -user www -group www
AddHandler php-fastcgi .php
<Location /f-php-cgi/php>
SetHandler fastcgi-script
</Location>
Action php-fastcgi /f-php-cgi/php
AddType application/x-httpd-php .php
Alias /f-php-cgi /usr/local/apache/php
[...]
script: /usr/local/apache/php/php is:

#!/bin/sh
PHPRC="/usr/local/lib/php.ini"
export PHPRC
PHP_FCGI_CHILDREN=4
export PHP_FCGI_CHILDREN
exec /usr/local/bin/php

(script and his parent directory are owned by www/www).

I want to run php scripts with rights of user which are set (User and
Groups) in virtualhost using FastCGI.

Can You help me ?:)
Thank You.
Best regards.

--
Adam Szendzielorz
Jul 17 '05 #1
1 2653
Adam Szendzielorz <ad**@nospam-konta.nospam.pl> wrote in
news:Xn*******************************@193.110.122 .97:
I want to run php scripts with rights of user which are set (User and
Groups) in virtualhost using FastCGI.


OK I now got it - run perfectly:))
Best regards!!

--
Adam Szendzielorz
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris S | last post by:
Hi, I have been running PHP as a CGI for a few months now (using suExec patch @ http://www.localhost.nl/patches/apache_1.3.27-php-suexec-patch). I decided to upgrade to version 4.3.2 (from 4.3.1)....
0
by: Joan McGalliard | last post by:
My web host has turned on PHP SuExec, which has completely broken my site, and they don't seem to be able to give me information. Google search is hopeless for this, as "html" appears on most...
0
by: Henri Vilminko | last post by:
I installed the Zend PHP enabler for Sun ONE Web Server which is basically a wrapper to run PHP in fastcgi mode. The interpreter runs fine but there's one nasty problem: PHP doesn't use the PHPRC...
0
by: venkatbo | last post by:
Hi folks, I'm trying to get lighttpd, fastcgi & python working on a 2.4.21.x i686 linux system. I tried following the steps in: ...
5
by: howachen | last post by:
hi, which package you perfer? mod_php on apache is okay but some people said fastcgi version of php is faster, is it true? thanks...
37
by: Joshua Ruppert | last post by:
When I'm using FastCGI do I need to code differently than I do when using regular CGI? Because the PHP.exe processes don't go away do global variables stick around from page request to page...
7
by: Vincent Delporte | last post by:
Hello I'm interested in hearing reflections by seasoned web app developpers about the different ways to write PHP apps, and especially how they compare in terms of performance, whether it's the...
2
by: Sanders Kaufman | last post by:
I'm working on a webhost that seems to have an undocumented feature. I inadvertently coded a link to "mydomain.com//" - with TWO trailing slashes. When I clicked the link, Apache returned this...
2
by: FastCGI | last post by:
I must admit, I am somewhat ignorant when it comes to understanding FastCGI at this point, but all I do know is that it is the only way to implement dynamic web pages using C++ that compete on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.