Results 1 to 5 of 5
Hi all
OS - Ubuntu 12.04 desktop 64bit running as VM
Virtualizer Oracle VirtualBox
airtime 2.2.1-1
phpmyadmin NOT installed.
$ sudo service apache2 start
Code:
* Starting web server apache2
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-16-2013 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Unable to start apache2
Hi all
OS - Ubuntu 12.04 desktop 64bit running as VM
Virtualizer Oracle VirtualBox
airtime 2.2.1-1
phpmyadmin NOT installed.
$ sudo service apache2 start$ tail /var/log/apache2/error.logCode:* Starting web server apache2 Syntax error on line 5 of /etc/apache2/sites-enabled/airtime-vhost: ServerAdmin takes one argument, The email address of the server administrator Action 'start' failed. The Apache error log may have more information. ...fail!
Please advise where to check and how to fix the problem? TIACode:[Wed Jan 16 15:26:06 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations [Wed Jan 16 15:26:07 2013] [notice] caught SIGTERM, shutting down [Wed Jan 16 15:26:08 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.4 with Suhosin-Patch configured -- resuming normal operations [Wed Jan 16 15:34:43 2013] [notice] caught SIGTERM, shutting down
B.R.
satimis
- 01-16-2013 #2
The error explains where to look
Code:Syntax error on line 5 of /etc/apache2/sites-enabled/airtime-vhost: ServerAdmin takes one argument, The email address of the server administrator
You must always face the curtain with a bow.
- 01-16-2013 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
$ cat /etc/apache2/sites-enabled/airtime-vhostline 5 - originalCode:<VirtualHost *:80> ServerName icecast.mydomain.com #ServerAlias Example Domain ServerAdmin root@localhost An email address is required for the virtual host configuration. DocumentRoot /usr/share/airtime/public DirectoryIndex index.php SetEnv APPLICATION_ENV "production" <Directory /usr/share/airtime/public> Options -Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>Tried;Code:ServerAdmin root@localhost An email address is required for the virtual host configuration.
1)
satimis@icecast.mydomain.com
2)
satimis@mydomain.com
Also tried;
ServerName www.mydomain.com
satimis@mydomain.com (mail address)
All failed.
Apache2 was automatically installed when running;I suspect there is another config file its content must be matched.Code:$ sudo apt-get install airtime
Must "hostname" be matched?
$ hostname$ hostname -fCode:ub1204dk02
ThanksCode:ub1204dk02
satimis
- 01-16-2013 #4
Probably the comment sign is missing, so all the words are evaluated. Which then leads to the error.
But you dont need that comment anyways.
Replace the ServerAdmin line by just this:
Code:ServerAdmin satimis@mydomain.com
You must always face the curtain with a bow.
- 01-16-2013 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
deleted the sentence "An email address is required for the virtual host configuration" after "ServerAdmin satimis@mydomain.com"
$ cat /etc/apache2/sites-enabled/airtime-vhost$ ls -al /etc/apache2/sites-enabled/Code:<VirtualHost *:80> ServerName icecast.mydomain.com #ServerAlias www.example.com ServerAdmin satimis@mydomain.com DocumentRoot /usr/share/airtime/public DirectoryIndex index.php SetEnv APPLICATION_ENV "production" <Directory /usr/share/airtime/public> Options -Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>Why this is a symbolic link?Code:total 8 drwxr-xr-x 2 root root 4096 Jan 16 22:05 . drwxr-xr-x 7 root root 4096 Jan 16 15:26 .. lrwxrwxrwx 1 root root 32 Jan 16 15:26 airtime-vhost -> ../sites-available/airtime-vhost
$ sudo service apache2 start$ sudo nano /etc/hostsCode:* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ...done.
Replaced "ub1204dk02" with "mydomain.com" and rebootedCode:127.0.0.1 localhost 127.0.1.1 ub1204dk02 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
$ sudo service apache2 restartMistake still remainsCode:sudo: unable to resolve host ub1204dk02 * Restarting web server apache2 apache2: apr_sockaddr_info_get() failed for ub1204dk02 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ... waiting apache2: apr_sockaddr_info_get() failed for ub1204dk02 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ...done.
Edit:
-----
$ cat /etc/hostnamechanged "ub1204dk02" to "mydomain.com"Code:ub1204dk02
$ sudo service apache2 restartNow it works. ThanksCode:* Restarting web server apache2 ... waiting ...done.
B.R.
satimis


Reply With Quote

