pitchford
11-15-2001, 12:00 AM
I keep getting the following error on all my php script utilizing mySQL... Oddly enough, I don't get it while using phpMyAdmin. Any suggestions?
URL:
http://morpheus.rackworks.net/shadm/orderpages/orderpage.php
driverdave
11-15-2001, 02:09 AM
You don't have any of the MySQL commands compiled into php.
You didn't mention what version of PHP you are running, or how you installed it, but my guess is you installed the pkg update from Coablt.
Add the line
extension=mysql.so
to /etc/httpd/php.ini
You want to add it here. Then, restart apache.
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; if you wish to have an extension loaded automaticly, use the
; following syntax: extension=modulename.extension
; for example, on windows,
; extension=msql.dll
; or under UNIX,
; extension=msql.so
; Note that it should be the name of the module only, no directory information
; needs to go here. Specify the location of the extension with the extension_dir directive above.
extension=mysql.so
Hope this works for you.
ASPCode.net
11-15-2001, 04:08 AM
I see you are trying out my SHAdm product - cool.
I bet PHP is not enabled for the site, just going to the IP gives me the message that it is used as DNS. So simply just enable PHP for the main site on your RAQ and it should be working.