I'm trying to install PHP/apache/mysql on another pc, but damn so much frustration... After hours of trying incompatible php/apache i finally got that working, but now i cant get mysql to work in combination with php ! I use PHP Version 5.1.6 and Apache 2. As PHP 5 doesnt have mysql extension on by default, i uncommented extension=php_mysql.dll and restarted apache. Ok, so i make this page which echos phpinfo() and open it, all php info shows but NO MYSQL SECTION. Why ?? What did i forget ? It worked instantly on another pc... Anyone got any advice?
Running on windows or Unix/Linux? (EDIT: it windows i guess from .ddl) PHP compiled with MySQL support or not? Have uncomented the respective AddModule/LoadModule lines or not?
Windows yes. For php i dowloaded the zip for windows: http://www.php.net/downloads.php and unzipped it in c:\php So i'm not sure if compiled with mysql support... in httpd.conf i added: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php
Any reason you're doing the installation and set up by hand as opposed to using an all-in-one installer like XAMPP from apachefriends.org? I got over trying to get these things working by myself years ago...
Yeah i prefer to do it manually because that way i learn the most about it. Even though all the frustration makes me want to use something like XAMPP But i got it to work on another PC, so i cant handle the fact that it doesnt work on this one with the same steps!
Yeah, I can understand that... like I say, though, I got over that pretty quickly Anyway, just off the top of my head, have you looked in your log files to see if there are any clues as to why it's not loading? I have a feeling it'll be in your Apache logs somewhere...