doiggl@velocitynet.com.au wrote:
Hello,
/etc/apache2/vhosts.d/cacti.conf content as follows:
# cat /etc/apache2/vhosts.d/cacti.conf <?php /*
Well, that one's easy - that is not an apache config file, that's a PHP script. It probably belongs in the document root instead.
Hello,
File listing and content
# ll /srv/www/htdocs/ total 16 -rw-r--r-- 1 root root 302 Mar 13 2006 favicon.ico drwxr-xr-x 2 root root 208 Oct 15 20:38 gif -rw-r--r-- 1 root root 44 Nov 21 2004 index.html -rw-r--r-- 1 root root 2356 Sep 24 04:51 info2html.css -rw-r--r-- 1 root root 26 Nov 16 02:44 robots.txt
file content # cat /srv/www/htdocs/index.html <html><body><h1>It works!</h1></body></html>
file owner # rpm -qf /srv/www/htdocs/index.html apache2-example-pages-2.2.22-8.4.x86_64
Right, so far so good.
Next problem firefox http://127.0.0.1/ shows error:
Unable to connect Firefox can't establish a connection to the server at 127.0.0.1.
Glenn, as we have already established, apache does not start due to the cacti.conf php-script in the vhosts.d directory. That is where you need to start. I expect cacti.conf belongs in the document root for your cacti setup. First step: you can safely move it to somewhere safe. After that, your apache will start, but only with the example pages, I suspect. Second step: review your cacti configuration/installation. Something seems to have gone really wrong with that.
Observation: Firewall setting needs changing , but dont know which one.
There is nothing wrong with the firewall, only local clients will connect to 127.0.0.1.
# ll /etc/apache2/vhosts.d/ total 24 -rw-r--r-- 1 root root 2113 Nov 22 22:50 cacti.conf drwxr-xr-x 2 root root 80 Nov 23 00:54 conf.d
Uh, where did that one come from? I don't think vhosts.d has a conf.d directory, my apache servers certainly don't.
Two Questions: - Which firewall settings needs changing to allow 127.0.0.1 in firefox ?
None.
- How should should I call/reference "/etc/apache2/vhosts.d/cacti.conf" PHP script/mysql from the apeche2 /srv/www/htdocs/index.html file ?
First of all, it cannot remain in /etc/apache2/vhosts.d/, it will prevent apache from starting. I'm afraid I can't really help with your cacti setup. -- Per Jessen, Zürich (1.9°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org