Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 20th October 2007, 01:54
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Default

Can you open '/etc/apache2/apache2.conf' and see what you have on line '185'?
Reply With Quote
Sponsored Links
  #12  
Old 20th October 2007, 05:50
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default

Yes I was thinking of that. Here is the line.

Include /etc/apache2/mods-enabled/*.load

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.
Reply With Quote
  #13  
Old 20th October 2007, 06:55
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Default

So lines 184, 185, and 186 are populated with
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

You must have quite a few special directives at the top of your apache2.conf file?
The above lines in my server are at lines 115, 116, and 117


Move to 'etc/apache2/mods-available/' and run 'cat php5.conf'- the results should look like this:
Code:
<IfModule mod_php5.c>
#  AddType application/x-httpd-php .php .phtml .php3
#  AddType application/x-httpd-php-source .phps
</IfModule>
Now run 'cat php5.load' which should look like the following:
Code:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Reply With Quote
  #14  
Old 20th October 2007, 06:56
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Default

OOPs, dual post- please ignore
Reply With Quote
  #15  
Old 20th October 2007, 08:44
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default

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 :{

Last edited by cruz; 20th October 2007 at 08:49.
Reply With Quote
  #16  
Old 20th October 2007, 21:11
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Default

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

Give it a shot, it's worth the try!
Reply With Quote
  #17  
Old 21st October 2007, 00:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What's the output of
Code:
ls -la /etc/apache2/mods-enabled
and
Code:
ls -la /etc/apache2/mods-available
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 21st October 2007, 02:38
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default output

HTML Code:
server1:~# ls -la /etc/apache2/mods-enabled
total 8
drwxr-xr-x 2 root root 4096 2007-10-18 15:42 .
drwxr-xr-x 8 root root 4096 2007-10-04 15:05 ..
lrwxrwxrwx 1 root root   28 2007-10-04 13:59 alias.load -> ../mods-available/ali                                             as.load
lrwxrwxrwx 1 root root   33 2007-10-04 13:59 auth_basic.load -> ../mods-availabl                                             e/auth_basic.load
lrwxrwxrwx 1 root root   33 2007-10-04 13:59 authn_file.load -> ../mods-availabl                                             e/authn_file.load
lrwxrwxrwx 1 root root   36 2007-10-04 13:59 authz_default.load -> ../mods-avail                                             able/authz_default.load
lrwxrwxrwx 1 root root   38 2007-10-04 13:59 authz_groupfile.load -> ../mods-ava                                             ilable/authz_groupfile.load
lrwxrwxrwx 1 root root   33 2007-10-04 13:59 authz_host.load -> ../mods-availabl                                             e/authz_host.load
lrwxrwxrwx 1 root root   33 2007-10-04 13:59 authz_user.load -> ../mods-availabl                                             e/authz_user.load
lrwxrwxrwx 1 root root   32 2007-10-04 13:59 autoindex.load -> ../mods-available                                             /autoindex.load
lrwxrwxrwx 1 root root   26 2007-10-04 13:59 cgi.load -> ../mods-available/cgi.l                                             oad
lrwxrwxrwx 1 root root   26 2007-10-04 13:59 dir.conf -> ../mods-available/dir.c                                             onf
lrwxrwxrwx 1 root root   26 2007-10-04 13:59 dir.load -> ../mods-available/dir.l                                             oad
lrwxrwxrwx 1 root root   26 2007-10-04 13:59 env.load -> ../mods-available/env.l                                             oad
lrwxrwxrwx 1 root root   30 2007-10-04 14:03 include.load -> ../mods-available/i                                             nclude.load
lrwxrwxrwx 1 root root   27 2007-10-04 13:59 mime.load -> ../mods-available/mime                                             .load
lrwxrwxrwx 1 root root   34 2007-10-04 13:59 negotiation.load -> ../mods-availab                                             le/negotiation.load
lrwxrwxrwx 1 root root   37 2007-10-18 15:42 php4.conf -> /etc/apache2/mods-avai                                             lable/php4.conf
lrwxrwxrwx 1 root root   37 2007-10-18 15:42 php4.load -> /etc/apache2/mods-avai                                             lable/php4.load
lrwxrwxrwx 1 root root   27 2007-10-04 14:01 php5.conf -> ../mods-available/php5                                             .conf
lrwxrwxrwx 1 root root   27 2007-10-04 14:01 php5.load -> ../mods-available/php5                                             .load
lrwxrwxrwx 1 root root   30 2007-10-04 14:03 rewrite.load -> ../mods-available/r                                             ewrite.load
lrwxrwxrwx 1 root root   31 2007-10-04 13:59 setenvif.load -> ../mods-available/                                             setenvif.load
lrwxrwxrwx 1 root root   26 2007-10-04 14:03 ssl.conf -> ../mods-available/ssl.c                                             onf
lrwxrwxrwx 1 root root   26 2007-10-04 14:03 ssl.load -> ../mods-available/ssl.l                                             oad
lrwxrwxrwx 1 root root   29 2007-10-04 13:59 status.load -> ../mods-available/st                                             atus.load
lrwxrwxrwx 1 root root   29 2007-10-04 14:03 suexec.load -> ../mods-available/su                                             exec.load
That is ls -la /etc/apache2/mods-enabled

HTML Code:
total 320
drwxr-xr-x 2 root root 4096 2007-10-04 14:04 .
drwxr-xr-x 8 root root 4096 2007-10-20 17:29 ..
-rw-r--r-- 1 root root   66 2007-06-17 13:12 actions.load
-rw-r--r-- 1 root root   62 2007-06-17 13:12 alias.load
-rw-r--r-- 1 root root   60 2007-06-17 13:12 asis.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 auth_basic.load
-rw-r--r-- 1 root root   74 2007-06-17 13:12 auth_digest.load
-rw-r--r-- 1 root root   74 2007-06-17 13:12 authn_alias.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 authn_anon.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 authn_dbd.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 authn_dbm.load
-rw-r--r-- 1 root root   78 2007-06-17 13:12 authn_default.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 authn_file.load
-rw-r--r-- 1 root root   90 2007-06-17 13:12 authnz_ldap.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 authz_dbm.load
-rw-r--r-- 1 root root   78 2007-06-17 13:12 authz_default.load
-rw-r--r-- 1 root root   82 2007-06-17 13:12 authz_groupfile.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 authz_host.load
-rw-r--r-- 1 root root   74 2007-06-17 13:12 authz_owner.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 authz_user.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 autoindex.load
-rw-r--r-- 1 root root   62 2007-06-17 13:12 cache.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 cern_meta.load
-rw-r--r-- 1 root root   68 2007-06-17 13:12 cgid.conf
-rw-r--r-- 1 root root   60 2007-06-17 13:12 cgid.load
-rw-r--r-- 1 root root   58 2007-06-17 13:12 cgi.load
-rw-r--r-- 1 root root   76 2007-06-17 13:12 charset_lite.load
-rw-r--r-- 1 root root   36 2007-06-17 13:12 dav_fs.conf
-rw-r--r-- 1 root root   79 2007-06-17 13:12 dav_fs.load
-rw-r--r-- 1 root root   58 2007-06-17 13:12 dav.load
-rw-r--r-- 1 root root   68 2007-06-17 13:12 dav_lock.load
-rw-r--r-- 1 root root   58 2007-06-17 13:12 dbd.load
-rw-r--r-- 1 root root  107 2007-06-17 13:12 deflate.conf
-rw-r--r-- 1 root root   66 2007-06-17 13:12 deflate.load
-rw-r--r-- 1 root root  145 2007-10-04 14:02 dir.conf
-rw-r--r-- 1 root root   58 2007-06-17 13:12 dir.load
-rw-r--r-- 1 root root  554 2007-06-17 13:12 disk_cache.conf
-rw-r--r-- 1 root root   89 2007-06-17 13:12 disk_cache.load
-rw-r--r-- 1 root root   64 2007-06-17 13:12 dump_io.load
-rw-r--r-- 1 root root   58 2007-06-17 13:12 env.load
-rw-r--r-- 1 root root   66 2007-06-17 13:12 expires.load
-rw-r--r-- 1 root root   72 2007-06-17 13:12 ext_filter.load
-rw-r--r-- 1 root root   89 2007-06-17 13:12 file_cache.load
-rw-r--r-- 1 root root   64 2007-06-17 13:12 filter.load
-rw-r--r-- 1 root root   66 2007-06-17 13:12 headers.load
-rw-r--r-- 1 root root   62 2007-06-17 13:12 ident.load
-rw-r--r-- 1 root root   68 2007-06-17 13:12 imagemap.load
-rw-r--r-- 1 root root   66 2007-06-17 13:12 include.load
-rw-r--r-- 1 root root   60 2007-06-17 13:12 info.load
-rw-r--r-- 1 root root   60 2007-06-17 13:12 ldap.load
-rw-r--r-- 1 root root   76 2007-06-17 13:12 log_forensic.load
-rw-r--r-- 1 root root  185 2007-06-17 13:12 mem_cache.conf
-rw-r--r-- 1 root root   87 2007-06-17 13:12 mem_cache.load
-rw-r--r-- 1 root root   60 2007-06-17 13:12 mime.load
-rw-r--r-- 1 root root   89 2007-06-17 13:12 mime_magic.conf
-rw-r--r-- 1 root root   72 2007-06-17 13:12 mime_magic.load
-rw-r--r-- 1 root root   74 2007-06-17 13:12 negotiation.load
-rw-r--r-- 1 root root  135 2007-10-04 14:04 php5.conf
-rw-r--r-- 1 root root   59 2007-07-02 14:46 php5.load
-rw-r--r-- 1 root root   87 2007-06-17 13:12 proxy_ajp.load
-rw-r--r-- 1 root root  103 2007-06-17 13:12 proxy_balancer.load
-rw-r--r-- 1 root root  589 2007-06-17 13:12 proxy.conf
-rw-r--r-- 1 root root   95 2007-06-17 13:12 proxy_connect.load
-rw-r--r-- 1 root root   87 2007-06-17 13:12 proxy_ftp.load
-rw-r--r-- 1 root root   89 2007-06-17 13:12 proxy_http.load
-rw-r--r-- 1 root root   62 2007-06-17 13:12 proxy.load
-rw-r--r-- 1 root root   66 2007-06-17 13:12 rewrite.load
-rw-r--r-- 1 root root   68 2007-06-17 13:12 setenvif.load
-rw-r--r-- 1 root root  298 2007-06-17 13:12 sick-hack-to-update-modules
-rw-r--r-- 1 root root   66 2007-06-17 13:12 speling.load
-rw-r--r-- 1 root root 1781 2007-06-17 13:12 ssl.conf
-rw-r--r-- 1 root root   58 2007-06-17 13:12 ssl.load
-rw-r--r-- 1 root root   64 2007-06-17 13:12 status.load
-rw-r--r-- 1 root root   64 2007-06-17 13:12 suexec.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 unique_id.load
-rw-r--r-- 1 root root  293 2007-06-17 13:12 userdir.conf
-rw-r--r-- 1 root root   66 2007-06-17 13:12 userdir.load
-rw-r--r-- 1 root root   70 2007-06-17 13:12 usertrack.load
-rw-r--r-- 1 root root   66 2007-06-17 13:12 version.load
-rw-r--r-- 1 root root   74 2007-06-17 13:12 vhost_alias.load
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?
Reply With Quote
  #19  
Old 21st October 2007, 14:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

You have PHP5 installed, not PHP4. Do you need PHP5 or PHP4?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 21st October 2007, 16:59
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
 
Default server install

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.

these are the ones that are trying to load.
lrwxrwxrwx 1 root root 37 2007-10-18 15:42 php4.conf -> /etc/apache2/mods-avai lable/php4.conf
lrwxrwxrwx 1 root root 37 2007-10-18 15:42 php4.load -> /etc/apache2/mods-avai

Last edited by cruz; 21st October 2007 at 17:08.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache not working on localhost akaiser General 15 7th October 2010 18:23
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
UebiMiau stopped working after Apache reinstall shajazzi Installation/Configuration 6 18th February 2006 19:42
Virtual hosting with Apache not working gimhan90 Server Operation 10 10th February 2006 15:11


All times are GMT +2. The time now is 10:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.