Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread Daniel Gracia Garallar
Not quite a solution, I think. What about if /var/www mounts in a different filesystem than /var? Hardlinks from chrooted environments don't seem to be a wise solution anyway... Just IMHO. Regards, Dani El 12/03/2010 12:16, Sunnz escribiC3: 2010/3/11 Janmalepa...@googlemail.com: I didn't

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread Edho P Arief
On Fri, Mar 12, 2010 at 6:58 PM, Daniel Gracia Garallar danie...@electronicagracia.com wrote: Not quite a solution, I think. What about if /var/www mounts in a different filesystem than /var? how about - tell mysql to create sock file in /var/www/var/run/mysql; or - tell php to connect to

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread Sunnz
2010/3/12 Daniel Gracia Garallar danie...@electronicagracia.com: Not quite a solution, I think. What about if /var/www mounts in a different filesystem than /var? Hardlinks from chrooted environments don't seem to be a wise solution anyway... Just IMHO. In that case you could change the

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread L. V. Lammert
On Sat, 13 Mar 2010, Sunnz wrote: 2010/3/12 Daniel Gracia Garallar danie...@electronicagracia.com: Not quite a solution, I think. What about if /var/www mounts in a different filesystem than /var? Hardlinks from chrooted environments don't seem to be a wise solution anyway... Just

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread bert beaudin
This has also worked for me in the past. Bert On 3/13/10 9:27 AM, L. V. Lammert l...@omnitec.net wrote: On Sat, 13 Mar 2010, Sunnz wrote: 2010/3/12 Daniel Gracia Garallar danie...@electronicagracia.com: Not quite a solution, I think. What about if /var/www mounts in a different filesystem

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-13 Thread Stuart Henderson
On 2010-03-13, Sunnz sun...@gmail.com wrote: 2010/3/12 Daniel Gracia Garallar danie...@electronicagracia.com: Not quite a solution, I think. What about if /var/www mounts in a different filesystem than /var? Hardlinks from chrooted environments don't seem to be a wise solution anyway... Just

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-12 Thread Sunnz
2010/3/11 Jan malepa...@googlemail.com: I didn't notice, that httpd was still running. kill -TERM ID_of_httpd httpd -u solved the problem. Thank you! Everything works fine! Now that it works we know that it was a problem with chroot. It might be a good practice now to hardlink the

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-12 Thread Jan
Sounds very interesting. But using find / -name mysql.sock isn't successful, so creating a hardlink doesn't work. The directory /var/run/mysql doesn't exist either. Jan Sunnz wrote: 2010/3/11 Jan malepa...@googlemail.com: I didn't notice, that httpd was still running. kill -TERM

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-12 Thread Alexander Hall
Jan wrote: I didn't notice, that httpd was still running. kill -TERM ID_of_httpd httpd -u solved the problem. Thank you! Everything works fine! Well if you're happy running httpd non-chrooted, then fine (seriously). I would not be though. If not, there is more stuff to try in my last

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-11 Thread Jan
I didn't notice, that httpd was still running. kill -TERM ID_of_httpd httpd -u solved the problem. Thank you! Everything works fine! Jan Alexander Hall wrote: Jan wrote: Thank you for the numerous responses! Except the solution to change localhost to 127.0.0.1 in the whole script, I

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-10 Thread Alexander Hall
Jan wrote: Thank you for the numerous responses! Except the solution to change localhost to 127.0.0.1 in the whole script, I tried everything you Do try that then. I dont know the script at hand, but it cannot be that many places that creates a database connection, can it? IIRC, localhost

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-09 Thread Jan
Thank you for the numerous responses! Except the solution to change localhost to 127.0.0.1 in the whole script, I tried everything you proposed. It still doesn't work. Here a short review: === Are you trying to connect to the MySQL socket outside of the httpd chroot? === after having run

Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread Jan
Hello all together, I installed PHP and MySQL on my box (running apache). When I try to install Joomla, the MySQL Database is recognized by the precheck of the install script. But when I try to connect to the database I get the following error msg: Unable to connect to the database: Could

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread Scott McEachern
Jan wrote: I added the following 3 packets, installed MySQL and set the symbolic links: mysql-server-5.0.51ap1.tgz php5-core-5.2.6.tgz php5-mysqli-5.2.6.tgz Any ideas? Jan At the very least you'll also need the php5-mysql-5.2.6.tgz package installed as well. It contains the base

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread Floor Terra
On Mon, Mar 8, 2010 at 10:07 PM, Jan malepa...@googlemail.com wrote: Any ideas? Are you trying to connect to the MySQL socket outside of the httpd chroot? Floor -- Floor Terra flo...@gmail.com www: http://brobding.mine.nu/

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread Gaby Vanhegan
On 8 Mar 2010, at 21:07, Jan wrote: Unable to connect to the database: Could not connect to MySQL Check that your code is connecting to 127.0.0.1 instead of localhost? Usually fixes it for me and you don't need to worry messing around with sockets. G. -- Bought to you by the Department of

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread L. V. Lammert
On Mon, 8 Mar 2010, Jan wrote: Unable to connect to the database: Could not connect to MySQL 1) Create a simple phpinfo() page check to see that your MySQL is configured properly. Did you install php-mysql? 2) I'm also able open the DB using mysql -u root -p. The only valid test is with the

Re: Joomla - MySQL Problem: Could not connect to MySQL

2010-03-08 Thread Fred Crowson
On Mon, Mar 8, 2010 at 9:07 PM, Jan malepa...@googlemail.com wrote: Hello all together, I installed PHP and MySQL on my box (running apache). When I try to install Joomla, the MySQL Database is recognized by the precheck of the install script. But when I try to connect to the database I get