LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2006, 07:31 AM   #1
Charlieasmith
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
PHP connection refused


Hi there,

I have a new installation of Redhat 9, running Apache and PHP, configured for SSI's and CGI.

CGI is working fine, but when dynamic code is executed from a dynamic page it does not work, in one case it just displays the source code of the PHP. In other cases it shows the error:

Can't connect : Connection refused at /var/www/cgi-bin/exec/search.cgi line 1785.

The developers have said that the server needs to do web requests to itself and the server configuration is stopping it.......

Any ideas???

Thanks,

Charlie
 
Old 01-12-2006, 03:12 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Check your httpd.conf

Make sure the php module is getting loaded:
Code:
LoadModule php4_module    modules/libphp4.so
and make sure that files with .php extension are sent to the interpreter:
Code:
AddType application/x-httpd-php .php
Then restart apache...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM
Connection Refused Rv5 Red Hat 1 12-03-2003 08:27 PM
Connection Refused vhandrade Linux - Networking 2 03-15-2001 10:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration