Forum Moderators: coopster
(C:\php).
C:\php\extfolder to the
C:\phpfolder that was created in step 2.
Note: There have only been two files that have given me fits in the past, and they deal with the GD Library extension for images. I'm not sure if this has been fixed in PHP5 as I have not tested it yet. Go ahead and try using image functions after copying the related dlls from theC:\php\extfolder to theC:\phpfolder that was created in step 2. If you have difficulties, copylibeay32.dllandssleay32.dllto the Windows root directory (C:\WINDOWSas instructed in the Image functions [php.net] pages of the PHP manual.
php.ini-distfile from the
C:\phpfolder to your
C:\WINDOWSdirectory and rename it
php.ini.
php.inifile. This is where you are going to personalize your PHP installation. I am only including what I might call "bare minimum" changes here. First, let's search through the
php.inifile for these directives and update them accordingly. Note, if your paths and/or filenames are different, update accordingly:
doc_root = "C:\Program Files\Apache Group\Apache2\htdocs"
extension_dir = "c:\php\"
; created my own directory so I can
; manage cleanup of temporary session files:
session.save_path = "C:\Program Files\Apache Group\Apache2\htdocs\tmp"
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysql.dll
[mail function]
; For Win32 only.
; This can be used if you are running the
; Windows SMTP service (see IIS):
;SMTP = localhost
; Otherwise, use the external server for
; now (Note: Change to yours!):
SMTP = mail.myserver.com
;
; For Win32 only. (Note: Change to yours!):
sendmail_from = me@myserver.com
;
; For Unix only. You may supply arguments
; as well (default: "sendmail -t -i").
;sendmail_path =
;
; Force the addition of the specified parameters
; to be passed as extra parameters
; to the sendmail binary. These parameters will
; always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =
Lastly, you may want to keep a
hostsfile (no extension, just the five letters, h-o-s-t-s) in
C:\WINDOWS\system32\drivers\etcwith the following entry:
127.0.0.1 localhost
Oh yeah, don't forget to update your Apache configuration to process PHP files.
Anyone care to contribute more...?
The image "http://localhost/example.jpg" cannot be displayed, because it contains errors.
Fun one to troubleshoot, no doubt. I did find resolution though, related information from both MS and Apache. To fix, I simply uncommented the following directives in my
httpd.conffile:
EnableSendfile OffYou may or may not have to disable use of AcceptEx(), so you might want to add that to your
EnableMMAP Off
httpd.confif necessary (see link in quotation below).
#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# [httpd.apache.org...]
#
EnableMMAP Off# Also added this one as per Apache directions
# [apache.org...]
# ..but commented it out as it did not make any difference.
#Win32DisableAcceptEx#
# EnableSendfile: Control whether the sendfile kernel support is
# used to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. Please see
# [httpd.apache.org...]
#
EnableSendfile Off
Resources:
[support.microsoft.com...]
[apache.org...]
[apachefriends.org...]
The download site had a test version including PHP 5 some time ago, and I assume they have, or will, update to PHP 5 soon too.
Regards
Henry
PHP5 is installed in d/php5
Apache is installed in d/Apache2
When a phpinfo.php test file:
<?php
phpinfo();
?>
( File is in d/apachetest/phpinfo.php )
Is run, it brings up: http: //localhost/phpinfo.php which just says page cannot be displayed.
Is there a specific folder where that file needs to go for it to work or is it likely there is something else amiss?
This is just running locally on XP Home & Apache is running.
I don't about Apache 2, but in several packaged-programs (e.g. WAMPs), there is often a folder called "htdocs" or something similar which is the root directory for files to be uploaded in. Give it a try.
Sid
New Installation Instructions[14-Aug-2004] The latest online version of the PHP Manual contains a completely reorganized Installation and Configuration [php.net] part, which is now splitted up by platforms and servers to ease your first steps with PHP. The manual Windows installation instructions are completely revised, and now suggest you to set environment variables instead of moving files. This way upgrades and configuration changes become more easier.
Hereby we would like to kindly ask everyone who published an article or howto about installing PHP on Windows to revise those instructions according to our latest guide. These new instructions got distributed with PHP 5.0.1 in both the source code and binary versions, and will continue to be shipped with future versions of PHP.
Browse that file and then either create the folder in the place that httpd.conf sugdests that it be made, or else make your own folder wherever you want it to be and then edit the httpd.conf file to reflect that.
It comes with Mini Perl and they also offer the full version of Perl as a separate install.
From an existing RH go to system setting/server setting/services
And shut down HTPPD and MySQL
To start LAMPP
Go to system tool/terminal
And enter: /opt/lamp/lamp start
To test your scripts in action:
[localhost...]
To go back to your regular RH setup do not forget restarting
HTTPD and MySQL
Have fun
Regards
Henry