apache not working

I posted this someware else and I do not know if it was suppose to post it in this area. Anyhow. I changed the file /home/admispconfig/ispconfig/lib/config.inc.php. because I was getting errors on the php log

I do not know if this is what caused the web server not to work, but after I changed this it stoped working. I had copied the file before I changed it, so I recopied it back to the server. But it did not fix it. I looked into apache file and can see red marks on two files. php4.conf and php4.load. this is the error message I get when booting the server.

HTML:

syntac error on line 185 of/etc/apache2/apache2.config could not open configuration file /etc/apache2/mods-enable/php4.load no such file or directory

Now I have php5 on here. Why is it trying to load php4? Please help, my server is down. But I can login to the servers ispconfig councal, but my website is down. Thanks

P.S. new info. I went to the files that had the red marks and tried to open them with winSCP and it is telling me. can't open remote file.then it has the path to the files (php4.config php4.load) I hope this helps. thanks

yes I tried that 4 times. I found this when I tried to open the files I mentioned.
Cannot open remote file '/etc/apache2/mods-enabled/php4.conf'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 3
It seems the files are gone.

I can login to ispconfig, but the when I click on servic, the web-sever is offline. I can see php5.config and php5.load. I open them up and they are small text code. I am getting the error from the php4, not 5. I don;t understand half this stuff. If I can replace the two files, I think it will work, but I do not know what code to put in them.

I folowed everything and when I restarted apache, this is the error message I got.

HTML:

server1:~# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...grep: /etc/apache2/mods-enabled/php4.load: No such file or directory
grep: /etc/apache2/mods-enabled/php4.conf: No such file or directory
grep: /etc/apache2/mods-enabled/php4.load: No such file or directory
grep: /etc/apache2/mods-enabled/php4.conf: No such file or directory
apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php4.load: No such file or directory
failed!

these are the files that I was telling you that are gone for some reason. I can not figure it out. can I do a debian perfect setup onanother pc and get the files from it and replace the ones that have the red marks on them? I have to get my site back online. Boy I need a backup plan in case this ever happens again. I thank you for the info.

It wants to load the files that are RED marked. the files that I talked above are in this file. It can not load them because they are not there. Well they are, but it tells me that they are missing when I try to open them. DOse anyone on here know how to replace the two files that are missing? Thanks for all the help.

Yes it came out just like yours did. What dose that mean? The ones in question are the php4, not php5. I do not know why it needs to load php4 when I have php5 installed. You wuld think that it would load the php5 files.

take a look at this

server1:~# httpd -t
httpd: Syntax error on line 185 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/php4.load: No such file or directory
When I ran http -t I get this. HELP ANYONE THAT KNOWS HOW TO FIX THIS :{

I can only suspect something within'/etc/apache2/apache2.conf' is wrong to be calling PHP4?

Hey, did some digging right here at HTF and found a very intersting article which just might help get you back on track- take a crack at this and be sure to follow the instructions to the letter and it seems you would be able to re-store server function within an hour, give or take...http://www.howtoforge.com/apache2_with_php5_and_php4

ls -la /etc/apache2/mods-available
I can not see php4 in here, but there are two files on the server that have red marks on them I can not remove them . I tried to move them off the server so that the php5 files may load. Man will I ever lear this stuff? thanks for all the help. I created another debian etch server. I was reading on how to backing up everything onto it so I can get online again. I don't want to get stuck like this again. I made the 2nd server with the same domain, but used server2. my main server is server1. Is that how it is to be setup?

I setup the server with The Perfect Setup - Debian Etch (Debian 4.0). the error I am getting is comming from two files that are php4. I think I am running 5. It dose not note that it is php5 on the install page for my install. I guess I need 5. It was working great affter the install.