Can't Create New Virtual Hosts

3 posts / 0 new
Last post
#1 Sun, 03/20/2011 - 19:20
mrwilder

Can't Create New Virtual Hosts

Hi, I can't create any virtual sites. I enter the information and get

"Failed to create virtual server : DBI connect failed : could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I believe this is related to the fact that I can't get PostGres to start, either. Perhaps a firewall issue?

Has anyone else had this problem?

Thanks,

Tony

Sun, 03/20/2011 - 19:23
andreychek

Yup, I suspect those would be related :-)

What error do you get if you try to start Postgres from the command line? Do you see any errors output? Do any errors show up in the logs?

-Eric

Sun, 03/20/2011 - 20:30
mrwilder

Well, I was confused for a minute there, but I figured it out. I ran
/etc/init.d/postgresql status

and got
postmaster (pid 3081 3080 3079 3077 3075) is running...

but according to the Webmin system information screen, it wasn't running.

I ran
/etc/init.d/postgresql restart
Stopping postgresql service: [ OK ]
Starting postgresql service: [ OK ]

and then I did see the lock file in /tmp, so I reattempted to create a virtual site and it worked.

Then, I figured it out. Because of some recent hacker activity, I clean the tmp folders out completely every night at midnight until I can figure out something better. I obviously deleted the lock file... sigh. I'll have to change my junky temp folder cleaning script to ignore that file I guess.

Topic locked