Joomla install on new virtual server

Hello all - I have been looking through the forums, but can not find a solution. I created a virtual server in virtualmin. I installed the joomla script. Everything worked fine. From virtualmin I accessed the site admin and logged in. Everything was fine until I logged out and tried to get back to the site.

For a while I got the error: Database Error: Unable to connect to the database:Could not connect to MySQL

Now I am getting the error: Server not found

Any advice?

Status: 
Active

Comments

Those are some odd errors you're getting, but there's a number of possible causes.

The database error could occur if for some reason, MySQL stopped or crashed.

You could see "Server not found" if for some reason BIND weren't running.

Are you by chance running your server on a system with low RAM, perhaps a VPS?

What output do you get if you type this on the command line: free -m

OUTPUT:

free -m
total used free shared buffers cached

Mem: 1089 958 130 0 52 392

-/+ buffers/cache: 513 575

Swap: 2047 27 2020

Yeah, it looks like you're okay on RAM.

Can you verify that MySQL is still running?

What do you get if you type this:

ps auxw | grep -i mysql

Also, do you see any errors if you look in /var/log/messages, or the Virtual Server's error log in $HOME/logs/error_log?

ps auxw | grep -i mysql root 2465 0.0 0.0 10796 1084 ? S 17:18 0:00 sh -c su root -c ps\ auxw\ |\ grep\ -i\ mysql 2>&1

root 2466 0.0 0.1 45940 1256 ? S 17:18 0:00 su root -c ps auxw | grep -i mysql

root 2467 0.0 0.0 8704 976 ? S 17:18 0:00 bash -c ps auxw | grep -i mysql

root 2469 0.0 0.0 6028 580 ? S 17:18 0:00 grep -i mysql

root 4078 0.0 0.0 65956 688 ? S Feb06 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var /lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql mysql 4125 0.0 1.0 309124 12108 ? Sl Feb06 0:04 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql -

I am going to start over.

So I started over. I deleted the virtual server then created a new one and installed the joomla script. I cannot access the site. Still get error - can't find the server at www.xxxxx.com Am I missing a step?

I guess we're going to need to look at the specifics, as it's hard to say based on the error messages you're seeing.

What is the domain / URL you're trying to access now?

I started over again. Seems to work now. I haven't done anything different. Thanks for your attempts.

tim