I'm struggling with trying to get MySQL support with PHP.
I haven't got a clue if I installed apache when I installed Linux or not, but it is there and I can get php to work. I don't know if I installed php later or not and if I did, if it was a binary, source or RPM - or how to find out!
Anyway, I have mySQL installed from source and can use it from the command line. I have some php with mySQL stuff that works on my ISP machine successfully.
How oh how do I add mySQL support to my machine?
I've just had a go at following the DevShed tutorial for this http://www.devshed.com/Server_Side/A...ation/Database
and basically gone through their course of action to re-install apache and that starts ok. Then they say to install php, so I've tried this with version php-4.0.3pl1.tar gotton from http://uk.php.net.
I untarred the file, then ran the following (as suggested):-
./configure --with-apxs=/usr/local/apache/bin/apxs \
The configure script craps out, with this message:-
checking for flex... no
checking for lex... no
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up
Now, php doesn't work at all. The apache re-install has buggered things too. If I try to use the old httpd.conf file, bits don't work. With the new one, I can only get the basic connection to the server to work i.e. no further than http://linuxsvr/
Where the f**@s lex? How do I get that? Should it be part of the kernel or do I have to add it somehow? Windoze may be crap, but installing sure is simple isn't it!
Pigs Bums! Any ideas, or do I just swear a lot and give up and go back to DOS?
Linux version is 2.2.15-4mdksecure
Apache version 1.3.12
mySQL version 9.38 Distrib 3.22.32 for pc-linux-gnu
php version php-4.0.3pl1.tar from http://uk.php.net.