PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 5th, 2002, 04:14 PM
dragonpyro dragonpyro is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 4 dragonpyro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy index.php <i>appears</i> blank

I followed the DevArticles instructions for installing Apache, MySQL, and PHP to a tee, but when I go to URL all I get is a blank screen. The only page I have in public_users is index.php. I can viewsource and see:
<html>
<body>
<?php
echo "This worked!";
?>
</body>
</html>

Do you know what could be wrong? I think I saw a page somewhere that addressed this problem, but I haven't been able to find it again.
Anyway, thanks in advance!

Reply With Quote
  #2  
Old October 5th, 2002, 04:18 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Dragonpyro,

Did you restart your apache server after setting up PHP?
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old October 5th, 2002, 07:15 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
dragonpyro, did you tell apache that your running php, by placing the following code into you httpd.conf in apache?

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

and make sure that after every change to apache or php to restart the server, in order to apply the changes

Reply With Quote
  #4  
Old October 5th, 2002, 08:03 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Ben - you don't need the AddModule line.

Reply With Quote
  #5  
Old October 5th, 2002, 08:05 PM
dragonpyro dragonpyro is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 4 dragonpyro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I restarted my server (I have it set to run only when I open it, not always in the background) and I have
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
at the very bottom of my httpd.conf file, after everything.
Could it be anything else?

I just noticed this, in my Apache console I get the message:

[date and time] " [warn] module mod_php4.c is already added, skipping Apache/1.3.27<Win32> PHP/4.2.3 running..."

I am running WindowsXP Home Edition, if it matters. Thanks for your responses.

Last edited by dragonpyro : October 5th, 2002 at 08:16 PM.

Reply With Quote
  #6  
Old October 5th, 2002, 08:54 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Get rid of the AddModule line

Reply With Quote
  #7  
Old October 5th, 2002, 09:25 PM
dragonpyro dragonpyro is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 4 dragonpyro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
still nothing. I deleted first just the line that said AddModule, then all three lines. Same result: blank screen.

Reply With Quote
  #8  
Old October 5th, 2002, 09:47 PM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7
Add:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

To httpd.conf

Restart apache (start->Apache HTTP Server->Control Apache Server->Restart).

Add -

<html>
<body>
<?php
echo "This worked!";
?>
</body>
</html>

To c:\Apache Group\Apache\htdocs\somefile.php (assuming you use this htdocs directory in your httpd.conf).

Go to:

http://localhost/somefile.php

You should see "This worked!"

Reply With Quote
  #9  
Old October 6th, 2002, 12:13 AM
dragonpyro dragonpyro is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 4 dragonpyro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you.

This worked! I thank you so much for your help and patience. Now all I've got to do is learn PHP and whatever MySQL is for and my site will be rockin'. Thanks again everyone who helped!


Reply With Quote
  #10  
Old October 6th, 2002, 12:15 AM
ejbe99 ejbe99 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 43 ejbe99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 40 sec
Reputation Power: 7


Check out php.net for some basics. Then, go to http://thephpguy.com or devArticles.com for intermediate stuff.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > index.php <i>appears</i> blank


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 | 
  
 

Iron Speed




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