473,805 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_CHILDR EN=4
export PHP_FCGI_CHILDR EN
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 2676
Adam Szendzielorz <ad**@nospam-konta.nospam.pl > wrote in
news:Xn******** *************** ********@193.11 0.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
2190
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). I configured 4.3.2 exactly the same as 4.3.1 using ./configure --with-mysql --enable-cgi. I did a make install and then copied the /usr/local/bin/php to /usr/local/bin/php4.cgi as that is what the suExec patch is expecting. After replacing the...
0
1900
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 pages. So, while using php suexec, how can I get .html to be processed as php? thanks in advance. joan
0
2198
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 environment variable I set in the config to assign each virtual server a different php.ini file. phpinfo() shows PHPRC correctly among the environment vars but for some reason PHP uses the default compiled-in ini path anyway. Any ideas what might...
0
2197
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: http://www.cleverdevil.org/computing/24/python-fastcgi-wsgi-and-lighttpd Some of the lighttpd.conf setting are slightly different from those in that article - fixing some erros in the original and accounting for some change in entry formats itself.
5
3558
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
3992
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 request, creating the need for better managment / pooling of DB connections? Josh
7
25726
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 PHP part or connections to MySQL. As far as I know, there are different ways to write a PHP application: - CGI, ie. the usual way : some PHP code in web pages, and the PHP interpreter is loaded each time a PHP page is called
2
2928
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 error: -+-+-+-+-+-+ 403 Forbidden You don't have permission to access
2
3279
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 scale of scritping languages like PHP. There seem to be no step-by-step learning materials for FastCGI on the web. But let's place this matter aside for right now. Is it possible to support sessions under C++ and FastCGI? Why aren't there...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10103
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9179
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.