Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 07:59:01

Author Topic: Write Permission KloxoMR  (Read 10601 times)

0 Members and 1 Guest are viewing this topic.

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Write Permission KloxoMR
« 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'
« Last Edit: 2016-03-16, 08:54:05 by Wibowo »

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Write Permission KloxoMR
« Reply #1 on: 2016-03-16, 10:44:48 »
infokan "sh /script/sysinfo"
supaya mudah diagnosis

BTW apakah karena apache 24
easy, secure and speed up web panel ===> Kloxo-MR

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Write Permission KloxoMR
« Reply #2 on: 2016-03-16, 11:02:50 »
sambil nunggu @MRatWork

mungkin bisa test dengan "hiawatha"

fix ownership+permission
easy, secure and speed up web panel ===> Kloxo-MR

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: Write Permission KloxoMR
« Reply #3 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
easy, secure and speed up web panel ===> Kloxo-MR

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #4 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Write Permission KloxoMR
« Reply #5 on: 2016-03-16, 12:11:24 »
Bisa jadi karena pakai fcgid_event dan bukan php-fpm_event.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #6 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?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Write Permission KloxoMR
« Reply #7 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #8 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
« Last Edit: 2016-03-16, 14:06:34 by Wibowo »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Write Permission KloxoMR
« Reply #9 on: 2016-03-16, 14:07:43 »
Hasil akhir edit .htaccess anda apa?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #10 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


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Write Permission KloxoMR
« Reply #11 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #12 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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Write Permission KloxoMR
« Reply #13 on: 2016-03-16, 14:49:01 »
Infokan 'yum list installed httpd* mod*; dir -l /etc/httpd/conf.d; sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Wibowo

  • Master
  • **
  • Posts: 391
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: Write Permission KloxoMR
« Reply #14 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)

« Last Edit: 2016-03-16, 14:56:50 by Wibowo »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.028 seconds with 18 queries.

web stats analysis