[NTLUG:Discuss] PHP on RedHat 5.2
Kyle_Davenport@compusa.com
Kyle_Davenport at compusa.com
Thu Nov 18 17:19:58 CST 1999
ok, it's been a while, but I know I had to do something else besides that...
just askin!: you did restart apache?
you should trying starting it from the command line - or looking at the startup
log and it will say if it loads those.
_______________________________________________________
Rusty Haddock <rusty at fe2o3.lonestar.org> on 11/18/99 11:06:58 AM
Please respond to discuss at ntlug.org
To: discuss at dora.ntlug.org (North Texas Linux Users' Group Discussion List)
cc: (bcc: Kyle Davenport/Is/Corporate/CompUSA)
Subject: [NTLUG:Discuss] PHP on RedHat 5.2
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