magic_quotes OFF pada Joomla 3


Status
Not open for further replies.

cyberidiot

Poster 2.0
Selamat siang,


apa ya efek dari meng-OFF kan magic_quotes pada settingan PHP untuk kerperluan Joomla 3?
berhubung ini WHM untuk Shared Hosting, apakah ada efek untuk akun hosting lainnya, jika meng-OFF kan pada magic_quotes ?

magic_quotes_gpc = Off
magic_quotes_sybase = Off


Mohon pencerahannyaa :39:
 

cyberidiot

Poster 2.0
betul , Joomla 3 magix_quotes_gpc harus off,

Supaya tidak menganggu kinerja account lainnya, di perlakukan saja Global PHP.INI dari root, jadi hanya klien tertentu yg request off yg di setting.

bagaimana pak biar klien tertentu yg request off saja?

saya pakai WHM, centos, php5.3.x

:confused:
 

jaapns

Hosting Guru
Verified Provider
Dalam operasional Server saya pake Global Php.Ini dan khusus klien yg request baru saya setting dengan cara ;

Edit
/opt/suphp/etc/suphp.conf file:

Pake nano /opt/suphp/etc/suphp.conf


Cari ini :

[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
;application/x-httpd-php=/usr/local/lib/
;application/x-httpd-php4=/usr/local/php4/lib/
;application/x-httpd-php5=/usr/local/lib/

Hilangkan tanda ; sehingga menjadi :
[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/



Kalo mau custom di user tertentu edit file :

nano /usr/local/lib/php.ini

Misal :
[PATH=/home/username/public_html]
register_globals=On
post_max_size=5000M


Kalo seperti request anda ya masukkan :
[PATH=/home/username/public_html]
magic_quotes_gpc = Off
magic_quotes_sybase = Off



note :

username : di isi username cpanel klien
dibawahnya apa yg akan di on off kan

Abis itu restart apache.

Gunanya disable global ini, supaya klien tidak seenaknya sendiri edit2 php.ini, hacker juga pake cara2 edit php.ini, itu sebabnya saya disable dari root.
 

dhyhost

Web Hosting Service
The Warrior
Verified Provider

jaapns

Hosting Guru
Verified Provider

galuh82

Hosting Guru
Verified Provider
benar kata jaapns, kalau php.ini bisa override dari user langsung agak riskan, mending metode suphp.
 
Status
Not open for further replies.

Top