Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 02-05-2008, 12:21 PM   #1
Jack CH.
 
Jack CH.'s Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Installation problems with PHP4 + Apache on Win 98

Hello!

I encountered these problems when I installed PHP4 with Apache on Win 98. I
would very much appreciate your help:

When I go to http://localhost/phpinfo.php, it just shows: <? phpinfo() ?>
instead of the PHP Version 4.0 graphic.
When I try sample codes, the variables can't be turned into values(e.g. echo
"<p>The price is $price.</p>".
I carefully followed the article "Setup and Install apache + PHP4 on
Windows" by Julie Meloni
and tried several times but couldn't solve the problems.
That is,
1.I extracted all the unzipped files to C:\Php4 and renamed 'php.ini-dist'as
'php.ini' and moved
it to c:\Windows
2.I Moved 'Msvcrt.dll' and 'php4ts.dll' to c:\Windows\System
3.I edited conf\httpd.conf in Apache folder:
ServerAdmin june@seashore.com
(I'm not sure about this: One can freely name a ServerAdmin e.g.
dog@playground.com?)
ServerName localhost
4.I added:
AcriptAlias /php4/ "C:/php4/"
AddType application...
AddType application...

Action application..
5. I made and saved phpinfo.php in Apache\htdocs (should I save all my
application files,
like time.php, calc01.php in this directory?)
6. I opened http://localhost/phpinfo.php and it only shows: <? phpinfo() ?>.

Addition info on my Apache installation<OS is Win 98>:
in the TCP/IP Properties dialogue box(Control Panel\Network\DNS
Configuration)
I chosed enable DNS, filled in localhost (for Host), www.seashore.com (for
Domain)
Question: The Host name and the Domain name should be corresponding with
ServerName and
ServerAdmin in Apache\conf\httpd.conf?--I'm not sure.


When I type http://127.0.0.1 or http://localhost as the URL in Netscape,
the following message(Test Page) shows up(But MSIE5 doesn't work, why???):

If you can see this, it means that the installation of the Apache web server
software on this system was successful. You may now add content to
this directory and replace this page.

Seeing this instead of the website you expected?

This page is here because the site administrator has changed the
configuration of this web server. Please contact the person
responsible for maintaining this server with questions. The Apache Software
Foundation, which wrote the web server
software this site administrator is using, has nothing to do with
maintaining this site and cannot help resolve configuration issues.

The Apache documentation has been included with this distribution.

You are free to use the image below on an Apache-powered web server. Thanks
for using Apache!
************************************************** ******************
Jack


__________________________________________________ ______________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 02-05-2008, 12:21 PM   #2
Julie Meloni
 
Julie Meloni's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default [PHP-WINDOWS] Installation problems with PHP4 + Apache on Win 98

Big question #1: did you restart Apache after making the configuration
changes?

Next, assuming this:
> AcriptAlias /php4/ "C:/php4/"


is really:

ScriptAlias /php4/ "C:/php4/"

and this:
> AddType application...

is

AddType application/x-httpd-php .php .phtml

and this:
> Action application..

is

Action application/x-httpd-php /php4/php.exe


> 5. I made and saved phpinfo.php in Apache\htdocs (should I save all my
> application files, like time.php, calc01.php in this directory?)


Yes, all php files, like all html files, gif files, jpg files and
anything else you want served up by a Web server should be in the
document root (and directories w/in the document root).

> I chosed enable DNS, filled in localhost (for Host), www.seashore.com (for
> Domain)


leave your network settings alone until you want to turn your machine
into something the whole world will be connecting to. You don't have to
make changes to it to make your machine = localhost.

> When I type http://127.0.0.1 or http://localhost as the URL in Netscape,
> the following message(Test Page) shows up(


Then Apache is working dandily by itself. Double-check all the things
you typed in the configuration directives, and be absolutely sure you
restarted Apache.

- Julie

+------------------------------------------------+
| Julie Meloni |
| Tech. Director, i2i Interactive (www.i2ii.com) |
| e-mail: jcm@i2ii.com |
| |
| "PHP Essentials" ... http://www.thickbook.com/ |
+------------------------------------------------+
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags:




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP4/mod_php/Apache 1.3.12/Win98 funniness Gavin Brown PHP 4 02-05-2008 12:22 PM
[PHP4 / WinNT / Apache / Error 500 pb] Philippe Chauvat PHP 1 02-05-2008 12:21 PM
How to install APACHE 1.3.12, PHP4 and MySQL on Win98? Davide Spadoni PHP 0 02-05-2008 12:21 PM
[PHP-WINDOWS] [PHP4 / WinNT / Apache / Error 500 pb] Giuseppe D'Ambrosio PHP 1 02-05-2008 12:21 PM
PHP4 as module to Apache under Win32 DATURA PHP 2 02-05-2008 12:19 PM


Featured Websites




All times are GMT +1. The time now is 11:50 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98