php5.fcgi not running

I think I have mistakenly disabled my virtual server I get this error message: /fcgi-bin/php5.fcgi cannot be accessed: (2)No such file or directory Now when I enable it, it does not show in the list of virtual servers and apache2 refuses to start Could you please help me on this



/fcgi-bin/php5.fcgi cannot be accessed: (2)No such file or directory

Hmm, that's unusual, I'm not sure how that entry would be removed from Virtualmin. Even when disabling it, it's not removed.

Does the home directory for that Virtual Server still exist?

Also, what error do you see when trying to start Apache? You should see some errors in the Apache error logs, in /var/log/apache2/error_log.

Hello Again, Where is the home directory for the virtual server?, also when I try to re-create the domain again I get the fail message saying the domain still exists but not displayed on the list of domain in the virtualmin web page!!!

I can't get any error logs in apache2 because when try to start apache i get this error message

"Syntax error on line 22 of /etc/apache2/sites-enabled/ Wrapper /home/ihidata/fcgi-bin/php5.fcgi cannot be accessed: (2)No such file or directory"

And when I disabled the domain I found out that this directory "/home/ihidata/" was as well removed, this directory used for keeping my web documents!!!

It sounds like the problem you're having is due to a missing home directory for this particular domain.

Disabling a domain should not delete it -- is it possible that another administrator on the system deleted the home directory?

You may need to use a backup in order to restore the home directory contents.

However, in regards to how to get Apache started -- what you would need to do there is remove the Apache config for the domain you're having problems with.

One way to do that is to run this command as root:


Once you've disabled that domain in Apache, you should then be able to restart Apache.

Thank you for your productive support But now I am getting this error message in the /var/log/apache2/suexec.log

[2013-10-29 06:15:46]: uid: (1000/ihidata) gid: (1000/ihidata) cmd: php5.fcgi [2013-10-29 06:15:46]: target uid/gid (1000/1000) mismatch with directory (1008/1007) or program (1008/1007)

These (uid/gid (1000/1000) are the values set in the /etc/apache2/ but I don't know where is the directory (1008/1007) or program

I have changed the (uid/gid (1000/1000) to 1008/1007 in under apache sites-available directory and now it works Thank you for your support