![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Do you not already have these listen statements in /etc/apache2/ports.conf?
adam. On 29/07/2015 18:20:10, Federico Olivieri lvrfrc87@gmail.com wrote: Got Error during apache restart. In the mean time that I google the error, any idea?
root@banana:~# service apache2 restart [....] Restarting web server: apache2apache2: apr_sockaddr_info_get() failed for banana apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName apache2: apr_sockaddr_info_get() failed for banana apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080 [http://0.0.0.0:8080] no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. failed!
root@banana:~# cat /etc/apache2/sites-available/default Listen 80 Listen 8080
<VirtualHost *:80> ServerAdmin webmaster@localhost
DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 [http://127.0.0.0/255.0.0.0] ::1/128 </Directory> </VirtualHost>
<VirtualHost *:8080> ServerAdmin webmaster@localhost DocumentRoot /opt/observium/html <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /opt/observium/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined ServerSignature On </VirtualHost>
2015-07-29 18:01 GMT+01:00 Adam Armstrong <adama@memetic.org [mailto:adama@memetic.org]>:
Ahh yes, this is what I'd forgotten!
Thanks Laurent! :)
adam. On 29/07/2015 18:00:37, Laurent Dumont <admin@coldnorthadmin.com [mailto:admin@coldnorthadmin.com]> wrote: To add to this, iirc there should be a "Listen 8080" somewhere in the httpd conf.
You can use "netstat -punta | grep 8080" to show if the apache2 process is actually listening on the port.
On 7/29/2015 12:53 PM, Adam Armstrong wrote:
This should work :
<VirtualHost *:8080> ServerAdmin webmaster@localhost DocumentRoot /opt/observium/html <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /opt/observium/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined ServerSignature On </VirtualHost> On 29/07/2015 17:47:49, Federico Olivieri lvrfrc87@gmail.com [mailto:lvrfrc87@gmail.com] wrote: No I cant.
Can you just confirm if the apache configuration it is fine and or if I have to change something else??
Thank you!!!
Federico
2015-07-29 17:44 GMT+01:00 Adam Armstrong <adama@memetic.org [mailto:adama@memetic.org]>:
Hmm. I'm not sure. Can you reach it from the server itself?
links http://localhost:8080 [http://localhost:8080]
You might need to install links (or lynx)
adam. On 29/07/2015 17:43:35, Federico Olivieri < [mailto:lvrfrc87@gmail.com]lvrfrc87@gmail.com [mailto:lvrfrc87@gmail.com]> wrote: Thanks Adam for your reply. I removed the comment form the conf and know it is active on port 8080
However if I try to connect at the port I receive connection refused.
I create a iptable rule but I still have the problem
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
Any Idea?
2015-07-29 17:23 GMT+01:00 Adam Armstrong < [mailto:adama@memetic.org]adama@memetic.org [mailto:adama@memetic.org]>:
Hi Frederico,
You need to make a name, ip or port based virtual host.
The section you have commented out at the bottom seems like it would work to allow you to access Observium on port 8080.
adam. On 29/07/2015 17:17:38, Federico Olivieri < [mailto:lvrfrc87@gmail.com]lvrfrc87@gmail.com [mailto:lvrfrc87@gmail.com]> wrote: Hi All,
I was running OBSERVIUM as only service on my Apache configuration and it was fine. However I needed to add another software via web interface and I roll backe the Apache configuration..
From that point I m not able anymore to access to OBSERVIUM (as aspected)
I tried [http://ipaddrress/opt/observium/%5Dhttp://ipaddrress/opt/observium/ [http://ipaddrress/opt/observium/] but it doesn t work.
That s my conf. How can I run 2 web interface via Apache?
<VirtualHost *:80> ServerAdmin webmaster@localhost
DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 [http://127.0.0.0/255.0.0.0] ::1/128 </Directory> </VirtualHost>
#<VirtualHost *:8080> # DocumentRoot /opt/observium/html/ # ServerName observium.domain.com [http://observium.domain.com] # CustomLog /opt/observium/logs/access_log combined # ErrorLog /opt/observium/logs/error_log # <Directory "/opt/observium/html/"> # AllowOverride All # Options FollowSymLinks MultiViews # </Directory>
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org [mailto:observium@observium.org] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [http://postman.memetic.org/cgi-bin/mailman/listinfo/observium]
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium