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.