|
Posted by Stephen Harris on 05/27/05 03:58
<lincw@yahoo.com> wrote in message
news:1117131590.133871.263020@f14g2000cwb.googlegroups.com...
> Hi all I just got this book "SAMS Teach Yourself PHP, MySQL, and
> Apache" 1st Edition.
>
> I am follwing the instructions on Appendix A for setting up MySQL,
> Apache, and PHP in that order.
>
I have an edition of that book which I tried to use, circa 2003.
The instructions don't match the new versions of software,
the names and locations of files. So I downloaded the new
versions, found instructions of the web for Windowx XP pro.
I will include them since you don't mention your OS. I had to
do a system restore because I corrupted the configuration install
file with my various attempts. Redhat linux has the rpm erase.
I got this problem fixed. I used the msi installer for Apache
instead of the full download, I have Windows XP pro.
I also uninstalled IIs because I wasn't ready to deal with
manual start on port 8080, so I didn't choose developer.
Also added c:\PHP to my Path statement. So this worked
with PHP5.04 ; MySQL 5.0 beta ; and Apache 2.0.54
Later I reinstalled IIs to port 80. I set Apache, httpd.conf
to Listen 8080 and ServerName localhost:8080 which
allows both to work. I haven't gotten to making PHP work
with IIS, it requires cgi I think. This tutorial is good!
I used the automatic startup of the Apache service install choice.
Also I typed in the tutorial testing files by hand to learn syntax.
http://www.devarticles.com/c/a/Apache/Installing-PHP-under Windows/
LoadModule php5_module php5apache2.dll
AddType application/x-httpd-php .php
1. Make sure that you have a valid php.ini in your windows directory.
OR (Per the tut the 'php.ini' can be installed in the
'C:\Program Files\Apache Group\Apache2' folder. This works fine.)
2. copy libmysql.dll to the system32 directory
(php_mysql.dll would not load without doing this)
3. set the extension_dir in php.ini to the ext directory of your PHP
installation directory (like e.g. extension_dir=C:\php5\ext)
4. enable the MySQL extension in php.ini by uncommenting the line
extension=php_mysql.dll
5. Restart Apache Server
I think that installation web tutorial is well written.
Don't forget to restart your apache server and refresh
the browser; getting the syntax right calls for attention.
Another research and help resource:
http://www.dbforums.com/showthread.phpt=1044828&page=1&pp=15
Regards,
Stephen
[Back to original message]
|