how to disable writeing port 80 to config file?

nikohal

Verified User
Joined
Dec 12, 2011
Messages
37
Hi,

How I can disable writening next lines:

Port 80
ServerRoot /etc/httpd

why to disable? Because apache don't want to start...
Apache says syntax error in line port 80...

So how I can fix this???

Regards,

Niko H.
 
Why would you want to disable that?

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build apache n
./build php n
./build rewrite_confs
 
Why would you want to disable that?

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build apache n
./build php n
./build rewrite_confs

That not help with this problem. Same syntax error in line 12, and that is the line port 80...
 
Those lines are correct. Something else is the problem. Please post lines 1-15. And make sure you are looking at the correct configuration file.
 
#Port 80
ServerRoot /etc/httpd



<VirtualHost 87.118.113.132:80 >
# Added by Rails in DA for Passenger, DO NOT modify!

# Rails in DA settings ended here


ServerName www.theocbase.net
ServerAlias www.theocbase.net theocbase.net
ServerAdmin [email protected]
DocumentRoot /home/theocbas/domains/theocbase.net/public_html
ScriptAlias /cgi-bin/ /home/theocbas/domains/theocbase.net/public_html/cgi-bin/

UseCanonicalName OFF

CustomLog /var/log/httpd/domains/theocbase.net.bytes bytes
CustomLog /var/log/httpd/domains/theocbase.net.log combined
ErrorLog /var/log/httpd/domains/theocbase.net.error.log



<Directory /home/theocbas/domains/theocbase.net/public_html>
Options +Includes -Indexes




suPHP_Engine ON
suPHP_UserGroup theocbas theocbas

</Directory>
 
Then something in your template file is wrong. Remove any custom templates you have in /usr/local/directadmin/data/templates/custom

Then run:

Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d30
 
Post the error you have then. There shouldnt be any problems running the default install.

Check files:

/var/log/httpd/domains/theocbase.net.error.log

and

/var/log/httpd/error_log
 
error_log last 50 lines:
Wed May 08 18:00:29 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 18:00:30 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:00:30 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:00:30 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:00:30 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 configured -- resuming normal operations
[Wed May 08 18:00:30 2013] [notice] caught SIGTERM, shutting down
[Wed May 08 18:05:14 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:05:14 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:05:14 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:05:14 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:05:14 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 18:05:15 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:05:15 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:05:15 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:05:15 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:05:15 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 configured -- resuming normal operations
[Wed May 08 18:23:45 2013] [notice] caught SIGTERM, shutting down
[Wed May 08 18:33:58 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:33:58 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:58 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:58 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:33:58 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 18:33:59 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:33:59 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:59 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:59 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:33:59 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 configured -- resuming normal operations
[Wed May 08 18:44:21 2013] [notice] caught SIGTERM, shutting down
[Wed May 08 18:44:22 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:44:22 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:44:22 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:44:22 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:44:22 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 18:44:23 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:44:23 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:44:23 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:44:23 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:44:23 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 configured -- resuming normal operations
[Wed May 08 18:47:42 2013] [notice] caught SIGTERM, shutting down
[Wed May 08 18:47:43 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:47:43 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:43 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:43 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:47:43 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 08 18:47:44 2013] [notice] SSL FIPS mode disabled
[Wed May 08 18:47:44 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:44 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:44 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Wed May 08 18:47:44 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 configured -- resuming normal operations
[Wed May 08 18:49:24 2013] [error] [client 173.214.255.79] File does not exist: /var/www/html/405.shtml

other log:

[Wed May 08 12:28:46 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 12:29:47 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 12:30:48 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 12:31:49 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 15:31:55 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 15:32:56 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 15:33:57 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 15:34:57 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 16:36:57 2013] [error] [client 176.31.242.6] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.test0:)
[Wed May 08 18:05:14 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:05:15 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:58 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:33:59 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:35:04 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 18:36:05 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 18:37:06 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 18:38:07 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
[Wed May 08 18:44:22 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:44:23 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:43 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
[Wed May 08 18:47:44 2013] [warn] RSA server certificate CommonName (CN) `www.theocbase.me' does NOT match server name!?
 
This is your problem and the reason your website is not loading properly. It has nothing to do with your apache or php install. It has something to do with the code of your website.

Code:
[Wed May 08 18:38:07 2013] [error] [client 72.14.199.137] PHP Fatal error: Class 'JModuleHelper' not found in /home/theocbas/domains/theocbase.net/public_html/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 60
 
Here is all lines:
# Auto generated apache config file by DirectAdmin version 1.42.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3

# Frontpage requires these parameters in every httpd.conf file or else
# it won't work.
#Port 80
ServerRoot /etc/httpd
 
Back
Top