Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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
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
Re: [resolved] [solved] Windows server duh
OK, thanks. Do you know if there’s a way I can force the paths to change?
Offline
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
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
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