473,473 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP as CGI does NOT under Linux??

JZ
I created simply test file (<?php phpinfo(); ?>) and tried to install php
as CGI under my RedHat 9.

PHP 4.3.8 was compiled from source tarball. mod_php under Apache 1 and 2
works, only CGI does not work! :( Apache logs contains "Premature end of
script headers". Web browser can see "Internal message" :(

I checked two, different instalation in httpd.conf. None of them works
correctly and I do not know why.

First approach:

ScriptAlias /php4/ "/usr/local/php4/bin"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php4/php"

Second approach:

ScriptAlias /php4/ "/usr/local/php4/bin/"
AddHandler php-script .php
Action php-script "/php4/php"

--
JZ
Jul 17 '05 #1
1 1530
*** JZ escribió/wrote (Wed, 1 Sep 2004 15:36:22 +0200):
I created simply test file (<?php phpinfo(); ?>) and tried to install php
as CGI under my RedHat 9.

PHP 4.3.8 was compiled from source tarball. mod_php under Apache 1 and 2
works, only CGI does not work!


Please apologize me for being so cheeky and feel free to ignore this
message. But I've been trying to upgrade the PHP packages in my good old
Red Hat 9 box and I finally reached the conclusion that it's impossible.

When I compile the PHP tarball it complains about not having a recent
Apache version. When I compile the Apache tarball it complains about so
many missing packages that I'd have to upgrade even the POP3 server.

Did you do anything special? Were you forced to break your server into
pieces?
--
--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- http://www.demogracia.com (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--
Jul 17 '05 #2

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

Similar topics

2
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
2
by: greatbooksclassics | last post by:
Open Source DRM? What does everyone think about it? Will Open Source DRM ever catch up to MS DRM? Will DRM ever be integrated into common LAMP applications?...
3
by: Sorav Bansal | last post by:
Is there a way to print out all the operations performed in a gcc call: eg. gcc foo.c -o foo perhaps performs foo.c --> foo.s (using compiler) foo.s --> foo.o (using assembler as) foo.o...
9
by: Andy B | last post by:
If I bought one of these boxes/OS combos as a postgresql database server, would postgresql be able to make the best use of it with a huge (e.g. 40GB) database? Box: HP ProLiant DL585, with ...
4
by: chrisstankevitz | last post by:
This code does not compile on gcc 3.4.4. Should it? Thanks for your help, Chris //================ #include <set> int main()
8
by: JM | last post by:
I installed a webserver based on scientific linux 4.4 yesterday (not my idea, but my bosses) and after doing all updates (apt-get and yum) the version of PHP was 4.3.9. Current version (at least...
7
by: john | last post by:
I am reading TC++PL3 and on page 644 it is mentioned: "Flushing an istream is done using sync(). This cannot always be done right. For some kinds of streams, we would have to reread characters...
9
by: Ed Leafe | last post by:
On Apr 21, 2008, at 1:05 PM, Daniel Fetchinson wrote: Don't most binary distributions include SQLite itself? I installed 2.5.2 on a new WinXP VM, and SQLite is working fine. -- Ed Leafe
34
by: raylopez99 | last post by:
What is the state of C#? Somebody in a Linux advocacy newsgroup implied it has saturated (leveled off in growth). Note the 'hard code' pre-Wizards coding wizard Charles Petzold does C# only now....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
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 ...

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.