473,503 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP CGI 4.3.2 + suExec Apache Patch

Hi,
I have been running PHP as a CGI for a few months now (using suExec
patch @ http://www.localhost.nl/patches/apac...-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 4.3.1 binary w/ the 4.3.2 binary all scripts
executed return a "No input file specified" error message, which means
for some reason the executable isn't receiving the argument of the
script to execute. The strange thing is that if I copy the 4.3.1
binary back everything works properly. Here is the relevant code
regarding suexec.c w/ some debugging changes by me.
if (usephp) {
newargv[0] = phphandler;
newargv[1] = cmd;
newargv[2] = NULL;
}
....snip....
log_err("argv0: %s argv1: %s cwd:
%s\n",newargv[0],newargv[1],cwd);
fclose(log);
log = NULL;
execv(newargv[0], newargv);

and here is the log output when a PHP script is called.
[2003-07-08 10:09:03]: info: (target/actual) uid: (james/james) gid:
(james/james) cmd: index.php
[2003-07-08 10:09:03]: argv0: /usr/local/bin/php4.cgi argv1: index.php
cwd: /home/james/website.net/3/ss

Any help/pointers are appreciated.
Jul 16 '05 #1
0 2166

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

Similar topics

0
1886
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...
3
3304
by: Mike | last post by:
Hi, I have an architectural type question that centers around php. We have a website that people hit that uses php to dynamically generate web pages. We use Apache and php (although we don't have...
0
1194
by: Salmo Bytes | last post by:
suexec on old perl cgi processes was useful: A cgi process (run by the apache process) could create files that belonged to me. Php usually runs as an '.so' library, owned by the apache process,...
1
2661
by: Adam Szendzielorz | last post by:
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...
0
7063
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
7313
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...
0
7441
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...
0
5558
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,...
1
4987
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...
0
3156
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...
0
1489
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 ...
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
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...

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.