Hi all.
I have just installed RedHat6.2 with the build in Apache server (RPM I guess). I installed PHP4.0.4 as a "source install" with configure --with-mysql, make etc., and it all goes migthy fine. (if I try to include --with-apxs, I get an error:
checking for Apache module support via DSO through APXS...
./configure: /usr/bin/apxs: No such file or directory
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path.
configure: error:
(This however, is not part of the question, but just to maybe give some input to an answer)
Now I like to include a database to the system, and I install MySQL3.22.32 as a RPM. It works fine from a command line.
PHPINFO() says, that MySQL support is enabled.
but when I try to connect to the MySQL server, I get the following:
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in /home/httpd/html/php/index.php on line 3
Now comes the big question:
How can I make PHP and MySQL talk together?
I have seen this question asked in a number of different newsgroups, but no-one seems to know the right answer.
Some say, that a path must be given to mysql when compiling php, but whereto when using MySQL RPM?
Should I just give in, and remove the MySQL RPM and make a source install?
Greetings
Rasmus