Hi,
I am having problems upgrading a wiki from 2.2 to the 3.0 beta. This wiki is located on a server where I do not have root access. I followed up the install procedure and all indications were that it was successful.
After copying LocalSettings and navigating to the wiki page: [pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Any ideas?
Thanks -John
PHP 4.3.5 ok * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * PHP is configured with no memory_limit. * Have zlib support; enabling output compression. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: /home/.eclair/jarv/swing.funformentals.com/wiki * Script URI path: /wiki Warning: $wgProxyKey is insecure * MySQL error 1045: Access denied for user: 'root@yerba.dreamhost.com' (Using password: NO) * Trying regular user... ok. * Connected to database... 4.0.20-log; enabling MySQL 4 enhancementsWarning: $wgProxyKey is insecure * Database swingwiki exists * There are already MediaWiki tables in this database. Checking if updates are needed...
...ipblocks is up to date. ...already have interwiki table ...indexes seem up to 20031107 standards ...have linkscc table. ...linkscc is up to date, or does not exist. Good. ...have hitcounter table. Converting links table to ID-ID... Schema already converted ...have user_real_name field in user table. ...have special page querycache table. ...have objectcache table. ...have categorylinks table. Template namespace already initialised Initialising "MediaWiki" namespace... * Finished update checks.
Creating LocalSettings.php...
Success! Move the LocalSettings.php file into the parent directory, then follow this link to your wiki.
john wrote:
Hi,
I am having problems upgrading a wiki from 2.2 to the 3.0 beta. This wiki is located on a server where I do not have root access. I followed up the install procedure and all indications were that it was successful.
After copying LocalSettings and navigating to the wiki page: [pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Any ideas?
Thanks -John
PHP 4.3.5 ok
<snip>
Success! Move the LocalSettings.php file into the parent directory, then follow this link to your wiki.
Hello John,
Can you check your directory config got enough right for the user apache is running under ? It might use write access.
Hi Ashar,
If you are referring to the wiki/config and the wiki/ directory, yes - both have full write access for the apache web user. Are there any other permission changes that need to be made?
Any clue as to what file this error is referring to?
[pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Thanks -John
On Fri, 2004-06-18 at 04:41, Ashar Voultoiz wrote:
john wrote:
Hi,
I am having problems upgrading a wiki from 2.2 to the 3.0 beta. This wiki is located on a server where I do not have root access. I followed up the install procedure and all indications were that it was successful.
After copying LocalSettings and navigating to the wiki page: [pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Any ideas?
Thanks -John
PHP 4.3.5 ok
<snip> > Success! Move the LocalSettings.php file into the parent > directory, then follow this link to your wiki.
Hello John,
Can you check your directory config got enough right for the user apache is running under ? It might use write access.
On Fri, 2004-06-18 at 09:10 -0400, john wrote:
[pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Sounds as if you don't have write permissions to /tmp. The parsed template is stored there usually. You could adjust line 72 in PHPTAL-NP- 0.7.0/libs/PHPTAL.php to something else than /tmp/, another solution would be
if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\"); } else { global $wgTmpDirectory; define('PHPTAL_DEFAULT_CACHE_DIR', $wgTmpDirectory); }
Gabriel Wicke
That did the trick, thanks! It might be a good idea to add this to the INSTALL file for people who don't have write access to the /tmp directory. I don't recall having this problem in 1.2.2
Thanks for the quick response -John
On Fri, 2004-06-18 at 10:00, Gabriel Wicke wrote:
On Fri, 2004-06-18 at 09:10 -0400, john wrote:
[pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Sounds as if you don't have write permissions to /tmp. The parsed template is stored there usually. You could adjust line 72 in PHPTAL-NP- 0.7.0/libs/PHPTAL.php to something else than /tmp/, another solution would be
if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") { define('PHPTAL_DEFAULT_CACHE_DIR', getenv("TMP") . "\"); } else { global $wgTmpDirectory; define('PHPTAL_DEFAULT_CACHE_DIR', $wgTmpDirectory); }
Gabriel Wicke
I think only wiki/config/ should be writable by apache.
Having wiki/ writable might make you vulnerable to attack.
Tobin.
On 18/06/2004, at 11:10 PM, john wrote:
Hi Ashar,
If you are referring to the wiki/config and the wiki/ directory, yes - both have full write access for the apache web user. Are there any other permission changes that need to be made?
Any clue as to what file this error is referring to?
[pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Thanks -John
On Fri, 2004-06-18 at 04:41, Ashar Voultoiz wrote:
john wrote:
Hi,
I am having problems upgrading a wiki from 2.2 to the 3.0 beta. This wiki is located on a server where I do not have root access. I followed up the install procedure and all indications were that it was successful.
After copying LocalSettings and navigating to the wiki page: [pear_error: message="failed to open stream: Operation not permitted" code=0 mode=return level=notice prefix="" info=""]
Any ideas?
Thanks -John
PHP 4.3.5 ok
<snip> > Success! Move the LocalSettings.php file into the parent > directory, then follow this link to your wiki.
Hello John,
Can you check your directory config got enough right for the user apache is running under ? It might use write access.
Wikitech-l mailing list Wikitech-l@Wikipedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org