Help - Search - Members - Calendar
Full Version: Linux 8.0 Installed With Apache 2.0, Php And Mysql
Linuxhelp > Support > Technical Support
fmagoufis
I just built a new Linux 8.0 system and loaded the Apache 2.0 Server, PHP and MySQL Server with the install. I cannot seem to run any PHP MySQL Functions. I get this error:

Fatal error: Call to undefined function: mysql_connect()

Any ideas?
Joey
sounds like mysql isnt running.
fmagoufis
nope, i can run mysql and create edit delete modify mysql databases. Just cant get at them via php pages.
chrisw
check to see if mysql is compiled into php

create this php page
and view it in your browser
and somewhere on the page
it should tell you if mysql is enabled

place the following in a php page:

<?php
phpinfo();
?>
fmagoufis
figured it out. downloaded the php-mysql rpm and installed it. All is working now.
Wicked187
yes, whenever you get a call to an invalid function, that means that the function does not exist, which means either a) the package that the function in included with is not installed/compiled into php, or cool.gif you didnt create the function yourself.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.