Justtechjobs.com Find a programming school near you






Online Campus Both


php-windows | 2001051

Re: [PHP-WIN] Installation of Apache & PHP4 on Windows From: Julie Meloni (julie <email protected>)
Date: 05/14/01

Rachel Baillie wrote:

> I recently brought the book PHP fast & east web development. I am having problems trying to run PHP and an Apache Server on Windows. I have Windows ME.
>
> It was suggested to me that I had a spelling mistake. I am not sure where that would be as I have followed the instructions in the book very carefully. It was suggested that I should correct the spelling mistake while in Apache but I received the following message.
>
> APACHE.EXE: cannot determine local host name.
> Use the ServerName directive to set it manually.
>
> I am not sure how to read and then fix the error. Are there any names other than "localhost" that might recognise the local software for Windows ME.
>
> Thank you for your suggestions.
>
> Rachel Baillie

There is a place in httpd.conf that says:

#ServerName new.host.name

or something along those lines.

It should be:

ServerName localhost

Or, some actual host+domain name that your computer is called and
recognized as in DNS.

Save httpd.conf.

Restart Apache.

-- 
+----------------------------------------+
| Julie Meloni (julie <email protected>)     |
|                                        |
| "PHP Essentials" and "PHP Fast & Easy" |
|       http://www.thickbook.com         |
+----------------------------------------+

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>