PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 7th, 2007, 09:42 AM
Phosphorblind Phosphorblind is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 Phosphorblind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 50 sec
Reputation Power: 0
PHP with Apache and MySQL on Windows S2003

Hey,

I ordered a dedicated server this week and am trying to set up a wesbite on it, but am having problems configuring php properly. I have followed all instructions on php.net, read the FAQ and asked for help, but no luck so far.


I have included the following arguments in my httpd.conf

Quote:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL


plus of course
Quote:
<IfModule dir_module>
DirectoryIndex index.html index.php main.php
</IfModule>


Well that works fine so far, when there is pure HTML in the php file as you can see here:
72.37.247.226/

But as soon as there actually is some PHP going on I get an HTTP Error 500
as you can see here:
72.37.247.226/hlstats/hlstats.php

I have no idea why it is doing that, perhaps it is a permission problem? But that shouldn't happen on apache as far as I know.


I ran php.exe in "-i" mode and could not spot any errors, except they hide them in the mass of text and i didnt see them there should everything be ok.

Would be very kind of you to help

Thanks
Phosphor

Reply With Quote
  #2  
Old December 7th, 2007, 10:00 AM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 343 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 8 m 33 sec
Reputation Power: 2
Is there a chance that you are using PHP5.2.4

There is a bug in that version that will cause a HTTP 500 page due to a fatal parse or runtime error when output buffering is on.

If you are using php5.2.4, either turn off output buffering in php.ini to work around the bug or upgrade to php5.2.5.

Reply With Quote
  #3  
Old December 7th, 2007, 10:09 AM
Phosphorblind Phosphorblind is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 Phosphorblind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 50 sec
Reputation Power: 0
I installed 5.2.5 Actually, still tried turning outout buffering off, didn't change anything.


Thanks for the quick reply!

Reply With Quote
  #4  
Old December 7th, 2007, 10:15 AM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 343 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 8 m 33 sec
Reputation Power: 2
Check the web server log for errors to find out more information about what the server is detecting.

Reply With Quote
  #5  
Old December 7th, 2007, 10:31 AM
Phosphorblind Phosphorblind is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 5 Phosphorblind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 35 m 50 sec
Reputation Power: 0
Awesome, thanks.

Turns out there was an error in this file, and display_errors was set to off, resulting in a 500 HTTP error. With error reporting on I now see the error, meaning it is a script problem, not installation.


Thank you so much, for your fast support and pointing me in the right direction.

Phosphorblind


PS: Yeah, I m retarded

Reply With Quote
  #6  
Old December 7th, 2007, 10:39 AM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 343 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 8 m 33 sec
Reputation Power: 2
Yeah. PHP in their somewhat questionable wisdom decided to output a confusing HTTP 500, cannot display this page... instead of a just leaving a blank page when nothing is output by php when there is a fatal parse or runtime error with display_errors off.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP with Apache and MySQL on Windows S2003


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway