Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: hvyhitter - maaliskuu 06, 2009, 10:27:20 AP

Otsikko: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: hvyhitter - maaliskuu 06, 2009, 10:27:20 AP
CHMOD 777

I am running 2.0 RC1. Fresh install. IUSR and IWAM have full control of all my SMF directories. (probably overkill at this point but that is fine I will scale it back later

as per the directions here. I created a temp dir.. full permissions there

still cannot upload is it a IIS setting?
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: hvyhitter - maaliskuu 06, 2009, 10:31:39 AP
i guess what would be helpful is someone posting a FAQ on.. hey I own my own Windows 2003 server and I am running latest PHP, MySql and IIS.

what permissions do I need to set in this case.

a CHMOD to NTFS primer. I am a unix noob but a windows devotee.
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: 青山 素子 - maaliskuu 06, 2009, 10:26:48 IP
How do you have PHP installed? The method you are using can make a difference.

By saying you cannot upload, are the files ever getting written anywhere? Are we talking package manager, or attachments and avatars, or both? What kind of error messages are you seeing? Anything in the logs?

Can you post a link to a php info file? (What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0))
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: hvyhitter - maaliskuu 06, 2009, 10:34:30 IP
http://www.hvyhitter.com/phpinfo.php

I ran the install file from PHP.

then added the mapping for PHP in IIS
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: 青山 素子 - maaliskuu 06, 2009, 10:44:32 IP
Okay, so ISAPI. That means PHP runs as the IIS user.

According to the phpinfo, your temporary directory is "C:\WINDOWS\Temp". You'll probably need to allow the IUSR account to have write/change access to that. If you don't want PHP traipsing in the system folder, edit php.ini located in "C:\Program Files\PHP\php.ini" (also from phpinfo) to give it its own temporary directory.

By the way, the current recommendation from Microsoft is to set up PHP under FastCGI, especially as some extensions are not thread-safe. You can find out more on how to set that up over at the Fast and reliable hosting of PHP applications in IIS (http://www.iis.net/php) article on iis.net.

Whatever you do, don't set it up as a plain CGI. You'll run into weird race conditions on faster servers, especially when trying to do database things.
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: hvyhitter - maaliskuu 07, 2009, 08:29:43 IP
Sweet I will make those changes because I am pretty sure we dont want it in the system dir. thanks for the heads up I will post when I do all this tonight
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: 青山 素子 - maaliskuu 07, 2009, 08:52:28 IP
No problem. I'm interested in seeing how things go.
Otsikko: Re: SMF 2.0 RC1 - Searched threads NTFS question cant upload
Kirjoitti: hvyhitter - maaliskuu 07, 2009, 10:35:39 IP
Boom done.. that did it.. Sweet.
now time to cut loose with a few of the mods.