www.websiteadministrator.com.au > > home > > articles
 
Php 5.3.3 - Php 5.3.4 - Php 5.3.5 - Php 5.3.6 Sunday, 12th January 2025
 
installing apache 2.2
INSTALL PHP 5.3.5
 

 

Issues? This may be the best in registry cleaning business!
windows debug one

 

install php5.3 on apahce2.2

HEX Color chart
unique
font color test
tool
950 font color comparission chart

windows debug two

Install PHP 5.3.5 on Microsoft Windows

A Self Paced PHP5 Certification Course for under $15* per month! Enroll NOW!

MaceCraftRegistryCleaner
(php 5.3.5 Page 7 of 7)

Troubleshooting PHP 5.3.5 installation:

(Php 5.3.6 Troubleshooting Notes: 5.3.6 ThreadSafe CGI - 5.3.6 NonThreadSafe CGI)

If on re-start your Apache HTTP server 2.2.17 crashes or gives an error, you have a problem with your PHP installation. The most likely cause is a) you have have not stepped through this guide in sequence, b) you have selected an item to be configured during PHP setup which you have not installed and yet needs installation before you can start Apache, or c) when you changed your setup selection, you forgot to re-edit your httpd.conf file to re-correct the installer's errors.

When you see this window, it is best to enure you have selected the correct items. The default list tends to throw this error for first time (and seasoned) installers. Simply re-start the .msi installer and check that you have understood the instructions in the section Choosing PHP 5.3.5 Items.

Apache crash caused by Installing Unsupported Items.
(Fig. 13)
apache 2.2.16 server crash in PHP 5.3

When installing the Apache 2.2x module, you may be immediately faced with the following error which is apache telling you that it cannot locate the required php5apache2_2.dll. This issue is also referenced on page 6 under the section on httpd.conf edits (note: This image [fig. 14] also has other meanings).

Apache non-start caused by incorrect path data.
(Fig. 14)
apache 2.2.16 server crash in PHP 5.3

If you have installed the Apache 2.2.x Module, check these following 4 lines are the last 4 lines in your httpd.conf file. This assumes your PHP install path was c:\PHP (This does not apply to those who selected Apache CGI from the PHP Web Server Setup section).

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

 

Other common PHP 5.3.5 setup errors to check are;

  1. Ensure you have really read the first paragraph on this page.
  2. For Vista, 2008 & 7, updating key configurations may be ignored if you have not set your permissions correctly under User Account Control (UAC). Quick tips to master the User Account Control feature is discussed in this Microsoft link: User Account Control Troubleshooting Guide for Vista, 2008, R2 & Windows 7 (includes how to disable UAC).
  3. The above also applies to your UAC settings when you installed Apache or any other program that PHP uses and needs access to alter the configuration of.
  4. Why cant' I find php5apache2_2.dll? You didn't select the module option when asked: Apache 2.2.x Module (refer Fig. 06 in section Apache Cgi Vs Module above for a more complete answer).
  5. If you selected Apache2.2.x Module in the Web Server Setup section, check you did not edit the apache httpd.conf config file for use as apache CGI.
  6. "You don't have permission to access YourFileName .php on this server" an Apache-Cgi Install error when httpd.conf has not been correctly edited to point to the php-cgi.exe file (refer our section: Check httpd.conf changes to correct the error).
  7. "The requested URL /PHP/php-cgi.exe/ YourFileName .php was not found on this server" also only occurs when you have installed the Apache-CGI option. See httpd.conf edits referenced in our section: Check httpd.conf changes (when corrected, you may then get the error in note 8. below). Also, this error can be a case sensitivity issue. The case of your PHP folder must be the same as found in apache's path info. eg. C:\PHP, C:\PhP, C:\php etc. Make sure any path reference to this folder is identical in your httpd.conf. That will clear up a few newbie blog questions you will see on this error.
  8. "You have chosen to open..." window keeps popping up after you correctly modify your httpd.conf file. Clear the browser cache and/or rename the file and call the renamed file. eg. phpinfo.php to phpinfo01.php in your browser.
  9. Do you have unnecessary programs running or suffer interference from your virus checker as mentioned in the section Preliminary Steps
  10. if updating/reinstalling, did you remove all old php.ini files before starting this install as mentioned in the section Begin PHP install setup (usually only a problem if changing the installation path)
  11. Step (10.) above might also require that you Google: how to set the environment path in windows and ensure any path to PHP and PHPRC are correctly aimed at the same folder you chose in the section titled PHP Destination Folder. If you found you needed to alter any of the paths at this step, you will need to bookmark this page and re-start Windows before re-testing Apache and proceeding further.
  12. XP users must have Service Pack 3 installed (refer: Preliminary Steps). Microsoft ended support for Windows XP SP2 & Windows Vista (with no SP) in April of 2010. New SP packs probably include the MS Genuine Advantage check.
  13. You can also check your apache error log in case another problem has presented itself (refer to WAS Install Guides Apache 2.2 - linked above).
  14. If you find your self re-starting and using the .msi installer often, don't forget to occasionally check if the apache httpd.conf file needs cleaning. Though the auto installer is self-cleaning, it slips sometimes and can leave a few too many #PHP INSTALLER EDITS remarks. Only the last pair is valid, you can remove the rest. If you do this and are using Apache CGI, repeat the Manual Edit Steps.
  15. Is the error really Php? Check by removing all PHP additions (edits) in your httpd.conf and re-start Apache. If you installed php as a module, it is the last four lines in the .conf file only. When apache starts with out error, step through this tutorial again.
  16. I have no Apache icon in the system tray! (See our apache guide)
  17. WordPress: Wordpress Dashboard works fine but all theme and page previews only show "Index of/..." folder in your browser! Edit the .htaccess line which says: "DirectoryIndex" so it now says "DirectoryIndex index.html index.php" Save and Restart Apache and retest Wordpress.

 

Remove and Reinstall Php5.3.x - troubleshooting

Some Php users may find they are locked into a loop when trying to uninstall their php software. You might find you can not re-install or remove the software. You might be trying to resolve a constant server 500 error when viewing .php pages even though Apache is successfully installed. And one would always use the default add/remove software procedure as the first method of removing software. But if you are locked in a loop and can not remove the software, we might need to step out-side of the box for a remedy.

And one shortcut remedy is to remove any remaining Php installer keys from the windows registry for your offending version of php. eg. search registry for 5.3.5 or 5.3.6 and delete that installer key. For example, these are the keys for the php 5.3.5 apache module installation:

HKEY_CLASSES_ROOT\Installer\Products\0A714748002D6B5438C86F636A84586F
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\0A714748002D6B5438C86F636A84586F
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\0A714748002D6B5438C86F636A84586F
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{847417A0-D200-45B6-838C-F636A64885F6}
HKEY_LOCAL_MACHINE\SOFTWARE\PHP

This fix should only be attempted by those who understand the risks of playing with registry file entries.

Training:

Website Administrator Training? Start here with professional standard 2011 PHP5 certification now. Under $15 per month (with a one year subscription), you can study at your own pace and plus you gain free access to a whole range of other website related certified courses like full Server, Office and Adobe selections etc. Study whatever you want, as much as you want. The thousands of videos and pages of course notes are also great for easy access to spot-on refresh notes when your client needs some random thing that has gone dim in your memory.

Also, if you have no previous formal PHP or MySQL training and would like to attain some solid Web Developer skills, i'd like to give a plug to this inexpensive self paced study course on basics as well as some advanced uses of PHP and MySQL with popular servers. Also available are some unique advanced courses on Ethical Hacking and other Security courses which would be of interest to the technical minded.

Adding gzip compression to .html files
Trouble adding gzip compression to your web pages? You may want to review our php gzip technique for stubborn website hosts from our article archives.

 

Apache and Php :

If you are new to Apache and Php, you may want to review our apache install tutorial to ensure you understand the extra basics of testing and configuring apache. The steps on changing the document root will not effect your PHP configuration.

Before you start acting like this, follow the link!
head banging computer issues

Always restart Apache after configuration changes

After you have completed any edit that effects the Apache configuration, you need to restart the apache service for the changes to take effect. This includes any changes to your Php configuration made while using the Php .msi Windows Installer.

 

Module Completion

If you are confident with what you have learned here, then you have also gained a couple of very basic entry level skills in mastering your PHP Software. Pat your self on the back, you have completed this course module.

 

Formal Recognition

We offer excellent access to some great courses for formal recognition. See the above notes under training.

Module Length:

  • 1 Hour

Pre-requisites:

The website administrator has previously attained the following computer skills:

  • Ability to install and configure Apache HTTP Server 2.2.x
  • Ability to download an installation file and execute it.
  • Ability to edit a plain text file (eg. use notepad).
  • Ability to rename a folder or directory using either Windows Explorer or My Computer.

Applicable OS Platforms :

  • Windows 7
  • Windows 2008
  • Windows Vista
  • Windows 2003
  • Windows XP (SP3)

Hardware-requisites:

  • x86 family processor - All (eg. Intel, AMD)
  • x64 (VC9 only) experimental release available only (VC9 x64)

Share this PHP 5.3.5 Tutorial with your Friends:

 
Share this Study Guide by
 
 
e-mail this page link to Selected Friends & Colleagues
 
 

Valid XHTML 1.0 Strict Valid CSS!

Copyright © 2010
Website Administration Services
 
 
Module created by: Steve Campisi
(Graduate of the Australian Nationally Accredited Certificate IV in Training and Assessment course. Formal certificate for formal Training and Assessing in Australia.)

Header Photo Credit: Glenn Grant, National Science Foundation


 
 
 
 

 
 
 
 
 
 
 
 
   

 
 
 
 
 
 
 
 

Many Website Hosting companies offer Apache HTTP server, PHP and MySQL as a default website configuration as this trio make for a robust website backbone which is one of the most popular website setups today.

With Apache HTTP Server powering over 120 million Webservers world-wide today and thanks to Apache and other developers, Windows users can now run this triumvirate of must have server software on their Windows computers.