SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

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 June 10th, 2002, 07:36 AM
BrynDN BrynDN is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 1 BrynDN User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Apache/PHP URL Look Back

I recently read article #143 regarding ForceType and Apache URL look back. Only one problem though. As I went thought the article, I ran into a problem. The Apache URL look back that you spoke of doesn't work for me. I get "Server Error! 500: Premature end of script header: php.exe." I'm running Apache 2.0.36 along with PHP 4.2.1 as a CGI (can't seem to get it to work as a module either). Have any ideas why this would be happening and any possible solution. I can't find anything online except other people that are having the same problem, with no response. Either way, thanks so much for the article. I have been looking for something like this for a few days now.

Last edited by BrynDN : June 10th, 2002 at 07:39 AM.

Reply With Quote
  #2  
Old June 10th, 2002, 05:57 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hey,
Are you running Windows or Linux? and what version?

Reply With Quote
  #3  
Old June 11th, 2002, 01:23 PM
mindseed mindseed is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 2 mindseed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to mindseed
Have same problem

Look back does not work here either.

Apache/1.3.24
(Win32) WinXP
PHP/4.2.1.

I installed php as module instead of CGI. I got it to work to point where the file soccer is recognized as a php file but now i can't get it read the url

URL

email me at URL
or AIM
nihilrp8l

Reply With Quote
  #4  
Old June 11th, 2002, 05:24 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
i have a simular problem, i type in this

URL

it loads the soccer file, but doesnt treat it as a php file, just a text file so i get the php source code showing up

PHP Code:
<?php
echo "test";
 
?>


im running the latest versions of apache mysql and php,

i think its a problem with apache not reading the .htaccess file, but i dont know what i need 2 change in the conf file

Reply With Quote
  #5  
Old June 11th, 2002, 08:04 PM
mindseed mindseed is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 2 mindseed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to mindseed
Response

Try adding the file directive in the httpd.conf file it self. on the very bottom. Thats what I did and it worked.

But i still can't get it to read naything past soccer..

all i get is
404 errors if i try the following url
URL

Reply With Quote
  #6  
Old June 12th, 2002, 06:07 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Are you guys running on Linux? The example in the article was only tested on Linux, so there's no guarantees that it will work on Win...

Reply With Quote
  #7  
Old September 29th, 2002, 07:18 PM
gerrygerry gerrygerry is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 1 gerrygerry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Did anyone get this working??

Did anybody ever get this working in Windows?? Using the syntax:
Code:
<Files ScriptName>
  ForceType application/x-httpd-php
</Files>

in a htaccess, I was able to get the PHP parseing to work... but as soon as I append anything past the closing slash (ex: URL) I get a 500 error... with a "Premature end of script header" in my error log.

I am running on Windows 2000...

Thanks for any suggestions and/or follow-ups

Last edited by gerrygerry : September 29th, 2002 at 07:50 PM.

Reply With Quote
  #8  
Old October 7th, 2002, 05:59 PM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
This is the same thing I'm finding

I installed EasyPHP and everything seems to work like a charm, except for the url look-up. I can find index.php files no problem, see php parsed, make databases and populate them with phpmyadmin, but can't do the simple function of finding a url past the index.

I'm running it on W2K and W98, Apache 1.3.- and PHP 4.1.- not the latest of either but I haven't seen any incompatability issues on the versions.
__________________
bow wow!

Reply With Quote
  #9  
Old October 7th, 2002, 07:01 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
YES it works on windows as a modual NOT cgi, plus the windows version of apache has .htaccess files turned off by default, you will need to edit httpd.conf in order to use .htaccess files, thats why the php isnt parsing when you type localhost/soccer

Reply With Quote
  #10  
Old December 4th, 2002, 08:53 PM
m34d0w m34d0w is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 3 m34d0w User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i'm having the same problem mindseed was having.

everything works great when i do:

URL

the php executes fine...

but when i append to the url:

URL

it gives me a 404. i can't figure out what's wrong...i've read about mod_mime and forcetypes, but can't figure out why it's doing this.

i am using: Apache/2.0.43 (Unix) PHP/4.3.0-dev

thanks

Last edited by m34d0w : December 4th, 2002 at 08:59 PM.

Reply With Quote
  #11  
Old December 6th, 2002, 11:30 PM
m34d0w m34d0w is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 3 m34d0w User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

can someone please help on this matter? i emailed the author of the article, and he says that he doesn't answer questions via email anymore and to post my question here in the forums to get a reply ASAP.

Reply With Quote
  #12  
Old December 18th, 2002, 08:30 PM
dzfx dzfx is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 1 dzfx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by m34d0w
can someone please help on this matter? i emailed the author of the article, and he says that he doesn't answer questions via email anymore and to post my question here in the forums to get a reply ASAP.


I'm having the same problem here.

I running Apache 2.0.40 and php 4.2.2

Went I set up the files using:
<Files filename>
ForceType application/x-httpd-php
</Files>

The filename appears in plain test.

Inside the file is:
<?php
echo "TEST";
?>

Any ideas?

Also, I have tried it in both the httpd.conf file and .htaccess. .htaccess is functioning correctly and being read by apache.

I'm clueless. Any help would be greatly appreciated. Does anyone have this working properly under Apache 2.0?

Thanks in advance!

Reply With Quote
  #13  
Old December 19th, 2002, 06:59 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
if its comming up as plain text that means, your apache config does not have .htaccess files turned on.

Reply With Quote
  #14  
Old January 2nd, 2004, 12:38 PM
juandc juandc is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 juandc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
has anyone made this work on windows? i get the same errors m34d0w, can't seem to find out why it doesn't work on windows...

Reply With Quote
  #15  
Old January 2nd, 2004, 04:50 PM
Mike_r Mike_r is offline
ExoCrew
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 68 Mike_r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Have you installed php as ISAPI MODULE or CGI BINARY ? edit your apache configurations to make it ISAPI module and it will work flawlessly.
__________________
ExoHelpDesk
ExoCrew Free Services

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache/PHP URL Look Back


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


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed