Welcome Guest, Not a member yet? Register   Sign In
Create folder in public_html: permission denied
#1

[eluser]mvdg27[/eluser]
Hi guys,

I have a question that's not directly CI related, but since there seem to be a lot of smart guys around here, I'll give it go!

The thing is this: I'm working on an install script for my CMS. This means the install script creates the database tables, some default entries and sets up a basic file structure.

The last part of it is now causing problems. Everytime I try to create files in the root of public_html, I get a message 'permission denied'. Off course, I understand what this message means and where it comes from. I'm just looking for a way to go around this ..

What I do now is create the top folder ('cms') myself through ftp (chmod it) and then run the script. This works, but doesn't seem ideal!

Is there some way to get this to work?

Thanks for thinking along with me!

Cheers, Michiel
#2

[eluser]Bramme[/eluser]
Your script has to be chmodded to 777 too. Have you checked this?
#3

[eluser]johnwbaxter[/eluser]
I think that unless you are running suexec (running the script as the same user as the ftp user) you are going to have trouble creating folders. I could be wrong though.

What is the permissions on the public_html folder?




Theme © iAndrew 2016 - Forum software by © MyBB