enigma1234567890
asked on
mysql directory for php
I want to compile php and need to state the directory mysql is installed in for the commmand
./configure --with-apxs2=/usr/local/ap ache2/bin/ apxs --with-mysql-dir=/var/loca l/mysql
can someone advise what it is ps -ef returns the following
root 2926 1 0 08:45 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/my sql.sock --log-error=/var/log/mysql d.log --pid-file=/var/run/mysqld /mysqld.pi d --user=mysql
mysql 2976 2926 0 08:45 pts/1 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld /mysqld.pi d --skip-external-locking --socket=/var/lib/mysql/my sql.sock
root 3142 2839 0 09:25 pts/1 00:00:00 grep mysqld
./configure --with-apxs2=/usr/local/ap
can someone advise what it is ps -ef returns the following
root 2926 1 0 08:45 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/my
mysql 2976 2926 0 08:45 pts/1 00:00:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld
root 3142 2839 0 09:25 pts/1 00:00:00 grep mysqld
I'm attaching some instructions I wrote while ago for a specific application regarding the installation of PHP/MySql from the source files.
It was written for a RHL, but should work for Fedora, CentOS or any RedHat based system. Hope the details helps you.
php-mysql.doc
It was written for a RHL, but should work for Fedora, CentOS or any RedHat based system. Hope the details helps you.
php-mysql.doc
ASKER
still don't know what directory mysql is installed in,,
Thanks sudaraka for notes very good however as always with linux its completely different in the version I am using
Thanks sudaraka for notes very good however as always with linux its completely different in the version I am using
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
finaly got it working doesnt matter what diretory you use was a 64bit libary issue
this fixed it
./configure --with-apxs2=/usr/local/ap ache2/bin/ apxs --with-mysql --with-libdir=lib64
this fixed it
./configure --with-apxs2=/usr/local/ap
MySql is usually installed under /usr/local/mysql or /usr/local/mysql[-version]
Hope this helps,
Julien