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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP

Status
Not open for further replies.

pattar

IS-IT--Management
Aug 6, 2000
38
IN
I am installing PHP4 in redhat linux 7.2.
I have done the following:
./configure --enable-track-vars --enable-force-cgi-redirect --with-gettext.

make.



When I run make, it should actually create a file called php.
But i never get to find this file which I need to copy to /var/

Neither does it appear after I run make install.

Could someone help please.
Thanks
Srinivasan.
 
This should do it:
[tt]./configure --enable-track-vars --enable-force-cgi-redirect --with-gettext --prefix=/usr/local/php && make && make install && cp /usr/local/php/bin/php /var/www/cgi-bin[/tt]

Why do you want to run PHP as a CGI though? I am assuming you are using Apache, so you should be able to build the module instead. This increases performance and gives you access to some functions that are only available if PHP is running as a module loaded from Apache. //Daniel
 
Thankyou so much Daniel. The PHP binary file was in /usr/local/bin. THis is the actual scenario.

I am installing RedHat 7.2, PHP4, Apache is already installed with LInux, Squirrelmail & Cyrus IMAP-SASL.

Daniel, I am a novice in Linux. What did you mean by installing PHP as a module. I was following the instruction obtained along with Squirrelmail installation. Now I am able to get the squirrelmail login page. But there is something wrong with the IMAP. I never get to find the commands - imtest or tools etc which as per the web site instruction should be there. Please help me Daniel.

Thanks & Regards,
Srinivasan.
 
Thankyou so much Daniel. The PHP binary file was in /usr/local/bin. THis is the actual scenario.

I am installing RedHat 7.2, PHP4, Apache is already installed with LInux, Squirrelmail & Cyrus IMAP-SASL.

Daniel, I am a novice in Linux. What did you mean by installing PHP as a module. I was following the instruction obtained along with Squirrelmail installation. Now I am able to get the squirrelmail login page. The error I get is "There was an error contecting the mail server". In /etc/httpd/logs/error_log, the error message is
&quot; PHP Warning: fsockopen() [<a href=']: unable to connect to localhost:143 in /var/ on line 172&quot;.
But there is something wrong with the IMAP.I never get to find the commands - imtest or tools etc which as per the web site instruction should be there. Please help me Daniel.

Thanks & Regards,
Srinivasan.
 
By installing PHP as an Apache module, you speed up PHP and you can use some functions specific to Apache (like [tt]virtual[/tt]).

As I have never used IMAP, I can't really help you with that. //Daniel
 

Is IMAP running??

Try 'telnet localhost 143'

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
I am not sure if the IMAP server is running.
telnet localhost 143 - results in

Trying 127.0.0.1....
unable to connect to remote host: connection refused


Thanks & Regards,
Srinivasan.
 

Open /etc/inetd.conf, find the imap line and uncomment it.
Then restart your Inetd server.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
one note to Morsings response

In RedHat 7.2 there is xinetd
So you need to &quot;cd /etc/xineted/&quot;
make sure there is a file for imap and change the disable = yes to disable = no.

The reload the configuration

&quot;service xinetd reload&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top