Hi all, I'm trying to install mediawiki on a shared host and am getting an error regarding the /tmp directory:
Checking environment...
Warning: set_time_limit(): Cannot set time limit in safe mode in /home/virtual/site22/fst/var/www/html/wiki/install-utils.inc on line 26 * PHP 4.3.3 ok * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP's memory_limit is 8M. If this is too low, installation may fail! Attempting to raise limit to 20M... failed. * Have zlib support; enabling output compression. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: /home/virtual/site22/fst/var/www/html/wiki * Script URI path: /wiki Warning: $wgProxyKey is insecure Can't find a writable temp directory for the XHTML template. Check that the TMP environment variable points to a writable directory, or that the default temp dir (/tmp) exists and is writable.
I have acttually created a /tmp directory in my mediawiki directory and made it writable, I've also gone into the PHPTAL.php and changed the TMP variable to a foll path ie. /home/virtual/site22/fst/var/www/html/wiki/tmp, but that still results in the install seeming to hang at "Warning: $wgProxyKey is insecure"
Any help is appreciated,
Karl
I have acttually created a /tmp directory in my mediawiki directory and made it writable, I've also gone into the PHPTAL.php and changed the TMP variable to a foll path ie. /home/virtual/site22/fst/var/www/html/wiki/tmp, but that still results in the install seeming to hang at "Warning: $wgProxyKey is insecure"
What dit you change exactly in PHPTAL.php?
Warning: set_time_limit(): Cannot set time limit in safe mode in
/home/virtual/site22/fst/var/www/html/wiki/install-utils.inc on line 26 * PHP 4.3.3 ok * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP's memory_limit is 8M. If this is too low, installation may fail! Attempting to raise limit to 20M... failed.
I wonder if that works at all with as little a memory_limit as 8M. Have a chat with your hoster to increas to about 16M. That worked with me.
* Have zlib support; enabling output compression. * Found GD graphics library built-in, image thumbnailing will be
enabled if you enable uploads. * Installation directory: /home/virtual/site22/fst/var/www/html/wiki * Script URI path: /wiki Warning: $wgProxyKey is insecure Can't find a writable temp directory for the XHTML template. Check that the TMP environment variable points to a writable directory, or that the default temp dir (/tmp) exists and is writable.
If I'm not mistaken you need the tmp-directory in your virtual host setting to be writeable by your apache user. Maybe you got a tmp directory like so /home/virtual/site22/fst/var/www/tmp in the virtual_host config of your account (So it's outside docroot). That virtual host directory may have permissions like drwxr_xr_x or just drwx______ with you as owner and ftpuser as group. That's something the apache user won't have any write permissions to. If so, you can give that tmp directory write permissions like 777 or ask your provider to do a chown apache-user.apache-user (www-data in my case) to that tmp directory and it should work.
But that would mean your VirtualHost setup is being a poor, sad story. I.e. not real useful.
--tictric
I have acttually created a /tmp directory in my mediawiki directory and made it writable, I've also gone into the PHPTAL.php and changed the TMP variable to a foll path ie. /home/virtual/site22/fst/var/www/html/wiki/tmp, but that still results in the install seeming to hang at "Warning: $wgProxyKey is insecure"
Any help is appreciated,
Karl
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org