Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Php And Mysql Extension Installation
magiccode9
post Jun 30 2008, 12:25 PM
Post #1


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 49
Joined: 7-November 05
Member No.: 9,489



/**
* $Author: pgeric $
* $Revision: 8 $
* $Date: 2008-06-30 19:40:52 +0800 (Mon, 30 Jun 2008) $
* $Id: php_mysql_install.txt 8 2008-06-30 11:40:52Z pgeric $
*/

Installing newer version of php and enable mysql connection.
(As of this writing will be targeted at php 5.2.5 and above)

Because of a change on newer version of php. Some files have been moved around
within the default folder structure of php package. The result was when try
working with mysql. It surprise you a lot.
(The dicussion on this was based-on zip package. Use it becasue it is easy to
install and without too much unknown data have been installed on local machine.
This is especially important for server computer.)

Before going with the steps. There are some common terms as following
/* change the wording a bit to friendly describe it */

php installation folder = c:\php
Use {PHP_DIR}
( Please don't use space within folder, it might cause issues )

php extension folder = c:\php\ext
Use {PHP_EXT_DIR}

php.ini settings = c:\php\php.ini
Use {PHP_INI_FILE}

Are you ready ? Let's go !

1.) Download a copy of php from www.php.net and extract all files to {PHP_DIR}

2.) Move file libmysql.dll to {PHP_DIR}\{PHP_EXT_DIR} from {PHP_DIR}

3.) Adding {PHP_DIR} to system search path.
Open System Applet by pressing Winkey + Break, click on the Advanced tab, then
Environment button.

4.) Check the PHPIniDir directive on httpd.conf
Open the httpd.conf file in your apache\conf folder check to see if it is
pointed to the {PHP_DIR}.

5.) Configure extension folder location and loading mysql extension on php.ini
If the directory location of extension_dir on php.ini was not configured to
the {PHP_DIR}\{PHP_EXT_DIR}. You will need to change it.

Go to extension_dir by a search and scroll up or down and look for an entry
called php_mysql.dll. Remove the leading `;` character and save the change.

6.) Create a file called phpinfo.php and put the text and save it to webroot,
CODE
<?php
    phpinfo();
?>


Test it by locate your browser to web server's webroot folder.

If everything works fine.
Confrag, you have a working php now


Eric,

Comments are welcome and could co from
http(s)://opensvn.csie.org/freescript
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics


 



- Lo-Fi Version Time is now: 30th August 2008 - 02:46 PM