Apache and PHP
Danesh Daroui
Danesh.D at bredband.net
Sat Nov 27 04:49:40 UTC 2004
Mike Ramirez wrote:
>On Fri, 2004-11-26 at 20:00, Danesh Daroui wrote:
>
>
>>Hi all,
>>
>>I have set up Apache 2.0.52 on a Linux Fedora Core 3 system. I have
>>tested my new web server to see if PHP has been enabled on it with <?php
>>phpinfo();> script and it works, so PHP has been enabled automatically
>>on my Apache web server. Now my problem is that I can not connect to
>>MySQL databases throught PHP and the error maesage is: Can connect
>>through socket... however PHP has been enabled before. I added
>>Loadmodule to httpd.conf file and also checked PHP.ini file to see if
>>mysql.so which has PHP mysql functions is loaded and it was loaded
>>correctly. Also, when I run my mysql script by PHP command line
>>interpretet as: php MySQLScript.php it show correct message and connects
>>successfuly, but through web server it does not. Can anybody help ?
>>
>>
>>
>
>
>Did you enable SELinux, its set to on by default.
>
>http://fedora.redhat.com/docs/selinux-faq-fc3/
>
>That sounds like the problem.
>
>
>
>
Well, everuthing is the default of installation. I think it should work
and there is something wrong with Apache configurstion, don't you think
? Because PHP interpretet from command line works fine while I try to
connect to mysql database, but it doesn't work through Apache web server.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041127/91ee5d96/attachment-0001.htm>
More information about the fedora-list
mailing list