I just moved to a VPS from shared hosting and not using pretty URLs is enabled. How can I turn this off? I have some custom code that will not work with it.
Thanks, -Adam
Sorry, in my frustration I did not check my wording.
I just moved to a VPS server from shared hosting. I went to reinstall mediawiki and it is showing pretty URLs as enabled.
How can I turn this off? I have some custom code that will not work with the pretty urls.
-Adam
On Aug 2, 2007, at 2:30 PM, Adam Meyer wrote:
I just moved to a VPS from shared hosting and not using pretty URLs is enabled. How can I turn this off? I have some custom code that will not work with it.
Thanks, -Adam _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I just moved to a VPS server from shared hosting. I went to reinstall mediawiki and it is showing pretty URLs as enabled. How can I turn this off?
There are several methods for eliminating index.php from the URL: http://www.mediawiki.org/wiki/Manual:Short_URL
If you were using a simple rewrite rule, probably all you need to do is disable the $wgArticlePath setting in LocalSettings.php: http://www.mediawiki.org/wiki/Manual:$wgArticlePath
HTH.
-- F.
I reinstalled mediawiki, eaccelerator was showing as not available.
So, after installing it, I added to the localsettings $wgUseEAccelShm = true;
Im not sure if this is how you do it, but the manual on $wgUseEAccelShm is lacking.
Is there a way to see if it is running?
I checked my version http://64.22.97.143/~rpedia/index.php/Special:Version
But im not seeing either way.
• MediaWiki: 1.10.1 • PHP: 5.2.3 (apache) • MySQL: 5.0.27-standard
Thanks, -Adam
On 8/2/07, Adam Meyer meyer7@mindspring.com wrote:
I reinstalled mediawiki, eaccelerator was showing as not available.
So, after installing it, I added to the localsettings $wgUseEAccelShm = true;
Im not sure if this is how you do it, but the manual on $wgUseEAccelShm is lacking.
Is there a way to see if it is running?
I checked my version http://64.22.97.143/~rpedia/index.php/Special:Version
But im not seeing either way.
• MediaWiki: 1.10.1 • PHP: 5.2.3 (apache) • MySQL: 5.0.27-standard
It doesn't show on Special: I just have: ## Shared memory settings $wgMainCacheType = CACHE_ACCEL; $wgMessageCacheType = CACHE_ACCEL; $wgParserCacheType = CACHE_ACCEL; $wgMemCachedServers = array();
It doesn't show up in Special:Version, but benchmark it (with Apache Bench, for instance) with and without the caching enabled, and you should see the difference.
Is there any way to use pretty URLs with PHP as CGI on a shared server? I don't think I have root access to the necessary .conf file; do you think my host would change it, or does it pose a security threat of any kind to use Pretty URLs in my situation? Actually, I'd like any way of shortening my URLs, if it's possible... -Azurite
On 8/8/07, Azurite azurite@seventh-star.net wrote:
Is there any way to use pretty URLs with PHP as CGI on a shared server? I don't think I have root access to the necessary .conf file; do you think my host would change it, or does it pose a security threat of any kind to use Pretty URLs in my situation? Actually, I'd like any way of shortening my URLs, if it's possible... -Azurite
Does your host let you use .htaccess files? (Most decent hosts will.) If so, then yes: Read the short URL article. If not, then no.
Does your host let you use .htaccess files? (Most decent hosts will.) If so, then yes: Read the short URL article. If not, then no.
Yes, I do have access and editing abilities for my .htaccess files, but I already read the article, and this portion concerned me: "
If the Alias method is not suitable (for example, you use PHP as a CGI), you can use Apache *mod_rewrite* rules instead. mod_rewrite is an Apache module which allows certain request URLs to be changed into other URLs. mod_rewrite is fairly powerful, and also fairly complicated, but for short URLs only a simple rule is required. You can read the full mod_rewrite manual here http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html.
Make sure Apache loads the Rewrite module."
I can't use the mod_rewrite rules unless I have root access, it seems, which I don't. I know there are two other methods for using the pretty URLs if you don't have root access, but will they work if I'm using PHP as a CGI module? I don't want to attempt the edit only to have to undo it because it doesn't work or causes problems. -Azurite
mediawiki-l@lists.wikimedia.org