You may need to set ownership of the folder to apache/apache and change permissions to 755.
drooh
5:41 pm on Jul 15, 2010 (gmt 0)
thanks @readie, can you give me a hint at how i would do this on a win box?
Readie
5:56 pm on Jul 15, 2010 (gmt 0)
Umm, I'm afraid I can't... I've only ever used Linux. Plus the server guy at work doesn't trust anyone else to do it themselves lol.
Changing permissions can be done with most FTP clients however, generally just right click on the file/folder. I like Filezilla for this though, as there's an option to recurse into all sub-files and folders.
Anyway, with regards to changing ownership, you should be able to find out fairly easily from a quick Google. Failing that there must be someone around here who knows a bit about Windows.
drooh
6:15 pm on Jul 15, 2010 (gmt 0)
yeah i tried the FTP thing (see post) and Ive searched google for days but cant find anything.
Also, note, Ive looked through pretty much every setting I can including my php.ini and apache config as well as all the user group and settings in windows.
still stumped :(
Matthew1980
7:43 pm on Jul 15, 2010 (gmt 0)
Hi there Drooh,
I had the exact same issue a while back, and I still couldn't work it out, I was using the chmod() function to make sure that a folder had the correct settings before I wrote the data to it - but no matter what I tried, nothing worked, I ended up changing the properties through the Cpanel 'file manager' on the host (Linux - I think), and locally (windows) just manually changing the properties.
I really had ought to fix it though, but for now, FTP access or through cpanel for the server has done the trick.
Cheers, MRb
drooh
7:53 pm on Jul 15, 2010 (gmt 0)
well the only thing is the server is here at my house and does not have any cpanel. think of this as just another computer on your home network, and that you have a shared folder that you access all your htdocs from. This is where I develop websites before they go live.
Matthew1980
9:14 pm on Jul 15, 2010 (gmt 0)
Hi there Drooh,
So, are you just needing to alter the properties of a file or altering ownership?
Having read the other thread again; if you are using chmod() to do this through the script it won't do it because it doesn't function using remote access, it has to be absolute URL - I think that's right anyway..
Either that or I haven't understood you correctly.