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
ipab
Veteran Member
*****

Avatar
Design Evolved

Posts: 1017
Reputation: 32
34 / Male / Flag
Joined: May 2004
RE: PHP and subdomains
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

56656E692C 20566964692C 2056696369
09-11-2004 10:51 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


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