|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
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 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. |
|
#2
|
|||
|
|||
|
Hey,
Are you running Windows or Linux? and what version? |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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:
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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...
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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! |
|
#9
|
|||
|
|||
|
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
|
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
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.
![]() |
|
#12
|
|||
|
|||
|
Quote:
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! |
|
#13
|
|||
|
|||
|
if its comming up as plain text that means, your apache config does not have .htaccess files turned on.
|
|
#14
|
|||
|
|||
|
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...
|
|
#15
|
|||
|
|||
|
Have you installed php as ISAPI MODULE or CGI BINARY ? edit your apache configurations to make it ISAPI module and it will work flawlessly.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache/PHP URL Look Back |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|