Shoutbox

PHP and subdomains - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: PHP and subdomains (/showthread.php?tid=31371)

PHP and subdomains by KeyStorm on 09-11-2004 at 10:37 PM

I'm having a little (err well, not so little) problem with my KSMAS setup script in PHP.

It seems to have some problems installing when I try to create files on a subdomain.

Say I have one subdomain in my domain: 'crap.keystorm.net', which actually redirects to 'keystorm.net/crap' folder. Well, I place the setup file in the 'crap' folder, run it from 'crap.keystorm.net/setup.php' and it's just unable to create a folder:

code:
umask(0);
mkdir('dirname($_SERVER['SCRIPT_FILENAME']).'/KSMAS', 0777)

prompts:

quote:
Warning: Unable to access root/path/to/keystorm/crap/KSMAS/ on ...

Although I didn't open the dir, I just created it.

But when I try it running the script from keystorm.net/crap/setup.php, it works smoothly.

I have tried relative paths in all the forms but nothing changed.

Safe mode is also on. Could possibly some safe mode restrictions affect only subdomains and not superdomains?

If anyone has a clue, please post. Thanks. :)

EDIT: That code is in a script with the same UID as Apache, so everything that script creates should have the same UID as Apache thus not interfering with Safe mode, theorically.
RE: PHP and subdomains by ipab on 09-11-2004 at 10:51 PM

O_o i guess thats the problem i have been having, i have been trying to install it on ipab.l2-designs.com, like i mentioned to u

i hope u find a solution soon, good luck