Upgraded to PHP 5.3.0 on Mac now no database connection.
-
HI Guys,
I am running mac 10.5.8 on a Intel core 2, I was using the bundled Apache, and PHP and
I installed mysql, everything was running fine, but I had no GD so WordPress was not creating the thumbnails, so I wanted to update to PHP 5.3.0, but before this I made sure I installed X11 from my Mac DVD.
During the PHP installation I was asked on install to put a # a corresponding line in the LoadModule in /etc/apache2/http.conf so the only line I could see in there what had anything to do with php was the line :-
LoadModule php5_module libexec/apache2/libphp5.so
So I did this and restarted the install and in installed no problems, I then ran the <?php phpinfo(); ?> and everything was installed OK no problems, GD was there, I rebooted the Mac and went back to the phpinfo and it was all ok, but I get an error when trying to go to my wordpress (Error establishing a database connection) and thats it.
I can connect to the databases using Sequel Pro as before, I can run php no problem, my sql is running but can not get to my wordpress.I tried stopping and starting SQL, however when I try to stop apache I get the error using sudo apachectl -k stop I get the error:-
/usr/sbin/apachectl: line 73: ulimit: open files: cannot modify limit: Invalid argument
httpd: Syntax error on line 484 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/+entropy-php.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _libiconv\n Referenced from: /usr/local/php5/lib/libintl.8.dylib\n Expected in: /usr/lib/libiconv.2.dylib\nOr if I use:-
sudo /usr/sbin/apachectl restart
I get the error:-/usr/sbin/apachectl: line 73: ulimit: open files: cannot modify limit: Invalid argument
Anybody any ideas??
Regards
Ian
- The topic ‘Upgraded to PHP 5.3.0 on Mac now no database connection.’ is closed to new replies.