(php 5.3.6 Page 7 of 7)
A Self Paced PHP5 Certification Course for under $15* per month! Enroll NOW!
Troubleshooting PHP 5.3.6 installation:
If on re-start your Apache HTTP server 2.2.19 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 or, 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) you are using an official VC6 version of Apache and should refer to pages one and two of this guide for more information.
The default install list will work well for most users. However, if you get an error window (Fig. 13), this is usually an indicator that you have requested a item to be installed but have not as yet installed other needed software.
Simply re-start the .msi installer and check that you have only selected the default items or if you are adding items, install the extra software first. See: Choosing PHP 5.3.6 Items.
Note: (If you find you continue to have the windows error shown at Fig 13, you may wish to try the installation steps as found in our Php 5.3.5 guide (right menu). The configuration procedure works with 5.3.6. as changes to httpd file configuration are identical in both versions. Also, Apache's httpd.conf file does differ between 2.2.17 and 2.2.19, but the edits are the same.)
Apache crash caused by Installing Unsupported Items.
(Fig. 13)
|
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)
|
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
problema de configuraciĆ³n, or, in english...
Other common PHP 5.3.6 setup errors to check are;
- Php 5.3.6 is a VC9 download, If you are using official apache downloaded from the apache website, you should have installed Php 5.3.5 VC6. Use our version 5.3.5 install guide.
- Ensure you have really read the first paragraph on this page.
- 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).
- 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.
- 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).
- 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.
- "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).
- "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 9. 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.
- "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.
- Do you have unnecessary programs running or suffer interference from your virus checker as mentioned in the section Preliminary Steps
- 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). If you are unable to uninstall Php, see notes under this troubleshooter guide.
- Step (11.) 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.
- 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.
- 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).
- 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.
- 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.
- I have no Apache icon in the system tray! (See our apache guide)
- 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.
Expanded Php 5.3.6 CGI Troubleshooting Notes are found at: 5.3.6 ThreadSafe CGI or 5.3.6 NonThreadSafe CGI on the websiteadministrater blog
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!
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:
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)
|