installing php--how do you explain it to a global village idiot?

edited January 2006 in Internet & Media
Well, I have just installed apache but I'm stuck with php because there's a lot of manual stuff to do. I'm trying to follow these instructions:

=========================
PHP

1. Extract php-5.0.3-Win32.zip into C:\php :thumbsup:



2. Copy and rename c:\php\php.ini-recommended to C:\php\php.ini
Note: Before, we used to copy php.ini to the C:\WINDOWS directory. This is not required with the Apache “PHPIniDir” directive pointing to c:\php. :thumbsup:
3. Open php.ini and change the following and then save it.

include_path = ".;C:\php\includes\"
session.save_path = "C:\Temp"
session.cookie_path = \
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
extension_dir = "C:\php\ext\"
extension=php_mysql.dll
extension=php_mysqli.dll
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
mysqli.default_port = 3306
mysqli.default_host = localhost
mysqli.default_user = root

:mean:

I did a lot of guesswork here. I successfully opened the file but I don't know HOW to change. Where do I exactly put these entries?


4. Add C:\php to your PATH System Environment Variable.
a. Right-click on My Computer and choose Properties.
b. Select the Advanced tab.
c. Click Environment Variables.
d. Under System variables, select “Path” and choose Edit.
e. Move the cursor to the end of the string and add ;C:\php.
i. A basic path will look something like the following
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php

Note: If you don’t want to add C:\php to your path, you may copy libmysqli.dll and libmysql.dll to your C:\Windows\System directory.

:mean:

I don't know where to go at this point. I found libmysql.dll in C:/php and put it at c:/Windows/System but I couldn't find libmysqli.dll. By the way, I'm using Windows ME and I tried to follow steps a to e but couldn't find Advanced Tab, Environmental Variables and stuff...

5. Add the following lines to httpd.conf:
Note: httpd.conf is located in C:\Program Files\Apache Group\Apache2\conf\

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

:mean:

The PC wouldn't let me cuz there's too little space?


6. Change the following line in the httpd.conf.
Note: If you don’t plan on adding JSP support, don’t add index.jsp.

From:
DirectoryIndex index.html index.html.var

To:
DirectoryIndex index.php index.jsp index.html index.html.var

There are plenty of things to install but I'm stuck here at the moment. If there's any link that shows step-by-step instructions in installing php, please feel free to post. Thanks.

Comments

  • RWBRWB Icrontian
    edited December 2005
    First... Windows ME?!

    Second... try EasyPHP at easyphp.org ;)
  • edited January 2006
    I did. It was swell. Thanks. But I think it's worth it to learn the manual way. Are there any other links you know that is easy to follow?
  • ShortyShorty Manchester, UK Icrontian
    edited January 2006
    Il write a little guide on it and publish it this week. This seems to be a common question and there are several ways to do it to get it to work :)
Sign In or Register to comment.