Zubrag.com
November 12, 2019, 09:13:20 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Create subdomain with index page - permissions problem  (Read 9907 times)
jylyn
Newbie
*
Posts: 3


« on: January 23, 2007, 04:47:34 PM »

I've just downloaded the subdomain creator and am finding it really useful.

My problem is that I would like to have an index page inside the newly created directory, but my script doesn't have the permissions to write to it.  How do I get around this?

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: January 23, 2007, 05:17:57 PM »

Does your script have permissions to change permissions on newly created folder? If so you could add following php code after directory created:

// everything for owner, read and execute for others
chmod('/path/to/the/folder/here', 0755);

if that does not work then you could try changing 0755 to 0775 or 0777.

It should allow creating index page after that.
Logged
jylyn
Newbie
*
Posts: 3


« Reply #2 on: January 23, 2007, 08:57:30 PM »

Thanks, I tried that, but the script didn't have permission to change the permissions either.

I tried to extend your script to change the permissions via cPanel but only succeeded in locking myself out of the fileserver altogether!  I guess that's why you're the one writing the code, not me :-D
Logged
jylyn
Newbie
*
Posts: 3


« Reply #3 on: January 23, 2007, 09:14:47 PM »

Problem solved.

I just created the folder and contents before creating the subdomain...
Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #4 on: January 24, 2007, 02:12:27 AM »

Thanks for sharing!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC