Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL and PHP problem

Status
Not open for further replies.

frummel

Technical User
Jun 21, 2002
91
NL
I have to recompile PHP, because the MySQL-database that's installed in RedHat 8.0 is unknown to PHP. So, to get everything working, I have to recompile PHP.

What I need to know is: From which directory do I need to run ./configure to get this done? And I need to know to which path I need to refer to, as in --with-mysql.

Does anyone know in which directories MySQL and PHP are installed in automatically by RedHat 8.0??
 
OK, according to PHP & MYSQL for Dummies. Run ps -ax and look for mysqld. Run find / -name "mysql*" to see if you have mysql installed.
 
if you are using the rpm's just install the php-mysql rpm.

i have no idea why you would use ps to identify installed software. that will only tell you what is running. rather use the system's package mgmt. utilities to do that.
 
If phpinfo is showed, at Configure Command I see: --with-mysql=shared,/usr' '. I cannot imagine this is the MySQL installation directory.

I don't see any MySQL information in the phpinfo page.
I have already installed the php-mysql rpm a few weeks ago.

SO what do I need do next to get it working?
 
I'm not sure. in the past i've always compiled apache with php and mysql support, but recently i've setup 4 or 5 redhat servers using their rpms for everything and didn't do anything special to get it working.

that mysql directory was correct for the person who compiled php. do you have the mysql rpms from redhat installed?

you could try to re-install php rpms.
 

I think you need to untar the mysql source code in a directory and then do configure and make in that directory. Then do ./configure --with-mysql <mysql-directory>

But all this is in the INSTALL or README file that comes with php.

Cheers Henrik Morsing
IBM Certified AIX 4.3 Systems Administration
 
no, php looks for the mysql lib and include files that are already compiled.

but yes, all this included in the INSTALL files and on their websites which have excellent documentation on this.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top