[opensuse-factory] settings needed to get apache working on a local pc {127.0.0.1}
Hello, I am trying to get apache working on a local pc {127.0.0.1} and get this message. Access forbidden! You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster. Error 403 127.0.0.1 Wed May 30 19:08:55 2012 Apache/2.2.22 (Linux/SUSE) I have this version of Apache installed on Opensuse 12.2 factory # rpm -qa | grep -i apache | sort apache2-2.2.22-2.3.x86_64 apache2-mod_php5-5.3.10-1.3.x86_64 apache2-prefork-2.2.22-2.3.x86_64 apache2-utils-2.2.22-2.3.x86_64 Questions: - Which directory should this index document reside ? - Is there some documentation on how to get apache working, have you got a link to it ? Thanks Glenn -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wednesday 30 May 2012 19.42:30 doiggl@velocitynet.com.au wrote:
Hello, I am trying to get apache working on a local pc {127.0.0.1} and get this message.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 127.0.0.1 Wed May 30 19:08:55 2012 Apache/2.2.22 (Linux/SUSE)
I have this version of Apache installed on Opensuse 12.2 factory
# rpm -qa | grep -i apache | sort apache2-2.2.22-2.3.x86_64 apache2-mod_php5-5.3.10-1.3.x86_64 apache2-prefork-2.2.22-2.3.x86_64 apache2-utils-2.2.22-2.3.x86_64
Questions: - Which directory should this index document reside ? - Is there some documentation on how to get apache working, have you got a link to it ?
Thanks Glenn
Are you sure you're not trying to access it by ::1 ? By default on openSUSE /srv/www/htdocs/ should contain a index.html /etc/apache2/httpd.conf is particulary worse to read and understand ... How the "secret" link to documentation (3 click away :-) http://doc.opensuse.org/documentation/html/openSUSE/opensuse-reference/cha.a... # Quickstart guide: # http://en.opensuse.org/Apache_Quickstart_HOWTO # Overview of include files, chronologically: # # httpd.conf # | # |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under # |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...) # |-- sysconfig.d/loadmodule.conf . . . . . [*] load these modules # |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on # |-- mod_log_config.conf . . . . . . . . . define logging formats # |-- sysconfig.d/global.conf . . . . . . . [*] server-wide general settings # |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring) # |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info # |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking # |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings # |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration # |-- errors.conf . . . . . . . . . . . . . customize error responses # |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts # | # |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests # | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded) # | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed) # | # |-- sysconfig.d/include.conf . . . . . . [*] your include files # | (for each file to be included here, put its name # | into APACHE_INCLUDE_* in /etc/sysconfig/apache2) # | # `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here # `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included) # # # Files marked [*] are created from sysconfig upon server restart: instead of # these files, you edit /etc/sysconfig/apache2 # Filesystem layout: # # /etc/apache2/ # |-- charset.conv . . . . . . . . . . . . for mod_auth_ldap # |-- conf.d/ # | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc # | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4 # | `-- ... . . . . . . . . . . . . . . . other configuration added by packages # |-- default-server.conf # |-- errors.conf # |-- httpd.conf . . . . . . . . . . . . . top level configuration file # |-- listen.conf # |-- magic # |-- mime.types -> ../mime.types # |-- mod_autoindex-defaults.conf # |-- mod_info.conf # |-- mod_log_config.conf # |-- mod_mime-defaults.conf # |-- mod_perl-startup.pl # |-- mod_status.conf # |-- mod_userdir.conf # |-- mod_usertrack.conf # |-- server-tuning.conf # |-- ssl-global.conf # |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL) # |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates # |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests # |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys # |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files # |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2 # | |-- global.conf # | |-- include.conf # | `-- loadmodule.conf # |-- uid.conf # `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here # |-- vhost-ssl.template # `-- vhost.template -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch openSUSE Member & Ambassador GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Wednesday 30 May 2012 19.42:30 doiggl@velocitynet.com.au wrote:
Hello, I am trying to get apache working on a local pc {127.0.0.1} and get
On Wed, 30 May 2012 15:47:26 +0200, Bruno Friedmann
message.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 127.0.0.1 Wed May 30 19:08:55 2012 Apache/2.2.22 (Linux/SUSE)
I have this version of Apache installed on Opensuse 12.2 factory
# rpm -qa | grep -i apache | sort apache2-2.2.22-2.3.x86_64 apache2-mod_php5-5.3.10-1.3.x86_64 apache2-prefork-2.2.22-2.3.x86_64 apache2-utils-2.2.22-2.3.x86_64
Questions: - Which directory should this index document reside ? - Is there some documentation on how to get apache working, have you got a link to it ?
Thanks Glenn
Are you sure you're not trying to access it by ::1 ?
By default on openSUSE /srv/www/htdocs/ should contain a index.html
Hello, I have the following files and rpm installed along with these settings. What apache.rpm has the index.html file in it , because I do not see a index.html in /srv/www/htdocs/ Thanks Glenn # ll /srv/www/htdocs/ total 4 drwxr-xr-x 2 root root 208 Jul 3 21:34 gif -rw-r--r-- 1 root root 2356 Feb 18 12:22 info2html.css --rpm installed # rpm -qa | grep -i apache | sort apache2-2.2.22-4.1.1.x86_64 apache2-mod_php5-5.3.13-2.1.1.x86_64 apache2-prefork-2.2.22-4.1.1.x86_64 apache2-utils-2.2.22-4.1.1.x86_64 Settings as follows: # service mysql start redirecting to systemctl # service apache2 start redirecting to systemctl # service snmpd start redirecting to systemctl # chkconfig -a mysql Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. mysql 0:off 1:off 2:off 3:on 4:off 5:on 6:off # chkconfig -a apache2 insserv: Note: sysvinit service apache2 is shadowed by systemd apache2.service, Forwarding request to '/bin/systemctl --no-reload --root / enable apache2.service'. ln -s '///lib/systemd/system/apache2.service' '///etc/systemd/system/multi-user.target.wants/apache2.service' insserv: Forward service request to systemctl returned error status : 256 Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. apache2 0:off 1:off 2:off 3:on 4:off 5:on 6:off # chkconfig -a snmpd Note: This output shows SysV services only and does not include native systemd services. SysV configuration data might be overridden by native systemd configuration. snmpd 0:off 1:off 2:on 3:on 4:off 5:on 6:off -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Quoting doiggl@velocitynet.com.au:
On Wednesday 30 May 2012 19.42:30 doiggl@velocitynet.com.au wrote:
Hello, I am trying to get apache working on a local pc {127.0.0.1} and get
On Wed, 30 May 2012 15:47:26 +0200, Bruno Friedmann
wrote: this message.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. Error 403 127.0.0.1 Wed May 30 19:08:55 2012 Apache/2.2.22 (Linux/SUSE)
I have this version of Apache installed on Opensuse 12.2 factory
# rpm -qa | grep -i apache | sort apache2-2.2.22-2.3.x86_64 apache2-mod_php5-5.3.10-1.3.x86_64 apache2-prefork-2.2.22-2.3.x86_64 apache2-utils-2.2.22-2.3.x86_64
Questions: - Which directory should this index document reside ? - Is there some documentation on how to get apache working, have you got a link to it ?
Thanks Glenn
Are you sure you're not trying to access it by ::1 ?
By default on openSUSE /srv/www/htdocs/ should contain a index.html
Hello, I have the following files and rpm installed along with these settings. What apache.rpm has the index.html file in it , because I do not see a index.html in /srv/www/htdocs/ Thanks Glenn
apache2-example-pages contains a sample page, incl. an index.html Not, that this makes sense to have installed.. but it shows that you can get started. Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Bruno Friedmann
-
doiggl@velocitynet.com.au
-
Dominique Leuenberger a.k.a DimStar