[Moin-user] Re: Re: suse 9.0: error 403

Chris Epicier seuchato at yahoo.de
Tue Jun 15 04:13:17 EDT 2004


Hi there

Here is what I did:
15.6.04 Complete new start
1.  downloading moin.1.2.2,tar.gz: done
2.  extracting to /tmp/moin using "tar xzf 
moin-1.2.2.tgz": got a directory named moin-1.2.2 un
/tmp/moin
3.  cd moin-1.2.2
4.  running "python setup.py install
--record=install.log": ran OK, checking install.log:
OK
5.  created and ran the following script:
    "
    cd /usr/share/moin
    mkdir mywiki
    cp -r data mywiki
    cp cgi-bin/* mywiki
    chown -R wwwrun.www mywiki
    chmod a+rx mywiki/*.cgi
    "
    result: evrything seems to be where it should
6.  verifying rights and owners in ./mywiki:
    "
    terra:/usr/share/moin #
terra:/usr/share/moin/mywiki # ls -l
    insgesamt 36
    drwxr-xr-x    3 wwwrun   www           312
2004-06-15 12:22 .
    drwxr-xr-x    6 root     root          200
2004-06-15 12:22 ..
    drwxr-xr-x    5 wwwrun   www           152
2004-06-15 12:22 data
    -rwxr-xr-x    1 wwwrun   www          1021
2004-06-15 12:22 moin.cgi
    -rw-r--r--    1 wwwrun   www          2446
2004-06-15 12:22 moin_config.py
    -rwxr-xr-x    1 wwwrun   www           637
2004-06-15 12:22 moin.fcg
    -rw-r--r--    1 wwwrun   www          1267
2004-06-15 12:22 moin_modpy.htaccess
    -rw-r--r--    1 wwwrun   www          1063
2004-06-15 12:22 moin_modpy.py
    -rwxr-xr-x    1 wwwrun   www           852
2004-06-15 12:22 moin.py
    -rw-r--r--    1 wwwrun   www          5299
2004-06-15 12:22 moin_twisted.py
    -rwxr-xr-x    1 wwwrun   www           261
2004-06-15 12:22 moin_twisted.sh
    terra:/usr/share/moin/mywiki # ls -l ./data
    insgesamt 22
    drwxr-xr-x    5 wwwrun   www           152
2004-06-15 12:22 .
    drwxr-xr-x    3 wwwrun   www           312
2004-06-15 12:22 ..
    -rw-r--r--    1 wwwrun   www          4425
2004-06-15 12:22 intermap.txt
    drwxr-xr-x    9 wwwrun   www           264
2004-06-15 12:22 plugin
    drwxr-xr-x    2 wwwrun   www         13960
2004-06-15 12:22 text
    drwxr-xr-x    2 wwwrun   www            72
2004-06-15 12:22 user
    "
    Looks OK from my side
7.  Creating following entries in
/etc/apache2/httpd.conf.local
    "
    Alias /wiki/ "/usr/local/share/moin/htdocs/"
    ScriptAlias /mywiki
"/usr/local/share/moin/mywiki/moin.cgi"
    "
8.  verified that the follwong line is active in
/etc/sysconfig/apache2:
    "
    terra:/etc/sysconfig # cat apache2 | grep INCLUDE
   
APACHE_CONF_INCLUDE_FILES="/etc/apache2/httpd.conf.local"
    "
    So that's OK too,
9.  restarting apache2 using "rcapache2 restart":
    "
    terra:/etc/sysconfig # rcapache2 restart
    Syntax OK
    Shutting down httpd2 (waiting for all children to
terminate)                                            
        done
    Starting httpd2 (prefork)                         
                                                      
       done
    "
10. checking /var/log/apache2/error_log and access_log
for messages indicating failure:
    "
    terra:/etc/sysconfig # tail
/var/log/apache2/error_log
    ...
    [Tue Jun 15 12:35:12 2004] [notice] caught
SIGTERM, shutting down
    [Tue Jun 15 12:35:15 2004] [warn] Init: Session
Cache is not configured [hint: SSLSessionCache]
    [Tue Jun 15 12:35:15 2004] [notice] suEXEC
mechanism enabled (wrapper: /usr/sbin/suexec2)
    [Tue Jun 15 12:35:17 2004] [notice] Apache/2.0.48
(Linux/SuSE) configured -- resuming normal operations
    "
    That looks OK from my side..
    "
    tail /var/log/apache2/access_log
    ...
    192.168.0.116 - - [15/Jun/2004:10:04:36 +0200]
"GET
/phprojekt/projects/projects.php?mode=forms&ID=941&filter=&key..."
    "
    looks OK too and we can access phprojekt too, so
apache2 runs OK
11. test for mywiki at http://localhost/mywiki from
Konqueror:
    "
    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

     localhost
     Tue Jun 15 12:41:33 2004
     Apache/2.0.48 (Linux/SuSE)
    "

    In apache2's error_log I find:
    "
    ...
    [Tue Jun 15 12:41:33 2004] [error] [client ::1]
client denied by server configuration:
/usr/local/share/moin
    "
    in the access_log:
    "
    ...
    ::1 - - [15/Jun/2004:12:41:33 +0200] "GET /mywiki/
HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (compatible;
Konqueror/3.1; Linux)"
    ::1 - - [15/Jun/2004:12:41:33 +0200] "GET
/favicon.ico HTTP/1.1" 200 302 "-" "Mozilla/5.0
(compatible; Konqueror/3.1; Linux)"
    "
    So far the procedure as following the install.html
in the tarball, now moving on to more Suse 9.0
specific information:
12. Checking the trouble shooting section: Missing
permission to serve the `mywiki` directorys:
    So, modifying /etc/apache2/httpd.conf.local to
this
    "
    #Alias /wiki/ "/usr/local/share/moin/htdocs/"
    #ScriptAlias /mywiki
"/usr/local/share/moin/mywiki/moin.cgi"
    #2nd try:
    #Missing permission to serve the `mywiki`
directory
    Alias /wiki/ "/usr/share/moin/htdocs/"
    <Directory "/usr/share/moin/htdocs/>
        Order deny,allow
        Allow from all
    </Directory>
    ScriptAlias /mywiki
"/usr/share/moin/mywiki/moin.cgi"
    <Directory "/usr/share/moin/mywiki/moin.cgi">
        Order deny,allow
        Allow from all
    </Directory>
    "
    And restarting apache2 again
13. New try at http://localhost/mywiki I get the same
403 access forbidden and in apache2's error_log I
find:
    "
    [Tue Jun 15 12:55:25 2004] [notice] Apache/2.0.48
(Linux/SuSE) configured -- resuming normal operations
    [Tue Jun 15 12:55:36 2004] [error] [client ::1]
client denied by server configuration:
/usr/share/moin/mywiki/moin.cgi
    "
    In apache2's access_log I find:
    "
    ...
    ::1 - - [15/Jun/2004:12:55:36 +0200] "GET /mywiki/
HTTP/1.1" 403 1045 "-" "Mozilla/5.0 (compatible;
Konqueror/3.1; Linux)"
    "
    So, I made to the moin.cgi script.
14. checking permissions, ownership of moin.cgi:
    "
    terra:/usr/share/moin/mywiki # ls -l moin.cgi
    -rwxr-xr-x    1 wwwrun   www          1021
2004-06-15 12:22 moin.cgi
    "
    I think that should be OK or am I wrong?




	

	
		
___________________________________________________________
Bestellen Sie Y! DSL und erhalten Sie die AVM "FritzBox SL" für 0€.
Sie sparen 119€ und bekommen 2 Monate Grundgebührbefreiung.
http://de.adsl.yahoo.com




More information about the Moin-user mailing list