Re: How does Apache know what to run?
- Date: Sat, 16 Sep 2017 17:43:13 -0500
- From: Richard Alan <ralan@xxxxxxxxxx>
- Subject: Re: How does Apache know what to run?
> On 9/16/17 6:01 PM, T wrote:
>> On 09/16/2017 02:13 PM, Richard Alan wrote:
>>> T wrote:
>>>> I am asking this here because I know you guys know the answer.
>>> This is a question for an Apache newsgroup, not a Mozilla products
>>>> How does an Apache server know when it see someone logging in to one
>>>> of its wwww.xxxx.com/home pages that it needs to run a php server?
>>> Most commonly, the file requested will have an extension of .php
>> How does it know which one to look for?
> The HTML tells it which PHP file to look for. I think.
It doesn't have to be an HTML file. (My sites are all PHP scripts; no HTML
files at all.) Typically, the URL given - his www.xxxx.com/home as an
example - will search the /home directory for an index.php or index.html
file and open it. From there, the sky's the limit.
> It's been awhile since I had Apache, PHP and MySQL installed and played
> with it.
Yup. I have a LAMP server running right here on my home computer so I can
test before uploading to my web host.
> DuckDuckGo or a search engine is your friend. Search tip, look for PHP
> and Apache documentation.
True enough. The subject is well beyond the scope of this newsgroup.
general mailing list