![]() |
|
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. |
| |||||||
| 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. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| 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/ | +------------------------------------------------+ | |||
|
| Advertisements |
| | #2 | ||
| 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 > | |||
|
| | #3 | ||
| 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/ | +------------------------------------------------+ | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
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 | ||||
|