MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: Wibowo on 2016-03-16, 08:46:13

Title: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 08:46:13
ini kenapa ya, semua cms yg saya install (pagekit - grav - joomla - magento - wordpress - opencart - dsb.)
semuanya 'protes' dengan warning yg sama

semua folder yang ada di bawah root folder domain tidak bisa 'ditulis'

cuma bisa diselesaikan dengan

1. ubah ownership semua folder jadi apache:apache
tapi resikonya tidak bisa edit konten lewat ftp karena folder jadi miliknya user apache

2. ubah chmod semua folder jadi 777 ownership bisa admin:admin

sudah coba pake 'sh /script/fix-chownchmod' tapi tetap saja muncul warning kalo root folder domain ga bisa 'ditulis'
Title: Re: Write Permission KloxoMR
Post by: zenkul on 2016-03-16, 10:44:48
infokan "sh /script/sysinfo"
supaya mudah diagnosis

BTW apakah karena apache 24
Title: Re: Write Permission KloxoMR
Post by: zenkul on 2016-03-16, 11:02:50
sambil nunggu @MRatWork

mungkin bisa test dengan "hiawatha"

fix ownership+permission
Title: Re: Write Permission KloxoMR
Post by: zenkul on 2016-03-16, 11:28:47
sy kok normal nginx proxy (apache 24)

mungkin coba lagi fix "sapu jagat"

sh /script/fix-chownchmod
sh /script/fix-all
reboot
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 11:32:18
infokan "sh /script/sysinfo"
supaya mudah diagnosis

BTW apakah karena apache 24

ini mas

Code: [Select]
[root@ibnhaytham conf.d]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016030202
   - Web: hiawatha-10.1.0-f.6.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: ibnhaytham.satriyowibowo.my.id
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.i686
   2. PHP:
      - Branch: php56u-cli-5.6.18-1.ius.el6.i686
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.32-1.ius.el6
        * php56m-5.6.18-1.ius.el6
        * php70m-7.0.3-1.w6
      - Used: --Use PHP Branch--
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.12-1.el6.ngx.i386
     - Httpd: httpd24u-2.4.18-3.ius.el6.i686
       - PHP Type: fcgid_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.i386
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
      - spam: bogofilter
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           498        485         13          1         66        182
   -/+ buffers/cache:        237        261
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        20G  2.9G   16G  16% /


*** Process Time: 00:00:00:05.5952 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

[root@ibnhaytham conf.d]#

keliatannya bukan, sudah coba pake apache22 tetap masalahnya sama
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 12:11:24
Bisa jadi karena pakai fcgid_event dan bukan php-fpm_event.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 13:45:33
Bisa jadi karena pakai fcgid_event dan bukan php-fpm_event.

pake php-fpm_event apa tetap bisa pake multiple php pak?
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 13:50:31
Bisa jadi karena pakai fcgid_event dan bukan php-fpm_event.

pake php-fpm_event apa tetap bisa pake multiple php pak?
Ya.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 13:59:34
Bisa jadi karena pakai fcgid_event dan bukan php-fpm_event.

pake php-fpm_event apa tetap bisa pake multiple php pak?
Ya.

saya coba edit di htaccess yang bagian ini
coba pakai section
'1. using suphp' ==> yg tampil malah isi file phpnya
'2. using fcgid' ==> malah error 500
Code: [Select]
###Start Kloxo PHP config Area

### begin content - please not remove this line

### MR -- using php version different with default php
### 1. Using suphp
### - Copy between '#<FilesMatch \.php$>' to '#</FilesMatch>' and
###   then remove '#' from '#<FilesMatch', '#</FilesMatch>' and one of '#SetHandler'

#<FilesMatch \.php$>
#SetHandler x-httpd-php
#SetHandler x-httpd-php52
#SetHandler x-httpd-php53
#SetHandler x-httpd-php54
#SetHandler x-httpd-php55
#SetHandler x-httpd-php56
#SetHandler x-httpd-php70
#</FilesMatch>

### OR

### 2. Using fcgid
### - Copy from '#Options' to '#FCGIWrapper' and
###   then remove '#' for one of '#FCGIWrapper'

#Options +ExecCGI
#<FilesMatch \.php$>
# SetHandler fcgid-script
#</FilesMatch>
#FCGIWrapper /home/kloxo/client/php.fcgi .php
#FCGIWrapper /home/kloxo/client/php52.fcgi .php
#FCGIWrapper /home/kloxo/client/php53.fcgi .php
#FCGIWrapper /home/kloxo/client/php54.fcgi .php
#FCGIWrapper /home/kloxo/client/php55.fcgi .php
#FCGIWrapper /home/kloxo/client/php56.fcgi .php
#FCGIWrapper /home/kloxo/client/php70.fcgi .php

### end content - please not remove this line

###End Kloxo PHP config Area
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 14:07:43
Hasil akhir edit .htaccess anda apa?.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 14:14:50
Hasil akhir edit .htaccess anda apa?.

ini pak
bagian atas bawaan dari cms-nya

1 . pakai suphp
Code: [Select]
## Begin Pagekit rewrite setting
# Restricted access to files
<FilesMatch "((\.(lock|cache|db))|installed.json|composer.json|package.json|bower.json|CHANGELOG.md|README.md|gulpfile.js|webpack.config.js)$">
Order allow,deny
</FilesMatch>

# Don't show directory listings
Options -Indexes

# URL rewrites
<IfModule mod_rewrite.c>

Options -MultiViews

RewriteEngine On

# Set base if your site is running in a VirtualDocumentRoot
# RewriteBase /

# Redirect requests to access the site with the 'www.' prefix
# RewriteCond %{HTTP_HOST} .
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Redirect requests to access the site without the 'www.' prefix
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

# Redirect requests to access the site with HTTPS
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

# Rewrite request to use the index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

<IfModule mod_headers.c>
RequestHeader set MOD_REWRITE "On"
</IfModule>

</IfModule>

# Redirect admin URL, if rewrite is not enabled
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>

RedirectMatch (.*)(?<!index.php)\/admin$ $1/index.php/admin

</IfModule>
</IfModule>

# Media types
<IfModule mod_mime.c>

AddType image/svg+xml svg svgz

<IfModule mod_deflate.c>
AddEncoding gzip svgz
</IfModule>

</IfModule>

# Avoid PHP 5.6 deprecated $HTTP_RAW_POST_DATA warnings
<IfModule mod_php5.c>
php_value always_populate_raw_post_data -1
</IfModule>

## End of Pagekit rewrite setting

<FilesMatch \.php$>
SetHandler x-httpd-php70
</FilesMatch>


2 . pakai fcgi
Code: [Select]
## Begin Pagekit rewrite setting
# Restricted access to files
<FilesMatch "((\.(lock|cache|db))|installed.json|composer.json|package.json|bower.json|CHANGELOG.md|README.md|gulpfile.js|webpack.config.js)$">
Order allow,deny
</FilesMatch>

# Don't show directory listings
Options -Indexes

# URL rewrites
<IfModule mod_rewrite.c>

Options -MultiViews

RewriteEngine On

# Set base if your site is running in a VirtualDocumentRoot
# RewriteBase /

# Redirect requests to access the site with the 'www.' prefix
# RewriteCond %{HTTP_HOST} .
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Redirect requests to access the site without the 'www.' prefix
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
# RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

# Redirect requests to access the site with HTTPS
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

# Rewrite request to use the index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

<IfModule mod_headers.c>
RequestHeader set MOD_REWRITE "On"
</IfModule>

</IfModule>

# Redirect admin URL, if rewrite is not enabled
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>

RedirectMatch (.*)(?<!index.php)\/admin$ $1/index.php/admin

</IfModule>
</IfModule>

# Media types
<IfModule mod_mime.c>

AddType image/svg+xml svg svgz

<IfModule mod_deflate.c>
AddEncoding gzip svgz
</IfModule>

</IfModule>

# Avoid PHP 5.6 deprecated $HTTP_RAW_POST_DATA warnings
<IfModule mod_php5.c>
php_value always_populate_raw_post_data -1
</IfModule>

## End of Pagekit rewrite setting

Options +ExecCGI
<FilesMatch \.php$>
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /home/kloxo/client/php70.fcgi .php

Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 14:29:05
Coba tanpa code dari Pagekit dulu. Artinya anda pakai clean .htaccess yang hanya ada code untuk enable suphp atau fcgid.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 14:39:44
Coba tanpa code dari Pagekit dulu. Artinya anda pakai clean .htaccess yang hanya ada code untuk enable suphp atau fcgid.

masih sama pak
- pakai suphp yg tampil di browser isi file php-nya (tidak dieksekusi)
- pakai fcgid muncul error 500
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 14:49:01
Infokan 'yum list installed httpd* mod*; dir -l /etc/httpd/conf.d; sh /script/sysinfo'.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 14:55:00
Infokan 'yum list installed httpd* mod*; dir -l /etc/httpd/conf.d; sh /script/sysinfo'.

ini pak

1. yum list installed httpd* mod*
Code: [Select]
[root@ibnhaytham /]# yum list installed httpd* mod*
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: ftp.jaist.ac.jp
 * extras: ftp.jaist.ac.jp
 * mratwork-epel: mirror.wanxp.id
 * mratwork-ius-stable: syd.mirror.rackspace.com
 * mratwork-webtatic: sp.repo.webtatic.com
 * updates: ftp.jaist.ac.jp
0 packages excluded due to repository protections
Installed Packages
httpd24u.i686                                                            2.4.18-3.ius.el6                                                 @mratwork-ius-stable
httpd24u-filesystem.noarch                                               2.4.18-3.ius.el6                                                 @mratwork-ius-stable
httpd24u-tools.i686                                                      2.4.18-3.ius.el6                                                 @mratwork-ius-stable
mod24u_fastcgi.i686                                                      2.4.7-4.mr.el6                                                   @mratwork-release-version-arch
mod24u_fcgid.i686                                                        2.3.9-1.mr.el6                                                   @mratwork-release-version-arch
mod24u_ruid2.i386                                                        0.9.8-3.mr.el6                                                   @mratwork-release-version-arch
mod24u_session.i686                                                      2.4.18-3.ius.el6                                                 @mratwork-ius-stable
mod24u_ssl.i686                                                          1:2.4.18-3.ius.el6                                               @mratwork-ius-stable
mod24u_suphp.i386                                                        0.7.2-3.mr.el6                                                   @mratwork-release-version-arch
module-init-tools.i686                                                   3.9-25.el6                                                       @base

2. dir -l /etc/httpd/conf.d
Code: [Select]
[root@ibnhaytham /]# dir -l /etc/httpd/conf.d
total 92
-rw-r--r-- 1 root root 2893 Feb  6 04:38 autoindex.conf
-rw-r--r-- 1 root root   78 Mar 16 20:56 define.conf
-rw-r--r-- 1 root root  256 Mar 16 20:56 fastcgi.conf
-rw-r--r-- 1 root root  256 Mar 16 18:39 fastcgi.conf.rpmsave
-rw-r--r-- 1 root root  111 Mar 16 20:56 fcgid.conf
-rw-r--r-- 1 root root  111 Mar 16 18:39 fcgid.conf.rpmsave
-rw-r--r-- 1 root root  111 Mar 16 20:56 _inactive_.conf
-rw-r--r-- 1 root root 1961 Mar 16 18:39 ~lxcenter.conf
-rw-r--r-- 1 root root  110 Mar 16 20:56 perl.conf
-rw-r--r-- 1 root root  111 Mar 16 20:56 php.conf
-rw-r--r-- 1 root root 1316 Feb  4 22:34 php.conf.rpmnew
-rw-r--r-- 1 root root  111 Mar 16 18:46 php.conf.rpmsave
-rw-r--r-- 1 root root  366 Feb  6 04:39 README
-rw-r--r-- 1 root root  526 Mar 16 20:56 rpaf.conf
-rw-r--r-- 1 root root  111 Mar 16 20:56 ruid2.conf
-rw-r--r-- 1 root root  867 Mar 16 20:56 ssl.conf
-rw-r--r-- 1 root root  867 Mar 16 18:39 ssl.conf.rpmsave
-rw-r--r-- 1 root root  111 Mar 16 20:56 suphp.conf
-rw-r--r-- 1 root root  111 Mar 16 18:39 suphp.conf.rpmsave
-rw-r--r-- 1 root root 1252 Jan  3  2015 userdir.conf
-rw-r--r-- 1 root root  121 Mar 16 20:56 __version.conf
-rw-r--r-- 1 root root  352 Apr 25  2012 webalizer.conf
-rw-r--r-- 1 root root  516 Jan  3  2015 welcome.conf

3. sh /script/sysinfo
Code: [Select]
[root@ibnhaytham /]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016030202
   - Web: hiawatha-10.1.0-f.6.mr.el6.i686
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) i686
   - Hostname: ibnhaytham.satriyowibowo.my.id
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.i686
   2. PHP:
      - Branch: php56u-cli-5.6.18-1.ius.el6.i686
      - Multiple:
        * php52m-5.2.17-102.mr.el6
        * php53m-5.3.29-1.ius.el6
        * php54m-5.4.45-1.ius.el6
        * php55m-5.5.32-1.ius.el6
        * php56m-5.6.18-1.ius.el6
        * php70m-7.0.3-1.w6
      - Used: php56m
   3. Web Used: nginxproxy
     - Hiawatha: --unused--
     - Lighttpd: --uninstalled--
     - Nginx: nginx-1.9.12-1.el6.ngx.i386
     - Httpd: httpd24u-2.4.18-3.ius.el6.i686
       - PHP Type: php-fpm_event
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.7-3.el6.i686
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.i386
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.18.mr.el6.i386
      - spam: spamassassin
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           498        449         49         27         47        232
   -/+ buffers/cache:        169        329
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        20G  2.9G   16G  16% /


*** Process Time: 00:00:00:05.5252 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 15:46:05
Apa anda sudah pastikan 'Enable Multiple PHP As Secondary PHP' sudah di-tick (selected) di 'webserver configure'?.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 16:02:21
Apa anda sudah pastikan 'Enable Multiple PHP As Secondary PHP' sudah di-tick (selected) di 'webserver configure'?.

1. di admin > server > localhost > PHP Configure sudah saya tick Multiple PHP Enable
2. di admin > server > localhost > Webserver Configure juga sudah saya tick Enable Multiple PHP As Secondary PHP

barusan saya coba reboot dan 'sh /script/fix-all'  'sh /script/upcp'

hasilnya

- pake suphp = error 500
- pake fcgid = masalah di write permission, sama seperti pakai fcgid_event di PHP type
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 16:06:14
Masalahnya, saya tidak lihat ada file suphp2.conf dan fcgid2.conf di /etc/httpd/conf.d.

Coba lakukan untick dan kemudian tick kembali 'Enable Multiple PHP as Secondary PHP'.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 16:17:26
Masalahnya, saya tidak lihat ada file suphp2.conf dan fcgid2.conf di /etc/httpd/conf.d.

Coba lakukan untick dan kemudian tick kembali 'Enable Multiple PHP as Secondary PHP'.

barusan saya coba untick - re-tick lagi di Webserver Config dan PHP Configure
sempat loading agak lama, dan cek di htop usage cpu 100% dan usage ram 300MB-an selama beberapa saat sampai halaman Webserver Config selesai load

hasil dari dir -l /etc/httpd/conf.d

Code: [Select]
[root@ibnhaytham /]# dir -l /etc/httpd/conf.d
total 244
-rw-r--r-- 1 root root   2893 Feb  6 04:38 autoindex.conf
-rw-r--r-- 1 root root     78 Mar 16 22:26 define.conf
-rw-r--r-- 1 root root    256 Mar 16 22:26 fastcgi.conf
-rw-r--r-- 1 root root    256 Mar 16 18:39 fastcgi.conf.rpmsave
-rw-r--r-- 1 root root    579 Mar 16 22:16 fcgid2.conf
-rw-r--r-- 1 root root    111 Mar 16 22:26 fcgid.conf
-rw-r--r-- 1 root root    111 Mar 16 18:39 fcgid.conf.rpmsave
-rw-r--r-- 1 root root    111 Mar 16 22:26 _inactive_.conf
-rw-r--r-- 1 root root    111 Mar 16 22:16 itk.conf
-rw-r--r-- 1 root root   1961 Mar 16 18:39 ~lxcenter.conf
-rw-r--r-- 1 root root  17217 Mar 16 22:04 pagespeed.conf
-rw-r--r-- 1 root root 120982 Feb  2 01:15 pagespeed_libraries.conf
-rw-r--r-- 1 root root    110 Mar 16 22:26 perl.conf
-rw-r--r-- 1 root root    111 Mar 16 22:26 php.conf
-rw-r--r-- 1 root root   1316 Feb  4 22:34 php.conf.rpmnew
-rw-r--r-- 1 root root    111 Mar 16 18:46 php.conf.rpmsave
-rw-r--r-- 1 root root    366 Feb  6 04:39 README
-rw-r--r-- 1 root root    526 Mar 16 22:26 rpaf.conf
-rw-r--r-- 1 root root    111 Mar 16 22:26 ruid2.conf
-rw-r--r-- 1 root root    867 Mar 16 22:26 ssl.conf
-rw-r--r-- 1 root root    867 Mar 16 18:39 ssl.conf.rpmsave
-rw-r--r-- 1 root root    521 Mar 16 22:16 suphp2.conf
-rw-r--r-- 1 root root    111 Mar 16 22:26 suphp.conf
-rw-r--r-- 1 root root    111 Mar 16 18:39 suphp.conf.rpmsave
-rw-r--r-- 1 root root   1252 Jan  3  2015 userdir.conf
-rw-r--r-- 1 root root    121 Mar 16 22:26 __version.conf
-rw-r--r-- 1 root root    352 Apr 25  2012 webalizer.conf
-rw-r--r-- 1 root root    516 Jan  3  2015 welcome.conf

coba oprek htaccess lagi hasilnya masih seperti posting sebelumnya
- pake suphp = error 500
- pake fcgid = masalah di write permission, sama seperti pakai fcgid_event di PHP type
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 16:25:13
Sudah coba 'sh /script/fix-chownchmod'?. Suphp sangat peka dengan permissions.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 16:30:28
Sudah coba 'sh /script/fix-chownchmod'?. Suphp sangat peka dengan permissions.

pake suphp bisa pake setelah fix-chownchmod
untuk yg fcgid bagaimana pak?

apa ada perbedaan multiple-php antara pake suphp dengan fcgid?
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 16:39:28
Untuk fcgid, directory yang ditulis harus diset pakai apache:apache. Misalnya '/home/user1/domain1.com/wp-content/cache' dimana directory cache ada penulisan oleh wordpress maka directory ini diset jadi apache:apache.
Title: Re: Write Permission KloxoMR
Post by: zenkul on 2016-03-16, 16:51:03
@wibowo
bagaimana dengan php-fpm

BTW user di beberapa panel tetangga pada ribut ingin php-fpm
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 17:03:20
Untuk fcgid, directory yang ditulis harus diset pakai apache:apache. Misalnya '/home/user1/domain1.com/wp-content/cache' dimana directory cache ada penulisan oleh wordpress maka directory ini diset jadi apache:apache.

waduh
berarti gak bisa oprek2 lewat ftp pak kalo harus diganti jadi apache:apache

kekurangan suphp sendiri untuk multiple-php gimana pak?
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 17:04:55
Jika pilih 'fcgid' pada 'php type' dan kemudian aktifkan 'fcgid' di .htaccess jelas akan bermasalah (tidak ada error tapi php tetap pakai yang dari 'php type').

Idealnya, 'php type' pakai 'php-fpm' dan .htaccess pakai 'fcgid'.
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 17:05:47
Suphp cenderung lambat daripada fcgid atau php-fpm.
Title: Re: Write Permission KloxoMR
Post by: MRatWork on 2016-03-16, 17:09:50
Untuk fcgid, directory yang ditulis harus diset pakai apache:apache. Misalnya '/home/user1/domain1.com/wp-content/cache' dimana directory cache ada penulisan oleh wordpress maka directory ini diset jadi apache:apache.

waduh
berarti gak bisa oprek2 lewat ftp pak kalo harus diganti jadi apache:apache

kekurangan suphp sendiri untuk multiple-php gimana pak?
Ya tidak masalah pakai ftp karena hanya directory tertentu saja yang di apache:apache. Directory lain tetap sebagaimana diatur oleh fix-chownchmod.
Title: Re: Write Permission KloxoMR
Post by: Wibowo on 2016-03-16, 18:08:43
Suphp cenderung lambat daripada fcgid atau php-fpm.

sip deh pak
berarti tinggal 'ngakalin' konten aja
teknis bisa dibilang sudah beres

@wibowo
bagaimana dengan php-fpm

BTW user di beberapa panel tetangga pada ribut ingin php-fpm
kalo php type pake php-fpm, write udah beres mas masalah write nya
sekarang lagi oprek multiple-php nya