logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4 / PHP 5.5/ Problem with finding the php.ini, loca
Author
MarcoB



Joined: 25 Aug 2014
Posts: 3
Location: Munich, Germany

PostPosted: Wed 12 Nov '14 15:16    Post subject: Apache 2.4 / PHP 5.5/ Problem with finding the php.ini, loca Reply with quote

Apache 2.4 / PHP 5.5/ Problem with finding the php.ini, localised in the httpd.conf

Quote:
("Fatal error: Class '[MyExtension]' not found in C:\Apache24\htdocs\[MyFile].php on line 24").


1. I manipulated my php.ini for using a few php-extensions.
2. While using another testserver than 'localhost', the browser-preview of an old PHP-Editor, Microsoft Expression Web 2, the PHP-extensions work. Means: The testserver of Microsoft Expression Web 2 finds the manipulated php.ini and the php.ini must be correctly manipulated.
3. After installing PHP 5.5 after having installed Apache server 2.4 my httpd.conf looks like that:

Quote:
(...)
#LoadModule xml2enc_module modules/mod_xml2enc.so

#
LoadModule php5_module "c:/php 5/php5apache2_4.dll"
AddHandler application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/PHP 5"

<IfModule unixd_module>
(...)


4. Php is running under 'localhost', but not with the manipulated php.ini (not with the extensions). I mean, it looks completely like that, that the Apache Server does not find the correct php.ini

Quote:
("Fatal error: Class '[MyExtension]' not found in C:\Apache24\htdocs\[MyFile].php on line 24").


5. I reinstalled the service already. That didn't help.

Maybe anybody sees the mistake.


Yours, Marco
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 12 Nov '14 16:21    Post subject: Reply with quote

Did you check phpinfo() script to see if your php.ini is loaded?
Do the extensions you made load on the command line with PHP?
Back to top
MarcoB



Joined: 25 Aug 2014
Posts: 3
Location: Munich, Germany

PostPosted: Wed 12 Nov '14 17:38    Post subject: Reply with quote

Oh, I found it out: I had to supplement
Quote:
;C:/PHP 5
to the "Systemvariable" PATH.

But thanks for the answer!

Yours, Marco.
Back to top


Reply to topic   Topic: Apache 2.4 / PHP 5.5/ Problem with finding the php.ini, loca View previous topic :: View next topic
Post new topic   Forum Index -> Other Software