Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2009-01-04 13:10:22

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Checksums are updated for packaged releases, not for every commit.

Offline

#17 2009-01-05 20:06:07

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

The temporary directory path is set to /path/to/textpattern instead of /path/to/textpattern/tmp, so that diagnostics give this warning:

Temporary directory path and Plugin cache directory path should not match.

It’s easy enough to change, but is this intended?

Also I got this error (on the page that says ‘That went well etcetera’):

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 10019 is not allowed to access /tmp/txp_i6HKUI owned by uid 48 in /home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/lib/txplib_misc.php on line 1308

Warning: unlink(/home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/setup) [function.unlink]: Permission denied in /home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/lib/txplib_misc.php on line 1310

That went well. Database tables were created and populated.

You should be able to access the main interface with the login and password you chose.

Thank you for your interest in Textpattern.

It was still there when I landed on the languages page, but went away when I went to diagnostics.
I’ve set up many Txp installs on this server, also in subdomains, and never had these errors before.

Last edited by els (2009-01-05 20:07:11)

Offline

#18 2009-01-05 20:16:43

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

The link to ‘Textbook Wiki’ in the ‘Welcome to your site’ article and the link to ‘TextBook’ in the right column link to different URLs (same content though). This probably was already the case in 4.0.7. I’ll post this in the Textbook forum as well for Destry’s attention.

Offline

#19 2009-01-05 20:17:54

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Warning: unlink(/home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/setup) [function.unlink]: Permission denied in /home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/lib/txplib_misc.php on line 1310

Els, this looks like /home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/tmp wasn’t present during setup. Is this possible?

Offline

#20 2009-01-05 20:23:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

No, it was definitely there, I only had to chmod it to 777 after the install (but I always have to do that on this server).

Offline

#21 2009-01-05 20:31:39

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Els wrote:

No, it was definitely there, I only had to chmod it to 777 after the install (but I always have to do that on this server).

Might be caused by running the web server process as a different user than the one you use for FTP uploads? Then, ../textpattern/tmp would be owned by the uploading user while the setup script acting as the web server process user tries to write a tiny test file to said folder during setup – and fails.

Please confirm.

If this is the case I don’t think we have any opportunity to circumvent these restrictions (a good thing!), and the warning message is ugly but it helps to diagnose the problem. We might shoot for a prettier warning message, though.

Offline

#22 2009-01-05 20:48:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

wet wrote:

Might be caused by running the web server process as a different user than the one you use for FTP uploads? Then, ../textpattern/tmp would be owned by the uploading user while the setup script acting as the web server process user tries to write a tiny test file to said folder during setup – and fails.

I’m not sure I understand what you mean by ‘running the web server process’. It’s a reseller account where I’m hosting several domains, and each domain has it’s own FTP account. But FYI I recently set up a fresh 4.0.7 install in a subdomain (other domain) on that same account, so that must be an identical situation, and I didn’t get those errors. Two days ago I upgraded that install to 4.0.8rc1 and got no errors either.

Offline

#23 2009-01-05 21:46:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Warning: unlink(/home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/setup) [function.unlink]: Permission denied in /home/httpd/vhosts/domain.com/subdomains/test/httpdocs/textpattern/lib/txplib_misc.php on line 1310

That’s interesting. Not the permission denied, but the fact that it tries to delete the setup directory, while it should be deleting a temporary file.

Offline

#24 2009-01-05 21:54:08

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Oops. From a quick test, realpath(null) returns the cwd(). Will fix it.

Offline

#25 2009-01-05 22:31:45

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Does this influence the further workings of the install, or can I go on testing without waiting for your fix?

Offline

#26 2009-01-05 22:57:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

wet wrote:

Oops. From a quick test, realpath(null) returns the cwd(). Will fix it.

‘null’ should not occur there. tempnam is supposed to return false if it fails. Either way, it doesn’t harm anything, because the setup dir is not empty and unlink cannot remove directories. I’d leave this for 4.0.9.

Offline

#27 2009-01-06 07:29:31

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Alas, realpath(false); exhibits identical behavour. Why doesn’t that surprise me?

I’d leave this for 4.0.9.

Too late. ;-)

Offline

#28 2009-01-06 07:40:54

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,421
Website GitHub Mastodon

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Els wrote:

Does this influence the further workings of the install, or can I go on testing without waiting for your fix?

If your temp directory isn’t mentioned in the diag tab any more, the “Temporary directory” prefs is set properly and e.g. file uploads work as expected then please continue testing as usual.

Offline

#29 2009-01-06 14:21:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Thanks Robert. I haven’t found any other problems except with MLP. As usual… ;)

Offline

#30 2009-01-06 14:25:04

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Help us test release candidate 2 (!) for the upcoming 4.0.8 release

Off topic but perhaps relevant – is MLP ever going to be anything except a hack? Els’ problems above is why I don’t play with MLP – yet.

Offline

Board footer

Powered by FluxBB