View Full Version : Apache problem plz help!
Jackula 05-31-2003, 04:22 AM I've updated my apache today the 31st via easyapache, then downloaded latest from layer1, and reinstalled it over my current cpanel. Now whenever I create a new account it would shut down my apache and my apache will not start, anyone know why?
I'm using Redhat 7.3, and I noticed some errors during the creation of my account.
Here's my account creation log:
WWWAcct 6.0 by J. Nick Koston
+===================================+
| New Account Info |
+===================================+
stuff here removed
+===================================+
User rantage added
Keeping Shell Access
Copying skel files from /root/cpanel3-skel/ to /home/rantage/
edquota: Can't initialize quota on /dev/hda8: No such file or directory
edquota: Can't initialize quota on /dev/hda2: No such file or directory
edquota: Can't initialize quota on /dev/hda3: No such file or directory
No filesystems with quota detected.
Name Virtual Host already exists
Added Entries to httpd.conf (noip)
Added DomainAlias Entry
Added Named Entry
Added Named File
Restarting NameServer
Restarting apache
httpd: no process killed
Ftp Password Files synced
Vhost Passwords synced
wwwacct creation finished
Account Creation Complete
thank you!
Jack
dandanfirema 05-31-2003, 05:43 AM Check /usr/local/apache/logs/error_log
mlovick 05-31-2003, 05:54 AM Looks like you have stuff in your httpd.conf which is not compatible with your new apache binary.
As dandanfirema says - your error_log is your freind here.
WiredMom 05-31-2003, 07:43 AM Originally posted by Jackula
edquota: Can't initialize quota on /dev/hda8: No such file or directory
edquota: Can't initialize quota on /dev/hda2: No such file or directory
edquota: Can't initialize quota on /dev/hda3: No such file or directory
No filesystems with quota detected.
That part looks familiar.
Try looking in WHM and running Initial Quota Setup.
Or logging into ssh and running /scripts/fixquotas
Let it run - don't interrupt it. Watch the status bar along the bottom left of your browser and wait til it says done - if you use the WHM option.
sprintserve 05-31-2003, 07:37 PM From the error message it looks like your filesystems isn't done properly.
Login to shell, go to the partitions mentioned (probably /home) and see if you have files such as aquota.user and quota.user.
Try running /scripts/initquotas and /scripts/fixquotas
If you still do not see the above 2 files after that, your filesystem partitions is not done properly.
Edit /etc/fstab
Check that your /home partitions has this switch
usrquotas
If not add it in, and try running the scripts again. That should fix it.
Jackula 06-01-2003, 01:43 AM Great, it's fixed, but now I get a new error, when I create rantage.com it creates fine, but when I try to restart my apache it gives me the error:
/usr/sbin/httpd restart: httpd not running, trying to start
Syntax error on line 1125 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/httpd restart: httpd could not be started
I look at the httpd.conf file and it says:
<VirtualHost 69.22.169.75>
ServerAlias www.rantage.com rantage.com
ServerAdmin webmaster@rantage.com
DocumentRoot /home/rantage/public_html
BytesLog domlogs/rantage.com-bytes_log (Line 1125)
User rantage
Group rantage
ServerName www.rantage.com
CustomLog domlogs/rantage.com combined
ScriptAlias /cgi-bin/ /home/rantage/public_html/cgi-bin/
</VirtualHost>
Whenever I create any other domain it's fine though, only rantage.com stuffs my apache.
Here's my error log:
[Sun Jun 1 15:38:11 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Jun 1 15:38:53 2003] [notice] SIGHUP received. Attempting to restart
[Sun Jun 1 15:38:53 2003] [warn] NameVirtualHost 69.22.169.75:80 has no VirtualHosts
Failed loading /usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so: cannot open shared object file: No such file or directory
[Sun Jun 1 15:38:54 2003] [notice] Apache/1.3.27 (Unix) PHP/4.3.1 FrontPage/5.0.2.2510 mod_ssl/2.8.12 OpenSSL/0.9.6b PHP-CGI/0.1b configured -- resuming normal operations
[Sun Jun 1 15:38:54 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sun Jun 1 15:38:54 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Jun 1 15:39:39 2003] [notice] SIGUSR1 received. Doing graceful restart
Syntax error on line 1125 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
Thank you!!
sprintserve 06-01-2003, 01:54 AM You probably did not install your Apache modules that you need.
Go the loadmodule section and paste all the modules you are using. Check that you have this:
LoadModule bytes_log_module libexec/mod_log_bytes.so
If not you didn't install your Apache modules.
Run /scripts/easyapache again.
WiredMom 06-01-2003, 01:57 AM hm - that looks normal - the httpd.conf part..is that the only error you get?
log in to ssh and type
/etc/rc.d/init.d/httpd configtest
and see if there are any other errors as well - or if thats the only one that comes up.
Maybe try taking the BytesLog line out temporarily and see if apache comes up without it.
WiredMom 06-01-2003, 01:58 AM bah -
*bows to sprintserve*
Do what he said first :)
Jackula 06-01-2003, 02:38 AM How do I go to my loadmodule section?
I type in "LoadModule bytes_log_module libexec/mod_log_bytes.so
" and it doesn't work. Like u said, I ran easyapache again, chose the 2nd option, finished installing, typed it again and it still won't work.
I checked under my libexec folder, and mod_log_bytes.so file does exist.
Is there something I'm missing here?
sprintserve 06-01-2003, 03:11 AM Just scroll down till you see a bunch of loadmodules directives
Jackula 06-01-2003, 03:23 AM Do you mean in my WHM or where? I don't see anything? can you please give more specific instructions?
thanks again.
WiredMom 06-01-2003, 03:23 AM Jackula - the load Modules directives are in your httpd.conf file - if you pico the file and Ctrl+w to search for LoadModule so you're forwarded to that section of the config
Jackula 06-01-2003, 03:27 AM Woah, that's a fast reply dude!
Anyway, I can't find LoadModule bytes_log_module in my httpd.conf file. But even after installing apache from easyapache again, I still don't have it...
WiredMom 06-01-2003, 04:11 AM can you copy and paste a list of the things you do have in the loadmodules section?
Knogle 06-01-2003, 04:47 AM There should be a section where you see a whole lot of LoadModule's. When you're there, paste in 'LoadModule bytes_log_module libexec/mod_log_bytes.so'. Restart apache, and all should go well.
Jackula 06-01-2003, 06:58 AM Here's my LoadModule list:
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule php4_module libexec/libphp4.so
I've added 'LoadModule bytes_log_module libexec/mod_log_bytes.so' without the quotes into it, and it still won't work, and gives off the same single error.
Is there anyway to uninstall cPanel and WHM and apache and then reinstall them all over again?
THB-Mark 06-21-2003, 10:24 PM Hello,
Please also make sure you have "AddModule mod_log_bytes.c" (without quotes) in your httpd.conf
If not then add it just below the last AddModule entry (without quotes), for this to work properly you will also need the "LoadModule bytes_log_module libexec/mod_log_bytes.so" (without quotes) entry in that httpd.conf file.
Not sure what I am talking about??
1. SSH into your server.
2. Type > pico /usr/local/apache/conf/httpd.conf
3. Hit control + W on your keyboard > Type AddModule
Now look through the "AddModule" entries for the "AddModule mod_log_bytes" (without quotes) if its not there add it below the last AddModule entry...
4. Hit Control + X, hit y and press enter.
Restart apache using /etc/rc.d/init.d/httpd restart
Remember you need both "AddModule mod_log_bytes" and "LoadModule bytes_log_module libexec/mod_log_bytes.so"
Hope that helps if not then shoot me a PM and I will have a look.
|