Submitted by advo on Fri, 10/25/2013 - 10:16
I think I have mistakenly disabled my virtual server http://ihidata.org 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
Status:
Active
Comments
Submitted by advo on Fri, 10/25/2013 - 10:18 Comment #1
/fcgi-bin/php5.fcgi cannot be accessed: (2)No such file or directory
Submitted by andreychek on Fri, 10/25/2013 - 12:13 Comment #2
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.
Submitted by advo on Sat, 10/26/2013 - 00:01 Comment #3
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/ihidata.org.conf: 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!!!
Submitted by andreychek on Sat, 10/26/2013 - 08:50 Comment #4
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:
a2dismod ihidata.org
Once you've disabled that domain in Apache, you should then be able to restart Apache.
Submitted by advo on Tue, 10/29/2013 - 01:31 Comment #5
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/ihidata.org.conf but I don't know where is the directory (1008/1007) or program
Submitted by advo on Tue, 10/29/2013 - 06:58 Comment #6
I have changed the (uid/gid (1000/1000) to 1008/1007 in ihidata.org.conf under apache sites-available directory and now it works Thank you for your support