[ask] problem pada /opt/cpanel/ea-php56/root/usr/bin/php-cgi


Status
Not open for further replies.

alexistdev

Expert 1.0
Bisa ditampilkan hasil 'httpd -t -D DUMP_MODULES' ?.

ini pak

AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/conf/httpd.conf:6700
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
cgi_module (shared)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_anon_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
expires_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
proxy_http_module (shared)
rewrite_module (shared)
setenvif_module (shared)
slotmem_shm_module (shared)
socache_dbm_module (shared)
socache_shmcb_module (shared)
status_module (shared)
suexec_module (shared)
unique_id_module (shared)
unixd_module (shared)
userdir_module (shared)
version_module (shared)
pagespeed_module (shared)
ssl_module (shared)
bwlimited_module (shared)
security2_module (shared)
lsapi_module (shared)
hostinglimits_module (shared)
 

alexistdev

Expert 1.0
Ada 'cgi_module (shared)' tuh!.

oh iya, maaf pak saya nyarinya mod_cgi.

itu disablenya di whm dari cgi previllage itu ya pak?
klo misal yg saya disable itu kan domain yg dipakai utk vps saya, nanti efeknya spt apa

misalkan selama ini saya login dengan alexist.com/whm dan di list akunnya domain alexist.com telah dibuat cpanelnya dengan username alexist , misal utk username ini saya disable cgi previlage nya itu bagaimana ?
 
Last edited:

mustafaramadhan

Hosting Guru
oh iya, maaf pak saya nyarinya mod_cgi.

itu disablenya di whm dari cgi previllage itu ya pak?
klo misal yg saya disable itu kan domain yg dipakai utk vps saya, nanti efeknya spt apa

misalkan selama ini saya login dengan alexist.com/whm dan di list akunnya domain alexist.com telah dibuat cpanelnya dengan username alexist , misal utk username ini saya disable cgi previlage nya itu bagaimana ?
Ya dicoba saja, terutama jika ternyata bisa 'menghilangkan' proses 'php-cgi'.
 

mustafaramadhan

Hosting Guru
Kalau di Kloxo-MR, mod_cgi sengaja saya disable. Sebagai pengganti digunakan suphp untuk mengeksekusi cgi (saya rasa trik ini hanya ada di Kloxo-MR).
 

mustafaramadhan

Hosting Guru
Secara umum, agar cgi bisa jalan (memakai mod_cgi) di document root adalah:
Code:
    <Directory "/home/devel/mustafa.id/">
        AllowOverride All
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
        Options +ExecCGI
        AddHandler cgi-script .cgi .pl .py
    </Directory>

Jika memakai suphp maka diubah menjadi:
Code:
    <Directory "/home/devel/mustafa.id/">
        AllowOverride All
        <IfVersion < 2.4>
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.4>
            Require all granted
        </IfVersion>
        Options +ExecCGI
        <FilesMatch \.(cgi|pl|py)$>
            <IfModule mod_suphp.c>
                SuPhp_UserGroup devel devel
                SetHandler x-suphp-cgi
            </IfModule>
        </FilesMatch>
    </Directory>
 

alexistdev

Expert 1.0
Permasalahannya, apakah pilihan 'disable cgi' tersebut betul-betul men-disable (aka me-nonaktifkan) mod_cgi. Jangan-jangan hanya meniadakan setting handler untuk cgi saja (yang artinya mod_cgi tetap enable).

Jika mod_cgi tetap enable, hal ini yang mengkhawatirkan. Jadi, pastikan mod_cgi adalah disable. Anda bisa periksa apakah aktif atau tidak dengan menjalankan 'httpd -t -D DUMP_MODULES'.

denngan pengaturan ini ternyata mod_cgi tetap jalan hanya meniadakan setting handler nya saja
 

Ilham Hakim

Apprentice 2.0
Verified Provider
Bisa ditampilkan hasil 'httpd -t -D DUMP_MODULES' ?.
Seperti ini hasilnya :21:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
cgi_module (shared)
Saya kira udah mati soalnya ada tutorial suruh uncheck ExecCGI, ternyata saya lihat di proses masih ada /opt/cpanel/ea-php56/root/usr/bin/php-cgi
Lalu saya inget mod_cgi di pengaturan EA4, tapi gak bisa disable dari situ.
 
Status
Not open for further replies.

Top