Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Basic Apache help

Basic Apache help
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status: Offline
Reply With Quote
Feb 8, 2006, 06:40 PM
 
hello, having a hard time getting my web server running again.

G5-Server:~ root# sudo apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/0000_any_80_somename.no-ip.org.conf
Syntax error on line 3 of /etc/httpd/sites/0000_any_80_somename.no-ip.org.conf:
ServerName takes one argument, The hostname of the server
/usr/sbin/apachectl restart: httpd could not be started


anyone help me with that please?

thanks
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Feb 8, 2006, 06:44 PM
 
It would be helpful to see line 3 of your configuration file.
     
A1acran  (op)
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status: Offline
Reply With Quote
Feb 8, 2006, 06:51 PM
 
Originally Posted by mduell
It would be helpful to see line 3 of your configuration file.
how do i do that?
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Feb 8, 2006, 07:03 PM
 
Open up the file (0000_any_80_somename.no-ip.org.conf in /etc/httpd/sites/), and copy and paste the third line here.
     
A1acran  (op)
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status: Offline
Reply With Quote
Feb 8, 2006, 07:12 PM
 
# Default Virtual Host Configuration
<VirtualHost *:16080>
ServerName
ServerAdmin "A1acran"
DocumentRoot "/Library/WebServer/Documents"
DirectoryIndex "index.html" "index.php"
CustomLog "/var/log/httpd/access_log"
ErrorLog "/var/log/httpd/error_log"
ErrorDocument 404 /error.html
<IfModule mod_ssl.c>
SSLEngine Off
SSLLog "/var/log/httpd/ssl_engine_log"
SSLCertificateFile "/etc/certificates/Default.crt"
SSLCertificateKeyFile "/etc/certificates/Default.key"
SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+ eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlockany_80_default"
DAVMinTimeout 600
</IfModule>
<Directory "/Library/WebServer/Documents">
Options All -Indexes -ExecCGI -Includes +MultiViews
AllowOverride None
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_alias.c>
</IfModule>
LogLevel warn
ServerAlias *
</VirtualHost>
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
Feb 8, 2006, 07:26 PM
 
Given the error (ServerName takes one argument, The hostname of the server), the third line (ServerName), and the formatting of other nearby lines, it should be pretty obvious what you need to do.
     
A1acran  (op)
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status: Offline
Reply With Quote
Feb 8, 2006, 07:53 PM
 
ok that was easy, thanks
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2