logo       

Re: rh9, virtual hosts, PrettyWiki or just plain Working?: msg#00123

web.wiki.phpwiki.talk

Subject: Re: rh9, virtual hosts, PrettyWiki or just plain Working?

Hey Folks,

Hope Xmas was good (for those that do that).

I've got an update on my previous problem, and some of it's good news:
I've successfully set up a virtual host without requiring any alteration
of the phpwiki RPM, and it only needs two files to get going right:

- wiki file in the virtualhost document root that looks like this:
http://cvs.platypus.bc.ca/cgi-bin/viewcvs.cgi/*checkout*/bishop/sites/www.platypus.bc.ca/wiki?rev=1.5
- apache virtualhost setup that includes:
<virtualhost my.site.name>
# regular stuff, plus:
alias themes/ /var/www/html/phpwiki/themes/
</VirtualHost>

<Directory /virtualhost/document/root>
Options +Includes
Options +Indexes
Options +ExecCGI
AllowOverride AuthConfig
</Directory>

Mine includes this and a few more bits:
http://cvs.platypus.bc.ca/cgi-bin/viewcvs.cgi/*checkout*/bishop/virtualhosts/virtuals/platypus.bc.ca?rev=1.11


THE PROBLEM:
I'm still required to use an URL like: https://my.site.name/wiki/HomePage
and I'd absolutely *love* to find out hwo to make it so that I only need
https://my.site.name/HomePage as a URL.

Anyone succeeded on this, yet?

I can't believe I've made it this far, that I still have most of my hair,
and I even have it all in CVS, even if several beers and the odd pizza
gave their all to support me in this endeavour. Oh, and all the poor
souls on Halo:!Blood-Only[T1] over whom I totally ran amok in one
singularly excellent night of truly inspired gameplay. Woo!

- bish

> http://phpwiki.sourceforge.net/phpwiki/PrettyWiki
>
> Hey Folks,
>
> Last night was full of frustration. My goal was to get a virtualhost
> PrettyWiki'ed server going with the wiki as its default page, but I was
> completely unsuccessful before exhaustion claimed me about 0800.
>
> I'm hoping someone's done this exact thing:
>
> I want to have a centralized phpwiki installation (/var/www/html/phpwiki/
> as per
> http://apt.platypus.bc.ca/~bishop/apt/RPMS.bish/phpwiki-1.3.7-0.20031219.05.rh9.i386.rpm)
> and use a index.php in the vhost documentroot to start the wiki. So,
> here's my setup so far:
> - RH9 + httpd, php, the usual
> http://apt.platypus.bc.ca/~bishop/apt/RPMS.bish/phpwiki-1.3.7-0.20031219.05.rh9.i386.rpm
> http://apt.platypus.bc.ca/~bishop/apt/i386/rh9/RPMS.bish/apache-incdirmod-1.4-5.20031208.14.rh9.noarch.rpm
> (that second one sets up dir-tree inclusion of the httpd.d dir)
> - /etc/httpd/conf/httpd.d/virtualhost.default.conf:
> NameVirtualHost *:80
> <virtualhost _default_:80>
> </virtualhost>
> - /etc/httpd/conf/httpd.d/virtuals/wiki.platypus.bc.ca:
> (http://cvs.platypus.bc.ca/cgi-bin/viewcvs.cgi/*checkout*/bishop/virtualhosts/virtuals/wiki.platypus.bc.ca?rev=1.1)
> <VirtualHost *:80>
> ServerName www.wiki.platypus.bc.ca
> ServerAlias wiki.platypus.bc.ca
> ServerAlias www
> ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxx
> DocumentRoot /home/wiki/wiki
>
> ErrorLog logs/wiki.platypus.bc.ca/error_log
> CustomLog logs/wiki.platypus.bc.ca/access_log combined
>
> UserDir disabled
> </VirtualHost>
>
> <Directory /home/wiki>
> Order Allow,Deny
> Allow from All
> Options +Indexes
> AllowOverride AuthConfig
> </Directory>
>
> <Directory /home/wiki/wiki>
> Options +Includes
> Options +ExecCGI
> AllowOverride FileInfo
> </Directory>
>
> now, when I hit the URL:
> /var/www/html/phpwiki/lib/Template.php:21: Warning[2]: fopen("", "rb") -
> No such file or directory
> /var/www/html/phpwiki/lib/Template.php:22: Warning[2]: stat failed for
> (errno=2 - No such file or directory)
> /var/www/html/phpwiki/lib/Template.php:22: Warning[2]: fread(): supplied
> argument is not a valid File-Handle resource
> /var/www/html/phpwiki/lib/Template.php:23: Warning[2]: fclose(): supplied
> argument is not a valid File-Handle resource
> /var/www/html/phpwiki/lib/Template.php:21: Warning[2]: fopen("", "rb") -
> No such file or directory
> /var/www/html/phpwiki/lib/Template.php:22: Warning[2]: stat failed for
> (errno=2 - No such file or directory)
> /var/www/html/phpwiki/lib/Template.php:22: Warning[2]: fread(): supplied
> argument is not a valid File-Handle resource
> /var/www/html/phpwiki/lib/Template.php:23: Warning[2]: fclose(): supplied
> argument is not a valid File-Handle resource
> /var/www/html/phpwiki/lib/Theme.php:195: Notice[1024]:
> templates/browse.tmpl: not found
> /var/www/html/phpwiki/lib/Theme.php:195: Notice[1024]:
> templates/html.tmpl: not found
>
> SO: What I'm thinking, right now, is that I'm not using this as per
> directions on the bottle. There may be a bug in the code, and indications
> are that it's near the theming bit, that make a centrally-loated phpwiki
> installation and vhost configs impossible.
>
> Anyone else successfully used a centrally installed phpwiki with
> replacement 'wiki' files located in other parts of the system?
>
> Yours in potential frustration,
> - bish
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Phpwiki-talk mailing list
> Phpwiki-talk@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk
>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise