Home > Archive > PHP Installation > November 2004 > [PHP-INSTALL] Apache Configuration Problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
[PHP-INSTALL] Apache Configuration Problems
|
|
| Paul Brasseur 2004-11-13, 8:55 pm |
| Anthony Marlow wrote:
> Hi,
>
> I just bought a book called, "PHP 5/MySQL Programming for the Absolute
> Beginner," by Andy Harris. I'm brand new to PHP, apache and MySQL,
> and I'm stuck on chapter One, which covers configuring apache to work
> with PHP.
>
> In the book, on page 11, he says to open the apache configuration file
> called, "httpd.conf", and to edit the file as follows:
>
> 1. add the following code at the bottom of the "LoadModule commands:
> "LoadModule php5_module C:apache/php5apache.dll" then to modify
> this line so that it points to wherever the php5apache.dll file was
> installed on my system (btw: Windows XP Home).
>
> 2.) Add the following code at the bottom of the "AddModule" commands:
> "AddModule mod_php5.c".
>
> 3.) Add the following code to the end of the file:
> "AddType application/x-httpd-php .php" (space in text.)
>
> I've done the first part, but I cannot find any "AddModule" commands
> in the file in question. I also did the third part.
>
> Can anyone tell me about the second part above? There are no
> "AddModule" commands in the file that I've mentioned above. Also, he
> says to save the file after making these changes, but he doesn't say
> where to save it. Can you tell me where I need to save this file
> after doing what he says above?
>
========================================
=================
The commands should be there. Have you used your editor's find
option ?
The configuration file goes in your apache conf directory.
Forget PHPCoder, it is older technology and PHP Designer at
www.mpsoftware.dk is free, under continuous development,
and far superior.
Place your php files in the apache htdocs directory.
========================================
================
> Another thing: I downloaded PHP Coder and installed it. It seemed to
> work at first (at least an example program ran correctly), but since
> making the changes above, the PHP Coder stopped working. When I hit
> run, I don't get anything at all. No error message, no program
> running, or activating the web browser . . . I mean absolutely nothing
> happens at all.
>
> Also: In PHP Coder, I was able to set the path for the MySQL
> documentation, but I'm not sure how to set the path for the PHP docs
> or the html docs. Can anybody tell me what the names of the necessary
> files are? If I know what files I need to point to, I can figure out
> the path.
>
> And finally, when I save a PHP file, exactly where do I need to save
> it so that it will work in my web browser?
>
>
>
>
| |
| Anthony Marlow 2004-11-18, 3:55 am |
| Hi again,
Thanks so much for the help. I took your advice and dumped PHP Coder. I'm
using PHP Designer 2005 now, and that is working fine.
Just one problem. The traditional "Hello World," program that my book
starts off with includes a PHP function called, phpinfo()--prefaced by a
print command. It's supposed to print out a rather large amount of
information in the form of a table.
Have you ever head of this function? It won't work for me. It just prints
a ton of code, instead of printing the table. Is there a good place where I
can get an entire list of all PHP functions? Or doesn't that exsist?
Thanks again,
Anthony
| |
| Janet Valade 2004-11-18, 3:55 am |
| Anthony Marlow wrote:
> Hi again,
> Just one problem. The traditional "Hello World," program that my book
> starts off with includes a PHP function called, phpinfo()--prefaced by a
> print command. It's supposed to print out a rather large amount of
> information in the form of a table.
>
> Have you ever head of this function? It won't work for me. It just prints
> a ton of code, instead of printing the table. Is there a good place where I
> can get an entire list of all PHP functions? Or doesn't that exsist?
This is an essential function in PHP. It's the first program you should
run. Just create the following program and run it:
<?php
phpinfo();
?>
Janet
>
> Thanks again,
> Anthony
>
--
Janet Valade -- janet.valade.com
|
|
|
|
|