Click to See Complete Forum and Search --> : Installing Apache+PHP
Hello,
I am a newbie to PHP. I have installed Apache 1.3.14 on Windows 98. I have also installed PHP 4.0.4pl1. I have gone through articles regarding installation procedure on the site along with its mail archives. but even after making the changes in the httpd.conf, its not working properly.
The server and the PHP starts but it does not display the page. I want to use all the extenstions ie .php, .php3, .php4 for my php files. pleaaaaaaaase help. if any one want i can sent him httpd.conf personally.
Regards
Piyush
lybecker
02-07-2001, 01:32 AM
This got my working!
Try This:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
Í have had problems when I installed the in c:\program files\php because og the space in "program files". So try using a directory without spaces!
Anders Lybecker
antonbrk
02-07-2001, 08:18 AM
hi piyush, the error msgs you emailed suggest an issue that i think could be quickly resolved if you just post those error
msgs in your question here to the forum. the errors refer to file permissions.
A. Give the exact directory structure of your install, the operating system
it is installed on, and how you installed it.
B. Indicate if you installed php as an apache module, or as CGI
C. Give your config details
php.ini
Give what you have after "extension_dir="
(i.e., Is the path you have there exactly correct for
your machine?)
Did you uncomment the extensions you want to use
from the extensions listing? (i.e. remove the ";" from
in
front of extensions you want to load)
httpd.conf
List what you have in there for:
1. Server root
2. Document root
3. Script alias
4. Addtype
5. Action
D. Include all the error msgs in their entirely.
A possible quick solution is to try to install one of packaged php bundles
available. In case I did not already post to you this list below, here it
is.
I'd recommend trying the firepages bundle first. This is the bundle that I
installed in the directory structure I listed previously. The httpd.conf
I email is the one I have running successfully after installing the
firepages bundle into that directory structure. I can send you my
php.ini file also. -P
===============================================
PHP FOR WINDOWS INSTALL BUNDLES (PHP4x PRECOMPILED BINARIES + APACHE +
MYSQL)
http://www.firepages.com.au/phpdev.htm (free)
http://www.phpgeek.com/ (free)
http://php.weblogs.com/easywindows (free) (GD gif dll is here too)
http://www.abriasoft.com/ (free and fee versions)
http://www.nusphere.com/products/index.htm
(the latter supplies manuals and tech support, and costs $79)
PHP INSTALLATION TUTORIALS
http://212.223.75.38/workshops/ (Edward's Online Workshops)
http://www.thickbook.com/extra/php_apachephp4_win.phtml
http://www.webreview.com/2000/09_29/developers/09_29_00_2.shtml
http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
http://www.php.net/manual/en/install-windows95-nt.php
http://www.webmasterbase.com/article.php?aid=228&pid=0 (Kevin Yank
tutorial)
IMPORTANT: Read the "readme" files accompanying each install
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.