PHP & MySQL under FC2 (and FC3t1)
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Mon Aug 2 14:52:12 UTC 2004
Am Mo, den 02.08.2004 schrieb Paul um 12:40:
> I'm having all hecks worth of problems trying to get php to talk to
> mysql under Fedora Core.
>
> I have the php-mysql rpm installed...
>
> I have altered the /etc/php.ini file to include the line
>
> extension=mysql.so
That is wrong! See /etc/php.d/ --> mysql.ini
> and have altered the httpd.conf file to include
>
> LoadModule mysql_auth_module modules/mod_auth_mysql.so
For what do you need mysql_auth in combination with phpBB?
> Alias /phpBB2 /web/phpBB2
This is anywhere in your Apache DocumentRoot?
> <Directory /web/phpBB2>
> AddType application/x-httpd-php .php .php3 .phtml
This is globally set in /etc/httpd/conf.d/php.conf.
> Options Indexes +Includes FollowSymLinks
> order deny,allow
> deny from all
> allow from all
> </Directory>
>
> <Files /web/phpBB2/config.php>
> order deny,allow
> deny from all
> </Files>
>
> So everything should be happy. However, it's not working. httpd starts
> happily.
apachectl configtest -> OK?
What does /var/log/httpd/error_log report?
Create an document info.php in the DocumentRoot with following content:
<? phpinfo(); ?>
and check it's output if you call the file within your browser.
> What do I need to do to get php to talk to mysql? I need to get phpBB2
> set up and running PDQ!
Nothing. Install the httpd, mysql-server and php-mysql packages and it
runs without any modifications out of the box.
> Paul
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.6-1.435.2.3.ad.umlsmp
Serendipity 16:43:40 up 1 day, 22:08, load average: 0.18, 0.20, 0.29
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20040802/c3e86d60/attachment.sig>
More information about the fedora-test-list
mailing list