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: Trouble with Apache 2.2 / PHP 5.2.0
Author
endquote



Joined: 23 Nov 2006
Posts: 2
Location: Seattle, WA

PostPosted: Thu 23 Nov '06 21:52    Post subject: Trouble with Apache 2.2 / PHP 5.2.0 Reply with quote

I'm setting up a new machine with the latest versions of Apache and PHP. I ran the installers for both and all is fine -- phpinfo() returns data and scripts are parsed and all that.

However, I cannot get PHP to load a php.ini file, or if I can, it causes PHP to stop running. Here's what's in httpd.conf:

Code:
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/Program Files/PHP/"


I have the stock php.ini which came with PHP in the PHP directory. If I rename it to php.ini.bak and restart, all comes up fine. If I call it php.ini, my scripts are not parsed and are instead just sent to the browser. So I imagine there must be something wrong in php.ini, but I'm not sure how to tell what since there is nothing in the error log or anything. I have display_startup_errors = on, and log_errors = on, and have tried both error_log = syslog and error_log = "c:/err.txt" but can't seem to get any errors out.

Why would the stock php.ini be broken? What can I do to fix it?
Back to top
endquote



Joined: 23 Nov 2006
Posts: 2
Location: Seattle, WA

PostPosted: Fri 24 Nov '06 2:53    Post subject: Reply with quote

Nevermind -- the problem was that short_open_tag is off by default and I always use them.
Back to top


Reply to topic   Topic: Trouble with Apache 2.2 / PHP 5.2.0 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software