Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on how to disable php engine on a folder ? in the VPS & Dedicated forum
Hello for security reason I want disable php engine for some folders ? Could you please help ? thanks ...

  1. #1
    JPC Member
    Join Date
    Apr 2008
    Posts
    26

    how to disable php engine on a folder ?

    Hello
    for security reason I want disable php engine for some folders ? Could you please help ?

    thanks

  2. #2
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    I mean disable php engine for a folder and its sub folders too .
    on my VPS, users unable to upload images if folders chmoed 755, I must chmod it to 777, but 777 is not safe
    thanks

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    try 766
    Good luck

  4. #4
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    thanks, 766 mean public can not execute but still can write ?? Is it safe ?

  5. #5
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Answers to all your questions depend on how php is insalled on your vps. Please post more details about control panel and php setup (apache module or cgi/suphp).

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  6. #6
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    details:
    php5, runs as module of apache, plesk control panel

    thanks

  7. #7
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Add this directive in .htaccess file:

    php_flag engine off

    This should disable php in that folder and all subfolders under it. Please test to verify.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  8. #8
    JPC Member
    Join Date
    Apr 2008
    Posts
    26
    Hello
    I have uploaded .htaccess file with
    php_flag engine off
    , and upload file info.php
    I still can run php file on that folder : http://abc.com/info.php

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
  •