[NTLUG:Discuss] PHP on RedHat 5.2
Bug Hunter
bughuntr at one.ctelcom.net
Thu Nov 18 11:32:11 CST 1999
you have to compile mysql support into php. it is difficult to do on
readhat 5.2, and very easy to do on redhat 6.1.
On Thu, 18 Nov 1999, Rusty Haddock wrote:
> Howdy!
>
> I've just gotten started playing with PHP on my RH5.2 system. I'm
> playing with phpgen0.8 to generate web-style frontends to a number of
> my MySQL databases that I've moved off of Micros~1 Access. I thought
> I had enabled Apache (version 1.3.3) to use the libphp3.so and phplib
> but uncommenting the following lines in /etc/httpd/conf/httpd.conf:
>
> LoadModule php_module modules/mod_php.so
> LoadModule php3_module modules/libphp3.so
>
> AddModule mod_php.c
> AddModule mod_php3.c
>
> Oh, and I also tweaked the srm.conf file to enable php related extensions.
> The modules mod_php.so and libphp3.so were in the proper place all the
> time but I hadn't enabled them. This should turn 'em on.
>
> Well, at least I think I've done that. The problem is that PHP seems to
> run well until I try to use mysql_connect(). The displayed error message
> is:
>
> Fatal error: Call to unsupported or undefined function mysql_connect()
> in /home/httpd/html/phpgen/pregen.php3 on line 88
>
> MySQL is definitely running an accessable by the host/user/password
> as given in the call to mysql_connect(). Me thinks me hasn't setup
> something in Apache to enable PHP to access the MySQL server. Do I
> need to recompile Apache for this? Am I missing some permissions
> somewhere?
>
> Can any of you PHP/MySQL/Apache experts help out here?
>
> 'preciate it!
>
> -Rusty-
> --
> Rusty Haddock ## KD4WLZ ## rusty at fe2o3.lonestar.org
> _____
> |\/ o \ o Gargoyles are really not all that different from the rest of
> | ( -< O o us -- when the job's done, all they really want is to kick
> |/\__V__/ back, have a cool drink, and recover from a draining day.
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list