Talk:Apache configuration/Archive 1

From mediawiki.org
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

The page mentions:

" if in LocalSettings your $wgScript is '/w/wiki.phtml' "

by LocalSettings are you refering to the LocalSettings.php file?

I looked in this file and could find reference to the $wgScript variable, but not where it was defined.


[root@localhost phase3]# grep -e wgScript * install.php:print "Done.\nBrowse \"{$wgServer}{$wgScript}\" to test,\n" . install.php.~1.8.~:print "Done.\nBrowse \"{$wgServer}{$wgScript}\" to test,\n" .LocalSettings.php:$wgArticlePath = "{$wgScript}?title=$1"; LocalSettings.php~:$wgArticlePath = "{$wgScript}?title=$1"; LocalSettings.sample:$wgArticlePath = "{$wgScript}?title=$1"; texvc.phtml:print "<form method=\"post\" action=\"{$wgServer}{$wgScriptPath}/texvc_cgi.phtml\">" [root@localhost phase3]#


Is there something missing? There is not a version number on the page but it was downloaded in the mediawiki-20030829 tar file from sourceforge

LocalSettings.php contains only settings that you have defined. Initial and default settings are made in DefaultSettings.php, which you'll find in the includes/ subdirectory in the tarball. Overrride anything that won't be right in your LocalSettings.php. --Brion VIBBER 04:55, 21 Oct 2003 (UTC)

Versions

Am I correct in assuming that we use Apache 1.3 ?? GerardM 08:53, 26 Jun 2004 (UTC)

I'm totally new to wiki but am trying to install a trial wiki on my machine - win xp - running apache 1.3.31 / php 4.3.7 / mysql 4.0.18-nt. I tried the web-based install and everything appeared to go fine, moved localsettings and deleted /config.

But all I get on visiting my url: localhost/wiki is a "Page cannot be displayed" error. I have a stong hunch that this is because of a badly configured apache server. Does anyone have a good config that they would be willing to share?

Or any other ideas?

All help appreciated! Thank you!

Simon

dus dat

PHP as cgi

Can wikimedia (1.3.7) be installed on suPHP running as cgi. I'm asking bec. I'm trying to install it on lunarpages and something is giving me problems - the system is unresponsive after installation - something hangs the system/script/what ever. Running the installation works fine though - the only problem is that the installation script says that I will get ugly URLs bec. PHP is set to run as cgi. --Stenbh 11:49, 24 Oct 2004 (UTC)

Rewrite Rules

Rewrite Rules provides a much more complete coverage of that topic than what is given here. I personally was struggling some with the content here until I finally discovered that the other page exists (the only reference to it on this page is on the sidebar, rather than in the text where some users might expect to find it). Rather than having the same information in two places -- with one of those places being much less complete -- why not remove the duplicate content here and defer people to the other page? If not, then at least include a reference to the other page "for more info" or something. (I don't feel comfortable as a new user making these changes to core documentation myself, especially on a topic I'm not too knowledgeable on.) Zawersh 22:13, 8 Dec 2004 (UTC)

Good idea. Done! Matthewsim 16:36, 21 Jan 2005 (UTC)

Reverse Proxy

I set up a reverse proxy to allow authenticated outside users access to our wiki, but the links to skins and all the images other than the "powered by mediawiki" are not getting resolved correctly. The errors look like this:

script 'var/www/index.php' not found or unable to stat, referrer https://gateway.mydomain.tld/wiki/wiki/index.php/Main_Page

The httpd.conf file on gateway.mydomain.tld looks like this:

<VirtualHost *:443>
 ProxyPass /wiki http://wiki.mydomain.tld
 ProxyPassReverse /wiki http://wiki.mydomain.tld
 <Location /wiki/>
  AllowOverride AuthConfig
  Options FollowSymLinks
  ProxyPass http://wiki.mydomain.tld
  ProxyHTMLURLMap http://wiki.mydomain.tld /
  order allow,deny
  allow from all
  Require valid-user
  ...authentication config here...
  SetOutputFilter proxy-html
  ProxyHTMLURLMap /  /wiki
  ProxyHTMLURLMap /wiki  /wiki
  RequestHeader unset Accept-Encoding
 </Location>
</VirtualHost>

It appears that the HTMLURLMap is failing for some directories. Any ideas? Gletiecq 15:53, 30 December 2005 (UTC)Reply

Reference implementation

Hi, somehow the .conf files from the reference implementation got lost... --82.82.185.122 19:53, 21 April 2006 (UTC)Reply

How to disable PHP in the upload directory when using PHP as Apache module

"Be sure to enable mod_php in the directory that contains the MediaWiki scripts, but you should also remember to disable it in the upload directory, so that visitors don't have the ability to execute arbitrary code on your system! HOW DOES ONE DO THIS?"

[1] says that you can disable execution of PHP scripts in certain directories by adding php_flag engine off to the directory-specific configuration for these directories in your httpd.conf. --80.136.74.201 00:09, 3 September 2006 (UTC)Reply

Minor request

Quote from page: "If you have your own server running Apache and are running PHP as CGI, you can install CGIWrap. This tool enables you to run the Apache server as a different user for CGIs. That way, you can create a new user for your Wikimedia pages."

Would it be possible to clarify the 3 sentences listed above? Perhaps an expanded description of the advantages/implications of installing CGIWrap?