Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem compiling with '--enable-force-cgi-redirect' 1

Status
Not open for further replies.

farley99

MIS
Joined
Feb 12, 2003
Messages
413
Location
US
I ran....
# './configure' '--enable-force-cgi-redirect' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-mcrypt' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'

Then I did
make; make install
and restarted apache

But it didnt install it with '--enable-force-cgi-redirect'

As echo phpinfo(); displays...
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'

Which is what I had before.

Got any tips?
 
Thanks, I get a 500 error when ever I load any php page now, got any tips?

failed to open log file
fopen: Permission denied
[Mon Sep 29 13:34:18 2003] [error] [client ] Premature end of script headers: /home/advanced/public_html/cgi-bin/php
[Mon Sep 29 13:34:18 2003] [error] [client ] File does not exist: /home/advanced/public_html/500.shtml
 
how do I generate the php binary file?
 
Are you conducting some kind of self talk here or is your alter-ego supplying the answers?
 
I found the answer, and posted it here in case anyone goes through the archives later, they will see the answer.

I am still having trouble with this though...
how do I generate the php binary file?

Got any tips?
 
<sarcasm>
Okay, are you talking to the group now, or yourself still?
</sarcasm>

In future, when posting answers to your own questions, do it in the form of a monologue, not a dialogue.


I would generate the PHP binary file the same way I generate every binary file. Through compilation of source code.



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Thanks for the tip.

How do I do this...
>>Through compilation of source code.
./configure;make;make install ?
 
Yeah. I'd run the &quot;configure&quot; setup you showed in the first post of this thread. Except I'd lose all the single-quotes.

Then I'd run make.

Then I'd run make install.

I also would not do it on one line. I would also use your OS' &quot;tee&quot;:

./configure --an-option --another-option | tee somefilename

That way you have a record of what configure outputs as well as seeing it on the screen. It can be useful sometimes.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
You da man!!

What kinds of thing do you use the tee file? Its like script, no?
 
>>It's an executable on my Linux box.
The file created by tee becomes an executable file?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top