What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP and subdomains

PHP and subdomains
Author: Message:
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
O.P. PHP and subdomains
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.

This post was edited on 09-11-2004 at 10:45 PM by KeyStorm.
09-11-2004 10:37 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP and subdomains - by KeyStorm on 09-11-2004 at 10:37 PM
RE: PHP and subdomains - by ipab on 09-11-2004 at 10:51 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On