How To Repair Apache Cannot Load Php.ini Tutorial

Home > Apache Cannot > Apache Cannot Load Php.ini

Apache Cannot Load Php.ini

After looking for a while, I decided to grab the source code for the most recent distribution at the official website ( and compiled.

Hope my post In my case this meant it was looking in
c:\Program Files (x86)\php\5.2.6
and not

Might easily be overlooked when adding new versions to your computer. add a note Runtime C:\apache24\bin>httpd -k start httpd: Syntax error on line 172 of C:/apache24/conf/httpd.conf: Cannot load C:/P HP/php5apache2_4.dll into server: The specified procedure could not be found. Add the following line to the end of your httpd.conf file. check over here

Testing httpd.conf…. please help Reply Albert Christopher Daniot says: October 1, 2012 at 4:38 pm i already done php -m and it displays a lot of modules, yet the php5..dll still could not Extract the zip and copy it to the root of C:\. You may need to make the following changes to the file, depending on your requirements: Enable Short Open Tags Search for the line that reads: short_open_tag = Off If short_open_tag is

Open Notepad or your favorite Windows editor and type and save the following.   Open your browser and type, localhost/info.php for the location and you should receive alot of The link that was reference before has been changed and moved to for versions 5.4.9 and earlier. Change it to You need to have the IfModule directives around the settings. Also those versions offer msi installer.

They're here only as hints or reminders. This quick guide covers only the basics to get started with Apache 2.x and PHP. Yes, I have made the changes to the php.ini file. I've ran and confirmed my php.ini path.

Use to create a memorable xkcd style password. Can someone can send me the file please at [email protected] php-5.2.0.tar.bz2 contains the uncompiled PHP source code. If you point # ServerRoot at a non-local disk, be sure to specify a local disk on the # Mutex directive, if file-based mutexes are used.

I wish all psotings were this good. Sign up now and you'll get a month free through this link. Not the answer you're looking for? This is needed to allow Apache to use PHP.  Edit Apache's config file, c:\Apache24\conf\httpd.conf and add the following lines to the bottom of the file.

I was able to accomplish that by overrideing the include_path set in the php.ini file with a different one in the virtual site file. php_value include_path ".:/my/other/include/path" .... This page was last updated on 15 January 2014. If you are installing PHP on Windows, you need to download the Windows binaries for PHP 5.2.0. make sure your php.ini is located inside of that directory.

PHPIniDir "c:/php" Of course if you used a different directory for your PHP installation, you will need to change "c:/php" to that path. check my blog Note that if you installed PHP elsewhere, such as "c:\Program Files\php\", you should substitute the appropriate path in place of "c:/php/" (for example, "c:/Program Files/php/"). If you've installed all of the above more than once you'll know what is more than likely wrong. For more information type ./configure --help in the corresponding source tree.

C:\apache24\bin>httpd -S httpd: Syntax error on line 172 of C:/apache24/conf/httpd.conf: Cannot load C:/P HP/php5apache2_4.dll into server: The specified procedure could not be found. As of PHP 5.2.0, the location of the php.ini file can be set for different versions of PHP. I read somewhere that the mysql and mysqli paths must be identical.

Quoted from Michael Kofler at the following link: up down -3 mihai dot sandu this content Thank you for your contribution.

It should look like: Not with ‘$' on the last line. Once the installation is completed you can let the configuration wizard run and setup the database server. Also, due to the addition of the php5apache2_4.dll being included in PHP 5.4.10 and above builds you no longer need to download the module separately.

Even with the setting of "Off", you can still use the addslashes() function in PHP to add the slashes for the specific pieces of data that need them.

After reading a handful of tutorials, I got it updated, running, and working properly. Back to top TABJoined: 30 Mar 2013Posts: 4Location: Haiti,Port-au-Prince Posted: Thu 04 Jul '13 15:29 Post subject: To confirm that it's a compatibility problem: The same error occurred with PHP5.5.0.0, but If you do that, change the line to the following: session.save_path = "c:\tmp" Notice that in addition to changing the path, I also removed the semi-colon (";") prefix from the line. Thanks!

Here’s what I would check. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/" # # ScriptSock: On threaded servers, designate the path to the UNIX # This website has proven to be extremely helpful as I work through the process. Personally though, I prefer to avoid names with spaces in it, like "c:\Program Files\php" to avoid potential problems with programs that cannot handle such things.

The last few lines of my httpd.conf file looks like this SSLRandomSeed startup builtin SSLRandomSeed connect builtin LoadModule php5_module "c:/php/ext/php5apache2_4.dll" AddHandler application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php" If you use Apache 2.2.x, you can simply add it immediately after your "AddType" statement above; there's no "Action" comment block in Apache 2.2.x.