[TriLUG] Localhost web server

Robert Berkowitz robert at damn.no-ip.com
Thu Sep 8 08:40:35 EDT 2005


If you want to test that the server is configured properly for php find
the "DocumentRoot" directive in the conf file. Create a new file
(test.php) in that directory. In the test.php file put:

<?php
phpinfo();
?>

Then go to http://127.0.0.1/test.php in your browser. You should see all
sorts of information.


Robert


On Wed, 2005-09-07 at 23:56 -0400, matt-nc wrote:
> I installed Mandriva 10.1 with every possible package selected.  It appears 
> that Apache and PHP are functioning and correctly integrated because I got 
> a server error message that seemed to indicate that Apache 2.0.50, 
> mod_perl, perl, mod_ssl and PHP/4.3.8 were all running, even though it 
> couldn't find the file I specified.
> 
> My question is, what do I type in the URL window to get Apache to serve up 
> a PHP file?
> 
> My objective is to be able to have Apache and PHP running so that I can 
> work on PHP and MySQL programming while I am at the library and have no 
> access to the internet.
> 
> I added the following line to the Apache httpd2.conf file as my PHP book 
> instructed:
> 
> AddType application/x-httpd-php .php
> 
> Any advice or links to good online tutorials about using Apache for a 
> localhost web server w/ PHP would be appreciated.
> 
> Thanks,
> Matt 
> 
> 




More information about the TriLUG mailing list