Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Location
    UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question PHP, Apache and Windows

    Ok.... how to explain, how to explain...

    My web-server runs Apache 1.3.26 on Linux, my test/personal server runs 2.0.39 on Windows. I use an edited version of http://evolt.org/article/Making_clea...880/index.html to include files dynamically using .htaccess to make extensionless files act as PHP files.

    For example e8o.com/artists/50_cent includes e8o.com/artistfiles/50_cent.htm and so on.

    The problem is I can't get this little trick to work on my personal server so I've had to set up a *.php?p=filelocation/filename.htm to test pages locally instead.

    My question is, does anybody know how to make the .htaccess trick work on my local version of apache?

    I'm sorry, I can't explain it very well, I'll try again if you don't understand me!

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    I am assuming you are using the force-type directive ? ...

    well assuming .htaccess works at all on your apache version and that directory is configured to allow .htaccess then it could just be that apache 2.0.3.9 /php4 filter is partly broken, I know the normal apache lookback feature did not work on several early versions.

    maybe grab 2.0.44 as its the stablest with PHP so far , or better still just use 1.3.27 , there is nothing yet in apache2 that is of a major benefit on win32 .. i.e its not really finished

    but check your permissions in the httpd.conf first as thats likely where the problem is , try setting

    <Directory /path/to/dir>
    AllowOverride All
    </Directory>

    in httpd.conf then restart and try htaccess again, though I would use some more specific options if indeed thats the problem.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New to the CF scene
    Join Date
    Feb 2003
    Location
    UK
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, thanks for your reply.

    Yep I'm using the forcetype directive.

    I'm not really very used to using Apache (was with IIS and before that PWS) so I used a precompiled PHP, Mysql, Apache package.

    I've been using it for a month or so now and have played in the configuration files so have now decided to go and install everything, indivually, myself as a lot of the settings were getting on my nerves.

    I'll let you know how it goes and if I can sort the problem out this way


  •  

    Posting Permissions

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