Setting up a program that can be accessed by all domain on a server

This is a discussion on Setting up a program that can be accessed by all domain on a server within the PHP General forums, part of the PHP Programming Forums category; I have a program that I am writing that I what to install on my server that can be accessed ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 4 Days Ago
Richard Kurth
 
Posts: n/a
Default Setting up a program that can be accessed by all domain on a server

I have a program that I am writing that I what to install on my server
that can be accessed by all domains on the server just like it was on
there domain. Could somebody give me an idea on how I can do this or
point me to some article that tells how to set this up.
Reply With Quote
  #2 (permalink)  
Old 4 Days Ago
Dan Joseph
 
Posts: n/a
Default Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> I have a program that I am writing that I what to install on my server that
> can be accessed by all domains on the server just like it was on there
> domain. Could somebody give me an idea on how I can do this or point me to
> some article that tells how to set this up.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Accessible as in able to talk to it and pull information, or be able to
integrate it into the web site? If its just needing to get data, you could
build a web service and give access to it for all other domains.

--
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

Reply With Quote
  #3 (permalink)  
Old 4 Days Ago
Richard Kurth
 
Posts: n/a
Default Re: [PHP] Setting up a program that can be accessed by all domainon a server

Dan Joseph wrote:
> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <richardkurth@centurytel.net>
> wrote:
>
>
>> I have a program that I am writing that I what to install on my server that
>> can be accessed by all domains on the server just like it was on there
>> domain. Could somebody give me an idea on how I can do this or point me to
>> some article that tells how to set this up.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>

>
> Accessible as in able to talk to it and pull information, or be able to
> integrate it into the web site? If its just needing to get data, you could
> build a web service and give access to it for all other domains.
>

To Be able to integrate it into the web site is what I am trying to
figure out

Reply With Quote
  #4 (permalink)  
Old 4 Days Ago
Dan Joseph
 
Posts: n/a
Default Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> Dan Joseph wrote:
>
>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>> richardkurth@centurytel.net>
>> wrote:
>>
>>
>>
>>> I have a program that I am writing that I what to install on my server
>>> that
>>> can be accessed by all domains on the server just like it was on there
>>> domain. Could somebody give me an idea on how I can do this or point me
>>> to
>>> some article that tells how to set this up.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>

>>
>> Accessible as in able to talk to it and pull information, or be able to
>> integrate it into the web site? If its just needing to get data, you
>> could
>> build a web service and give access to it for all other domains.
>>
>>

> To Be able to integrate it into the web site is what I am trying to figure
> out
>
>

You should be able to configure Apache (assuming you're using Apache) in a
way that for instance: http://domain.com/globalapplication/ would be
pointing to a specified folder. You would just have to tell it to make that
path for all domains on the server. Although that might be better suited
for someone on an Apache list or forum to explain better.

--
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

Reply With Quote
  #5 (permalink)  
Old 4 Days Ago
Richard Kurth
 
Posts: n/a
Default Re: [PHP] Setting up a program that can be accessed by all domainon a server

Dan Joseph wrote:
> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <richardkurth@centurytel.net>
> wrote:
>
>
>> Dan Joseph wrote:
>>
>>
>>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>>> richardkurth@centurytel.net>
>>> wrote:
>>>
>>>
>>>
>>>
>>>> I have a program that I am writing that I what to install on my server
>>>> that
>>>> can be accessed by all domains on the server just like it was on there
>>>> domain. Could somebody give me an idea on how I can do this or point me
>>>> to
>>>> some article that tells how to set this up.
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>>
>>>>
>>>>
>>> Accessible as in able to talk to it and pull information, or be able to
>>> integrate it into the web site? If its just needing to get data, you
>>> could
>>> build a web service and give access to it for all other domains.
>>>
>>>
>>>

>> To Be able to integrate it into the web site is what I am trying to figure
>> out
>>
>>
>>

> You should be able to configure Apache (assuming you're using Apache) in a
> way that for instance: http://domain.com/globalapplication/ would be
> pointing to a specified folder. You would just have to tell it to make that
> path for all domains on the server. Although that might be better suited
> for someone on an Apache list or forum to explain better.
>
>

Thanks that is what I needed to know I will now check on an apache list
Reply With Quote
  #6 (permalink)  
Old 4 Days Ago
Nathan Nobbe
 
Posts: n/a
Default Re: [PHP] Setting up a program that can be accessed by all domain on a server

On Thu, May 8, 2008 at 3:37 PM, Richard Kurth <richardkurth@centurytel.net>
wrote:

> Dan Joseph wrote:
>
>> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth <
>> richardkurth@centurytel.net>
>> wrote:
>>
>>
>>
>>> Dan Joseph wrote:
>>>
>>>
>>>
>>>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth <
>>>> richardkurth@centurytel.net>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> I have a program that I am writing that I what to install on my server
>>>>> that
>>>>> can be accessed by all domains on the server just like it was on there
>>>>> domain. Could somebody give me an idea on how I can do this or point me
>>>>> to
>>>>> some article that tells how to set this up.
>>>>>
>>>>> --
>>>>> PHP General Mailing List (http://www.php.net/)
>>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Accessible as in able to talk to it and pull information, or be able to
>>>> integrate it into the web site? If its just needing to get data, you
>>>> could
>>>> build a web service and give access to it for all other domains.
>>>>
>>>>
>>>>
>>>>
>>> To Be able to integrate it into the web site is what I am trying to
>>> figure
>>> out
>>>
>>>
>>>
>>>

>> You should be able to configure Apache (assuming you're using Apache) in a
>> way that for instance: http://domain.com/globalapplication/ would be
>> pointing to a specified folder. You would just have to tell it to make
>> that
>> path for all domains on the server. Although that might be better suited
>> for someone on an Apache list or forum to explain better.
>>
>>
>>

> Thanks that is what I needed to know I will now check on an apache list



if your webserver is hosting multiple domains, all you have to do is put the
shared stuff outside the webroots in some common location. then simply
include that in your scripts in these various places. the only thing you
have to make sure is the user the webserver is running as has permission to
read from the external location.

say for example you are using linux, you create a directory such as,
/var/www/commonPhpStuff. and in there you have a class file
FrameworkCore.php or something. then in all your sites you can simply do
include('/var/www/commonPhpStuff/FrameworkCore.php');

alternatively, you could add '/var/www/commonPhpStuff' to the include_path
in php.ini, a .htaccess file, or a set_ini() call. then the include call
would become
include('FrameworkCore.php');

-nathan

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0