suPHP, chmod, .htaccess, dan php.ini ( Dalam B.M)

Demi menjamin keselamatan sistem dan website setiap pelanggan, suPHP telah diinstall, dimana terdapat beberapa hal penting yang harus diperhatikan dalam konfigurasi website agar boleh beroperasi seperti sedia kala.

chmod


    * chmod untuk FOLDER maksimum 755
    * chmod untuk FILES maksimum 644
    * Khusus cronjob, files harus di-chmod 755
    * Dilarang chmod ke 777/666 kerana website anda mungkin akan memaparkan INTERNAL ERROR 500!
    * Semua aktiviti file upload/write akan beroperasi seperti biasa *TANPA* perlu melakukan chmod 777/666 terhadap folder/file.

.htaccess & php.ini

    * Parameter setting PHP *TIDAK* boleh diletakkan dalam file".htaccess", tapi harus dalam file "php.ini". Contoh setting dalam php.ini:
      register_globals = off atau register_globals = on
      Jika terdapat parameter php_flags register_globals on pada .htaccess akan menyebabkan Internal Error 500 dan kami cadangkan anda supaya membuang line tersebut pada .htaccess agar website anda boleh diakses secara normal.
    * File "php.ini" tersebut harus diletakkan dalam setiap folder yang memerlukan setting tersebut (bergantung kepada keperluan aplikasi tersebut).
    * Dilarang memasukkan parameter setting PHP ke dalam file .htaccess. Apabila terdapat parameter tersebut, website anda akan memaparkan INTERNAL ERROR 500!
    * Anda disarankan download contoh file php.ini di http://support.datakl.com/downloads.php?action=displaycat&catid=1 untuk diletakkan didalam folder yang berkenaan.

PENTING:

    * Anda disarankan supaya delete file php.ini bila tidak diperlukan dari folder/direktori yang berkenaan.
    * Didalam file php.ini.default yang sediakan oleh pihak kami, terdapat barisan syntax disable_function = dan untuk keselamatan dilarang mengubah syntax tersebut.

  • permission, php
  • 30 Users Found This Useful
Was this answer helpful?

Related Articles

Executing php code within a HTML document

Simply add this line to your main .htaccess file. AddHandler application/x-httpd-php5 .html .php...

Executing Php page problem

If you encounter problem executing php pages, 1. Set the permission of the Php pages to 644 2....

Disabled functions in PHP

Php function below disabled for the shared hosting environment: Show_source System...

suPHP

777 – Do I need directories set to this? My install script says that I do. No, you do not need...

Disable Php Error

1. Create php.ini in the desired folder 2. Insert this line of code display_errors = Off 3....