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
Reply
 
LinkBack Thread Tools Display Modes
Old 02-05-2008, 11:22 AM   #1
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] php4 and apache

Ralph Birden wrote:
>
> ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
> ScriptAlias /php "C:/php4/"
>
> AddType application/x-httpd-php .phtml .php
> AddType application/x-httpd-php-source .phps
>
> Action application/x-httpd-php /php4/php.exe



Ok, here's your problem(s):

This ScriptAlias line:
ScriptAlias /php "C:/php4/"

should at least have a trailing slash after the alias:
ScriptAlias /php/ "C:/php4/"

Then, the Action line you use:
Action application/x-httpd-php /php4/php.exe

should match the first part of /alias/php.exe with what you created in
the ScriptAlias line.

So, if you REALLY meant the ScriptAlias to be /php/ then the Action line
should read:
Action application/x-httpd-php /php/php.exe

But, assuming you meant to have the ScriptAlias be /php4/, just make
THAT change, restart Apache, and all should be right with the world.

- 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!
Reply With Quote
Advertisements
Old 02-05-2008, 11:22 AM   #2
deviant
 
deviant's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default [PHP-WINDOWS] php4 and apache - it still doesn't work

Hi All,

Thanx for all the info but I still didn't get php4, apache 1.3.9 and win98
(first edition) to work. The normal index.htm works perfectly, but index.php
just doesn't work. When the timeout is over (5 minutes) it says "cannot find
server". I've tried using index.phtml, index.php and index.php4. Nothing
helped
-----------------------------------------------
This is all I have in httpd.conf

AddType application/x-httpd-php .phtml .php .php4 (on line 597)
AddType application/x-httpd-php-source .phps

ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/" (on line 460)
ScriptAlias /php/ "c:/php/"

Action application/x-httpd-php /php/php.exe (on line 642)
----------------------------------------------------------------
Apache is in C:\apache
php4 is in c:\php


----- Original Message -----
From: Julie Meloni <julie@thickbook.com>
To: <php-windows@lists.php.net>
Sent: Wednesday, June 07, 2000 5:13 PM
Subject: Re: [PHP-WINDOWS] php4 and apache


> Ralph Birden wrote:
> >
> > ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
> > ScriptAlias /php "C:/php4/"
> >
> > AddType application/x-httpd-php .phtml .php
> > AddType application/x-httpd-php-source .phps
> >
> > Action application/x-httpd-php /php4/php.exe

>
>
> Ok, here's your problem(s):
>
> This ScriptAlias line:
> ScriptAlias /php "C:/php4/"
>
> should at least have a trailing slash after the alias:
> ScriptAlias /php/ "C:/php4/"
>
> Then, the Action line you use:
> Action application/x-httpd-php /php4/php.exe
>
> should match the first part of /alias/php.exe with what you created in
> the ScriptAlias line.
>
> So, if you REALLY meant the ScriptAlias to be /php/ then the Action line
> should read:
> Action application/x-httpd-php /php/php.exe
>
> But, assuming you meant to have the ScriptAlias be /php4/, just make
> THAT change, restart Apache, and all should be right with the world.
>
> - Julie
>
> +------------------------------------------------+
> | Julie Meloni |
> | Tech. Director, i2i Interactive (www.i2ii.com) |
> | e-mail: jcm@i2ii.com |
> | |
> | "PHP Essentials" ... http://www.thickbook.com/ |
> +------------------------------------------------+
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 02-05-2008, 11:22 AM   #3
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] php4 and apache - it still doesn't work

deviant wrote:
>
> Hi All,
>
> Thanx for all the info but I still didn't get php4, apache 1.3.9 and win98
> (first edition) to work. The normal index.htm works perfectly, but index.php
> just doesn't work. When the timeout is over (5 minutes) it says "cannot find
> server". I've tried using index.phtml, index.php and index.php4. Nothing
> helped


Things to check:

1) Have you put index.php in the same place as index.htm, ie in the
htdocs directory?
2) After making configuration changes, did you restart Apache?
3) If you stick a test PHP file (phpinfo, hello world, anything) in the
c:\php\ directory, next to php.exe, then open a dos window, cd to the
directory and type php.exe [file].php, does php run (spit out results in
the dos box).


(If I keep answering windows questions, will Linux Headquarters take my
membership card away? )

- 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!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
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 and apache Ralph Birden PHP 3 02-08-2008 8:25 PM
[PHP4 / WinNT / Apache / Error 500 pb] Philippe Chauvat PHP 1 02-05-2008 11:21 AM
RE: [PHP-WINDOWS] How to install APACHE 1.3.12, PHP4 and MySQL on Win98? Darvin Andrioli PHP 0 02-05-2008 11:21 AM
[PHP-WINDOWS] [PHP4 / WinNT / Apache / Error 500 pb] Giuseppe D'Ambrosio PHP 1 02-05-2008 11:21 AM
PHP4 as module to Apache under Win32 DATURA PHP 2 02-05-2008 11:19 AM


Featured Websites




All times are GMT +1. The time now is 5:54 AM.


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