|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
Ben - you don't need the AddModule line.
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
Get rid of the AddModule line
|
|
#7
|
|||
|
|||
|
still nothing. I deleted first just the line that said AddModule, then all three lines. Same result: blank screen.
|
|
#8
|
|||
|
|||
|
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!" |
|
#9
|
|||
|
|||
|
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!
![]() |
|
#10
|
|||
|
|||
![]() Check out php.net for some basics. Then, go to http://thephpguy.com or devArticles.com for intermediate stuff. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > index.php <i>appears</i> blank |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|