Tuesday, May 28, 2013

Wamp Server is Not loading Postgres server Extensions php_pgsql.dll and php_pdo_pgsql.dll

It is not enough to uncomment the  relative lines in the php configuration file on Windows but Also you have to add this line to the Apache Server configuration file :

LoadFile "C:/wamp/bin/pgsql/pgsql9.2.41/bin/libpq.dll"

Change the Path to suite your configuration .

Thursday, May 23, 2013

Error displaying the error page: Application Instantiation Error (Windows 7 + Wamp server)

When startup joomla on a new php version 5.4.15 "Error displaying the error page: Application Instantiation Error" The Problem is the mysql extension is not running or not loaded by Php, you can check that by display the loaded extensions by usin this command :
$loaded_extensions = get_loaded_extensions();
echo '<pre>';
print_r($loaded_extensions);
echo '</pre>';
exit;
you will see n the resulted list only the default extensions That means the Apache server dont know where to fnd those extensions, I mean the extension_dir is not clearly configured in apache configuration file . to solve this issue go to php version folder, and find the file phpForApache.ini (on Wamp server) then write the right address to the extensions directory. like this :
extension_dir = "c:/wamp/bin/php/php5.4.15/ext/"
check again that this line is uncommented (the ; is removed). restart your server again and it will load the extensions from the right place. 

Note: When You change anything in phpForApache.ini for the php version  it must be not loaded, that means the php version thats hold this file must be not running.

Note: If you are not on Wamp Server you have to check you phpinfo() page to see where is your php.ini reside.

Friday, May 3, 2013

Wamp cannot load extensions- php5apache2_4.dll - Windows 7

Wamp is Automating every thing that's the great thing of this web server , So , If you enable the extension from the menu (Icon Tray-> Php Menu  ->Extensions) ,Wamp will un-comment the extension in your php.ini  automatically , you don't need to do anything.

Please Note : that there are three Php Initial files came with Wamp , one in Php Directory , the second in Apache->Bin Directory and the third is called phpForApache.ini and located in php directory.

We are talking here about the second file that located in Apache->Bin  folder and that file must be showed in the results of Phpinfo() function as "Loaded Configuration File " variable .

So, Don't Comment anything . wamp will do it for you , what you need to do Solve Any Problem is to check the Variable 'Extension_dir' in php.ini file , the directory must be related to the apache folder .I meant that the path to the Php extensions directory must be not  = "ext", Because that mean, the folder is inside the Apache->Bin  Folder , and that's not right . Just write the full Path to the extension Directory.

Another thing to mention here that is very important if you are going to play with wamp , when you switch the php version through the system tray menu, Wamp  will copy the phpForApahce.ini from php version directory to Apache version directory .
Then it will change  any line contain "LoadModule  And Php" with the  line from another file called "wampserver.conf" that is located in php folder which is relevant to the apache version.

Two files are  important to wamp to load php extension successfully on is the php.ini in the php directory and the other is in apache/bin directory they must include the same extension and the same extension_dir






php5apache2_4.dll into server: The specified module could not be found.

From event viewer in Windows I got this error, After trying to Add Apache 2.4 to Wamp 2.2 , Where I cannot run php scripts with php5.4.14 .
The Problem Was I downloaded the non thread safe version of php , So to solve this issue just download the thread safe PHP.
It is Supposed that you already added these lines to the Apache configuration file  :

 DirectoryIndex index.php index.php3 index.html index.htm
 DirectoryIndex index.php index.php3 index.html index.htm
   AddType application/x-httpd-php .php
  AddType application/x-httpd-php .php   

  AddType application/x-httpd-php .php3   
  AddType application/x-httpd-php .php3

Thanks