SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2003
    Location
    US
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question interesting php file problem

    Ok, so i have a bunch of files that i want to make static-looking for search engine purposes so i removed their .php extension and forced them to be parsed through the use of the .htaccess ForceType command.

    Now, most of the files work beautifully and get parsed, except for one file "perl" (http://www.devlearn.com/perl/). I get a 403 forbidden error, which is very strange. If i rename it to perl.html and force the php parsing, it works. Other files that work exactly the same (http://www.devlearn.com/xml/) give me no problems whatsoever.

    Any ideas? I use Ensim Basic, and there is no "perl" directory in my root which would cause the file to not run correctly.

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Bay Area, California
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also interesting: it gives a 404 if you have a slash after "perl" and a 403 if you dont

    Looking at your main page, though -- it looks like the Perl page is at http://www.devlearn.com/content/perl rather than http://www.devlearn.com/perl/

    maybe that's unrelated though. I'm not farmiliar with Ensim but sometimes control panels do in fact reserve directory names (CPanel uses "webmail" for example), and I've had occasional screwy problems related to that. Maybe it's even somehow related to the fact that the Perl interpreter is also called "perl." It seems unlikely, though.

    You didnt accidentally change the perl file's permissions to something that would render a 403 did you? Maybe try chmodding the file to something world-readable (like 755) just to be sure...
    Last edited by robotrebellion; Oct 5, 2003 at 01:05.

  3. #3
    SitePoint Enthusiast CRYSTL's Avatar
    Join Date
    Sep 2003
    Location
    Kazakhstan
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Decision to simply rename files is wrong.

    Use ForceType to execute everything thru index.php, and in index.php you should read query_string and include requested file.

  4. #4
    SitePoint Member
    Join Date
    Jun 2003
    Location
    US
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know how to use forcetype to execute everything through index.php?

  5. #5
    SitePoint Member
    Join Date
    Jun 2003
    Location
    US
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.alistapart.com/stories/succeed/index.html

    I followed those instructions. The /perl still wouldn't work so I checked my httpd.conf and apparently modperl was interefering, so I commented it out (i dont use it anyway).

    Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •