Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-15 13:25:12

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

[resolved] [solved] Windows server duh

This might be obvious to some, but I’m out of my natural habitat here.

Developing on a Windows server, the path_to_site pref has somehow decided it likes backslashes, not forward ones. Only symptom I can find is that I can’t upload images – it says

C:\Inetpub\vhosts\site.com\httpdocs\/inc/img/content\347.jpg directory permissions need to be checked.

Diagnostics tab showed

$path_to_site: C:\Inetpub\vhosts\site.com\httpdocs
Textpattern path: C:\Inetpub\vhosts\site.com\httpdocs\textpattern

I have no idea how or why it’s like that, but (despite some strange editing behaviour) I was able to manually change the $path_to_site pref in the db.

Images still can’t be uploaded though, and in Diagnostics the ‘Textpattern path’ is still awry. I can’t find a way to change that one.

$path_to_site: C:/Inetpub/vhosts/site.com/httpdocs
Textpattern path: C:\Inetpub\vhosts\site.com\httpdocs\textpattern

Does that make sense to anyone?

Cheers in advance :)

Last edited by pieman (2010-02-26 11:30:16)

Offline

#2 2010-01-15 13:59:54

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [resolved] [solved] Windows server duh

pieman wrote:

Developing on a Windows server, the path_to_site pref has somehow decided it likes backslashes, not forward ones.

Windows likes (=uses) backslashes too.

Images still can’t be uploaded though, and in Diagnostics the ‘Textpattern path’ is still awry.

Paths are auto-generated/updated by PHP.

Offline

#3 2010-01-15 14:03:46

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [resolved] [solved] Windows server duh

OK, thanks. Do you know if there’s a way I can force the paths to change?

Offline

#4 2010-02-23 12:28:31

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [resolved] [solved] Windows server duh

I’m still stuck on this one. The site is waiting to be launched as soon as I get to the bottom of it.

Just for fun (and out of exasperation) I tried changing all the forward-slashes in Pref paths to back-slashes. At least I have some consistency now…

$path_to_site: C:\Inetpub\vhosts\site.com\httpdocs
Textpattern path: C:\Inetpub\vhosts\site.com\httpdocs\textpattern

But as before, I’m unable to upload an image

C:\Inetpub\vhosts\site.com\httpdocs\inc\img\content\347.jpg directory permissions need to be checked.

(Permissions are definitely 777 on that folder)

This also caught my eye in the diagnostics, though it could be a red herring:

upload_tmp_dir: C:\WINDOWS\Temp

Any suggestions appreciated… I’m a fish out of water here :)

Offline

#5 2010-02-23 19:30:24

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

Re: [resolved] [solved] Windows server duh

Does this topic help?

Offline

#6 2010-02-24 15:37:32

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [resolved] [solved] Windows server duh

Sounds very similar doesn’t it? Thanks Els, I’ll do some php.ini homework and see where it gets me…

Offline

#7 2010-02-26 11:29:56

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [resolved] [solved] Windows server duh

Solved it. I needed to set the privs in the hosting control panel. Haven’t ever needed to do that before, but there you go.

Thanks for your suggestions Els and Jukka.

Offline

Board footer

Powered by FluxBB