Multiple Domain Use of Custom PHP

Multiple Domain Use of Custom PHP

Posted by: Balidarious
Posted on: 2007-05-20 08:23:00

Alright. . . I had all of my problems fixed, but then I decided . . . Hey . . . let's put this my office software in a subdomain instead for easier PDA Access. . . Well back to the drawing board on the PHP issues.

Okay, so I have moved all of my software over to the subdomain.

I followed the WIKI instructions on adding another domain to the custom php install:

In reply to:

* Go to the domain directory where you want to use the Custom PHP5 Compile (Example: /abc.com/)
* Type: ln -s /home/USERNAME/DOMAIN_NAME/cgi-bin /home/USERNAME/SUB.DOMAIN_NAME/cgi-bin (Replace USERNAME with your actual username, Replace DOMAIN_NAME with your actual domain name where the custom php5.cgi in stored. Example abc.com. Replace SUB.DOMAIN_NAME with the actual sub domain you want to use for the custom php5)
* Press Enter And You Are Done.
* Upload the .htaccess with the AddHandler/Action methods as listed above to (Example: /abc.com/)
* Upload the same .htaccess with the AddHandler/Action methods to the subdomain (Example: subdomain.abc.com)


I must really be doing something wrong here . . . I am Using PuTTy in SSH and when I execute the above -s {other stuff here} command I get "-bash: -S: command not found".

Anyone have any ideas for me.

Re: Multiple Domain Use of Custom PHP

Posted by: Mousee
Posted on: 2007-05-20 08:41:00

Uhhh.. are you entering ln -s or just -s ?

Cause that would make a rather large difference, heh.
ln -s is the proper method of doing it anyways.

Re: Multiple Domain Use of Custom PHP

Posted by: Balidarious
Posted on: 2007-05-20 14:12:00

LOL . . .
Strike another person blunder . . .

I was only entering -s . . . much thanks . . . going to go try that now . . . I will let you know if it is resolved.


WELL . . . I am still getting the following:

In reply to:


If I type:

[starburst]$ In -s /home/USERNAME/my_main_ domain_where_customphp_is_working.com/cgi-bin /home/USERNAME/my_sub_ domain_where_customphp_needs_to_be.com/cgi-bin

I Get:

-bash: In: command not found



I am in the main_ domain_where_customphp_is_working.com directory when I type this.

Re: Multiple Domain Use of Custom PHP

Posted by: patricktan
Posted on: 2007-05-20 19:24:00

the command is not In.

It is

Re: Multiple Domain Use of Custom PHP

Posted by: Balidarious
Posted on: 2007-05-20 20:09:00

HeHe . . . I had just figured that out when I got this new post. . . that seems to have worked . . . However, now I am getting all kinds of errors . . .

I am not sure what is going on . . . Is the subdomain just suppose to get a symlink instead of its own cgi-bin. If so, then I am right there, but now I am getting strange errors (for example):

In reply to:

Parse error: syntax error, unexpected ',' in /home/.hobbie/username/mountainmineralmanagement.com/cgi-bin/php.ini on line 135



I am not getting this on the main domain, but I am on the sub.

Any clue . . . and by the way *** Thanks for all the help!

Re: Multiple Domain Use of Custom PHP

Posted by: patricktan
Posted on: 2007-05-20 20:23:00

as the message states, there is an extra

Re: Multiple Domain Use of Custom PHP

Posted by: Balidarious
Posted on: 2007-05-20 20:27:00

I removed it, and that did resolve that . . . however, it moves to the next one which is:

In reply to:


Parse error: syntax error, unexpected T_STRING in /home/.hobbie/username/mountainmineralmanagement.com/cgi-bin/php.ini on line 135



I don't even know what that means . . .

Why would I be getting this on the subdomain and not the main domain . . . I am really trying to learn this, so understanding the issues as I fix them helps alot.

Thanks for the rapid response by the way.

Re: Multiple Domain Use of Custom PHP

Posted by: patricktan
Posted on: 2007-05-20 20:35:00

It looks like a missing ";"

You may not find the missing ";" in line 135. You may have a missing ";" before that.

RESOLVED: Multiple Domain Use of Custom PHP

Posted by: Balidarious
Posted on: 2007-05-21 01:03:00

This is now resolved completely . . . thanks for all the help.

Re: RESOLVED: Multiple Domain Use of Custom PHP

Posted by: patricktan
Posted on: 2007-05-22 00:36:00

I'm glad that you solved the problem.

Would you mind to share how you solve the problem :P

Tags: domain namereplysubdomainabcphp5doing something wronghtaccesscgi binputtydomain directorygoing crazypress entersshlni decidedwikipdaworry