[opensuse] How does a directory on localhost connect to http://127.0.0.1/dirname/
Hello,
Questions:
1. How does a directory on localhost connect to http://127.0.0.1/dirname/
2. How can following problem be fixed ?
I am referring to for information: http://en.opensuse.org/Cacti
Help appreciated.
Thanks --Glenn
#
http://127.0.0.1/cacti/
http://localhost/cacti/
Object not found!
The requested URL was not found on this server. If you entered the URL
manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
127.0.0.1
Apache/2.4.6 (Linux/SUSE)
I cannot complete Cacti Installation via web installer
Tried http://SERVER-IP/cacti to view the web installer.
Software is installed and apache/mysql parts are running.
I tried the following but no luck:
What have I missed ?
Cannot do the following steps because of:Object not found! on
http://127.0.0.1/cacti/
Final Cacti Configuration browse to http://serverip/cacti
Next
Select New Install - Next
Finish
Log in as admin/admin
change admin password to: newpassword
- Stuff done so far:
--------------------
# httpd2 -S
VirtualHost configuration:
*:80 is a NameVirtualHost
default server 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1)
port 80 namevhost 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1)
port 80 namevhost 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1)
ServerRoot: "/srv/www"
Main DocumentRoot: "/srv/www/htdocs"
Main ErrorLog: "/var/log/apache2/error_log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/run/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="wwwrun" id=30
Group: name="www" id=8
#
# cat /etc/apache2/vhosts.d/cacti.conf
On 05/04/2014 10:57 AM, doiggl@velocitynet.com.au wrote:
Hello, Questions: 1. How does a directory on localhost connect to http://127.0.0.1/dirname/ 2. How can following problem be fixed ? I am referring to for information: http://en.opensuse.org/Cacti Help appreciated.
Hi Glenn, I recommend the Apache documentation. There, all kinds of VirtualHost configuration are explained with many examples. http://httpd.apache.org/docs/2.4/vhosts/
# http://127.0.0.1/cacti/ http://localhost/cacti/
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster. Error 404 127.0.0.1 Apache/2.4.6 (Linux/SUSE)
I cannot complete Cacti Installation via web installer
Tried http://SERVER-IP/cacti to view the web installer.
Software is installed and apache/mysql parts are running. I tried the following but no luck: What have I missed ?
Cannot do the following steps because of:Object not found! on http://127.0.0.1/cacti/
Final Cacti Configuration browse to http://serverip/cacti
Next Select New Install - Next Finish Log in as admin/admin change admin password to: newpassword
- Stuff done so far: --------------------
# httpd2 -S VirtualHost configuration: *:80 is a NameVirtualHost default server 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1) port 80 namevhost 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1) port 80 namevhost 127.0.0.1 (/etc/apache2/vhosts.d/cacti.conf:1)
The above looks strange because ...
ServerRoot: "/srv/www" Main DocumentRoot: "/srv/www/htdocs" Main ErrorLog: "/var/log/apache2/error_log" Mutex ssl-stapling: using_defaults Mutex ssl-cache: using_defaults Mutex default: dir="/run/" mechanism=default Mutex mpm-accept: using_defaults PidFile: "/run/httpd.pid" Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name="wwwrun" id=30 Group: name="www" id=8 # # cat /etc/apache2/vhosts.d/cacti.conf
ServerAdmin test@localhost.org ServerName 127.0.0.1
... you seem to use name-based virtual hosts, yet using the IP as ServerName. I find this a bit confusing. If you want name- based vhosts, then you need to give a real hostname which should be resolvable by the client browsers (either via DNS or via a hard-coded "hosts" entry.
DocumentRoot /srv/www/cacti/ ErrorLog /var/log/apache2/cacti-error_log CustomLog /var/log/apache2/cacti-access_log combined HostnameLookups Off UseCanonicalName Off ServerSignature On <IfModule mod_userdir.c> UserDir public_html Include /etc/apache2/mod_userdir.conf </IfModule>
As written in the other thread, please remove the blank character in the string above.
Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> </VirtualHost>
# ll /srv/www/cacti total 1202 -rw-r--r-- 1 wwwrun www 5945 Apr 14 16:59 about.php -rw-r--r-- 1 wwwrun www 5348 Apr 14 16:59 auth_changepassword.php -rw-r--r-- 1 wwwrun www 14288 Apr 14 16:59 auth_login.php -rw-r--r-- 1 wwwrun www 178349 Apr 21 12:58 cacti-fixed.sql -rw-r--r-- 1 wwwrun www 178349 Apr 14 16:59 cacti.sql [...]
As far as I understand, the URL should be http://SERVERNAME/cacti/, with /srv/www/cacti as ServerRoot for http://SERVERNAME/. For this, all the above content would have to be in a directory /srv/www/cacti/cacti. Anyway, I don't know if you need a VirtualHost setting anyway. If the path part of the URL is "/cacti/", then it would be probably sufficient to use some URL mapping into the file system for the main apache server (http://httpd.apache.org/docs/2.4/urlmapping.html). OTOH, a VirtualHost separates the other settings needed for the cacti software. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
doiggl@velocitynet.com.au wrote:
Hello, Questions: 1. How does a directory on localhost connect to http://127.0.0.1/dirname/
With an "Alias". Don't forget the correct permissions.
2. How can following problem be fixed ?
Software is installed and apache/mysql parts are running. I tried the following but no luck: What have I missed ?
Cannot do the following steps because of:Object not found! on http://127.0.0.1/cacti/
AFAICS, your documentroot = "/srv/www/cacti" has no directory named "cacti" nor a file named "cacti.html". To access the documents in your document root, I would try http://127.0.0.1/ If Cacti insists on using a subdirectory = "cacti", I would suggest: a) create /srv/www/<something>/htdocs/cacti b) move current files from /srv/www/cacti into the above. c) amend your vhosts config accordingly. (documentroot etc) There are many ways of achieving what you want, this is just one. -- Per Jessen, Zürich (9.3°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Bernhard Voelker
-
doiggl@velocitynet.com.au
-
Per Jessen