Apache 2, mod_perl 2.0.3, perl 5.8.6, Mac OS 10.4.9, Turnkey from CVS.
So I figured I’d start with a simple installation, the wine Web site. Here is my script, it’s an updated version of the script at turnkey.sf.net:
#!/bin/tcsh
setenv TURNKEY_ROOT /Users/bosborne/turnkey
setenv INSTALLDIR /usr/local/apache2/wine
rm -rf $INSTALLDIR
perl turnkey_generate --skip_tables= --dbuser=postgres --dbpass= --dbhost=localhost \
--wwwemail=admin@host --sqlfile_path=$TURNKEY_ROOT/schema/wine_just_schema.sql --dbname=wine \
--output_path=$INSTALLDIR --install_path=$INSTALLDIR --dbport=5432 --concat=Wine --uri_prefix=demo/wine \
--virtual=N --wwwport=80 --wwwhost=localhost --usedemo=1 --demo=wine --output_type=web_mod_perl \
--use_web_caching=0 --search_engine=class-dbi-conceptsearch
sudo chmod -R a+rw $INSTALLDIR
This proceeds without an error, then I add the Include to the main httpd.conf. ‘sudo apachectl start’ runs no problem, and http://localhost shows the expected page. However, http://localhost/demo/wine gives:
Forbidden
You don't have permission to access /demo/wine/ on this server.
Now the file /usr/local/apache2/wine/html/index.html exists:
665 /usr/local/apache2/wine>cat html/index.html
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=/demo/wine/db/index">
This is the top of wine/conf/httpd.conf, the aliases:
Alias /demo/wine/images /usr/local/apache2/wine/html/images
Alias /demo/wine/css /usr/local/apache2/wine/html/css
Alias /demo/wine/files /usr/local/apache2/wine/html/files
ScriptAlias /demo/wine/cgi-bin /usr/local/apache2/wine/html/cgi-bin
Alias /demo/wine /usr/local/apache2/wine/html
If I’m not mistaken all of this means there should be file /usr/local/apache2/wine/html/db/index.html. However:
670 local/apache2/wine/html>ls
total 4
0 CVS/ 0 css/ 0 files/ 0 images/ 4 index.html
No db/ directory, nor is there a cgi-bin/ directory. By the way, the installation of the ‘wine’ db into Postgres worked, no problems there, and I can access it as ‘postgres’.