mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:32

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: 10 Jun 2004, 09:22 

Joined: 10 Jun 2004, 09:20
Posts: 1
003. There was an error while creating the directory
i'm a newbie of CM modules for Phprojekt and this is the error that my server do when i try to add document and folders!!!
Please HELP


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Error Message
PostPosted: 11 Jun 2004, 09:12 
What is the error you are getting?

Are you sure that your directory has write permissions set correctly?


Report this post
Top
  
Reply with quote  
 Post subject: Permissions for mkdir.
PostPosted: 14 Jun 2004, 21:48 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
ciano:

Hi. As Mark already pointed out, it's important to know the permissions and the owner of the CMS document-root directory. That message means the instruction "MKDIR" failed. If you want to know the exact message, edit the adm_mkroot.php and create.php files, deleting the "@" before the "mkdir" instruction (around lines 50 and 207, respectively, if using 0.6.0b12 version).

The two common causes are:
1) Lack of writting permissions in the directory.
2) PHP running in safe-mode and the owner of the scripts is not the same than the webserver-user.

For the first problem, just follow the directions in the install.txt file:
Quote:
Change the ownership of those files to the user used by your web server (usually "nobody" in Unix/Linux). To change the ownership in Linux/Unix, you execute in a shell terminal in the server the command chown:
chown -h -R nobody:nobody cm/
In Windows environments, using the Windows Explorer, check the Security tab of the Properties dialog of the directory, and set the permissions so that the user IUSR_servername has permissions to read and write on the CM directory.


For the second problem, if you are the administrator of the server, just change the ownership of the files or disable safe-mode (and use other kind of protection like open-basedir). However, if you are using a hosting service, that will be quite problematic. The CMS module is mostly impossible to install and use in safe-mode with hosting services (unless the administrator helps you).

Why? Because most hosters give you an account and run the webserver a different user. So you upload your files (which now belong to your user). Then, when PHP is asked to MKDIR, it will check the ownership of the directory (your user) and the identity of the running process (the webserver user) and will fail with a safe-mode error.

But, please, give us more information.

Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group