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, 20:55:36

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mehawk

Pages: 1 [2] 3 4 5
16
Kloxo-MR Technical Helps / Re: How to disable open_basedir
« on: 2018-02-06, 10:58:37 »
Hello,

First of all you must know the risk. Disabling open_basedir is highly discouraged because its implement to stop scripts from accessing directories out side execution location. In simple words it makes your server highly vulnerable.

This post is made to disable for a client / user when server is using php-fpm:

Go to  /opt/configs/php-fpm/tpl

Copy the contents of " php53-fpm-pool.conf.tpl ".

Create a new file with the name of " custom.php53-fpm-pool.conf.tpl ".


Paste the contents of " php53-fpm-pool.conf.tpl " in " custom.php53-fpm-pool.conf.tpl " and save the file.

Now we have created custom template of php53-fpm we need to modify custom.php53-fpm53-fpm-pool.conf.tpl.

Open in edit mode "custom.php53-fpm53-fpm-pool.conf.tpl".

Find following code:

Code: [Select]
if ($user === 'apache') {
// MR -- for future purpose, apache user have uid 50000
$fpmport = 50000;
$openbasedir = "/home/:/tmp/:/usr/share/pear/:/var/lib/php/session/";
} else {
$userinfo = posix_getpwnam($user);
$fpmport = (50000 + $userinfo['uid']);
$openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:{$extrabasedir}";
}

Replace above mentioned code with:
Code: [Select]
if ($user === 'apache') {
// MR -- for future purpose, apache user have uid 50000
$fpmport = 50000;
$openbasedir = "/home/:/tmp/:/usr/share/pear/:/var/lib/php/session/";
} else {
$userinfo = posix_getpwnam($user);
$fpmport = (50000 + $userinfo['uid']);
                if ($user === 'username_which_wants_basedir_disabled'){ $openbasedir = "none"; }
                else{
$openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:{$extrabasedir}";}
}

you will replace "username_which_wants_basedir_disabled" with the username for which open_basedir is being disabled.

Now in SSH console run following commands:

Code: [Select]
sh /script/fixphp
sh /script/restart-web -y'

Now you can check phpini of that user base dir will be disabled.

Best Regards,
Mehroz Anjum

17
Kloxo-MR Technical Helps / Re: How to disable open_basedir
« on: 2018-02-06, 10:28:19 »
Please check

https://forum.mratwork.com/kloxo-mr-technical-helps/how-to-disable-open_basedir/
Actually that thread is not clear for a new user thats why i am writing the method.

18
Kloxo-MR Technical Helps / Re: How to disable open_basedir
« on: 2018-02-06, 10:27:11 »
A few hours?

Sorry I forgot to write the method. I am writing it now

19
Kloxo-MR Technical Helps / Re: How to disable open_basedir
« on: 2018-01-16, 12:49:07 »
[Update]

I successfully disabled the open_basedir for specific user. I will post the method here in few hours since many Kloxo MR users are looking to do this.

20
Hello,

Are you still getting that issue??

21
Hello Guys,

I need to disable open_basedir for one client preferably 1 domain or subdomain.

Reason:
I am trying to install a script which is giving following error:

Quote
open basedirError. open_basedir has value. Please clear value for open_basedir from php.ini

Here is the report of sh /script/sysinfo -y
Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017060801
   - Web: hiawatha-10.6.0-f.1.mr.el6.i686
   - PHP: php56s-5.6.30-2.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) i686
   - Hostname: server1.xplore.pk
C. Services:
   1. MySQL: MariaDB-server-10.0.31-1.el6.i686
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.i686
        - Multiple:
          * php54m-5.4.45-1.ius.el6
          * php55m-5.5.38-1.ius.el6
          * php56m-5.6.30-2.ius.centos6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.i686
     - Lighttpd: lighttpd-1.4.45-1.el6.i686
     - Nginx: nginx-1.13.1-1.el6.ngx.i386
     - Apache: httpd24u-2.4.25-4.ius.centos6.i686
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: bind-9.9.9-1.mr.el6.i686
     - DJBDns: djbdns-1.05-17.4.mr.el6.i386
     - NSD: nsd-4.1.16-1.el6.i686
     - PowerDNS: pdns-4.0.3-1.el6.MIND.i686
     - Yadifa: yadifa-2.2.3-1.mr.el6.i686
   6. Mail: qmail-toaster-1.03-1.3.56.mr.el6.i686
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.i686
      - smtp: qmail-toaster-1.03-1.3.56.mr.el6.i686
      - spam: bogofilter-1.2.4-1.el6.i686
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.i386
   8. Stats: awstats
      - awstats: kloxomr-stats-awstats-7.6-1.mr.noarch
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          3072       2177        894         84          0       1398
-/+ buffers/cache:        779       2292
Swap:         3072        168       2903
E. Disk Space:
Filesystem         Size  Used Avail Use% Mounted on
/dev/ploop17353p1  119G   31G   83G  27% /


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

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


22
Kloxo-MR Technical Helps / Re: The future of Kloxo-MR
« on: 2018-01-16, 09:49:25 »
Have anyone heard from Mustafa? I am really concerned about him. We should help him in any we can to continue the development of Kloxo-MR. We need to share work with him so that. For example i was thinking of making a portfolio site for Kloxo-MR to promote it and writing wiki to help out new users and we also need to secure the repository to make this project ever growing. I don't like the idea of shifting efforts towards a new fork but its only my opinion and I don't expect everyone to be agreed on that. But now I really feel Mustafa has done his part and its time we should also get to work because the way I see it Kloxo MR is a true cpanel killer. If we give time & efforts to Kloxo MR we can make truly break cpanel's market share. The road map should be to first refine Mustafa's work making every option in the panel stabls then complete its documentation enhance its API then we should work on writing integration for popular script. Remember its just a suggestion. I know you are all more experienced & wiser than me.

Best Regards,
Mehroz Anjum

23
Kloxo-MR Technical Helps / Can't get modpagespeed to work
« on: 2017-08-04, 18:53:55 »
Hello again,

I am running CentOS 6.9 on Amazon aws. I have installed KloxoMR 7 on it with apache 2.4u-2.4.27-1 enabled. The problem is i have enable modpagespeed from KloxoMR panel but modpagespeed is not working. I have double checked list of apache modules and pagespeed.conf file yet modpagespeed is not working. modpagespeed log folder is empty i have check httpd logs for possible errors but found nothing. I have attached the result of sh /script/sysinfo.

Best Regards,
Mehroz Anjum.

24
etc/hosts/ were pointing to localhost  instead of ip address..

Btw that issue was also resolved by one of my friend. I think I may have to write a tutorial on how to install Kloxo MR on amazan aws after I finish this job. Because its really complicated and KloxoMR might loose amazon aws market.

25
ok now i have another problem sudo /script/cleanup keeps returning hostname: Unknown host. Can someone please tell me how to fix this hostname problem.

hostname -f  returns: hostname: unknown host.
hostname returns: server1.mytld.com

Initially hostname was set to "core" pointing towards localhost when the instance was created.  When i started kloxo installation i got an error saying host name is invalid so i changed "core" to "server1.mytld.com" in /etc/sysconfig/network & "server1" in /etc/hosts.. After making changes installation went fine but now i am experiencing this"hostname: Unknown host" in sudo sh /script/cleanup.

26
Update: Just after posting this message the script suddenly responded..

27
Hello,

I am trying to install kloxo mr 7 on my clients vps which is an amazon aws ec2 instance. Everything goes absolutely fine but when execute " sudo sh /script/upcp" the script hangs at:

Removing:
  kernel-firmware
  procps
  selinux-policy
  selinux-policy-targeted

The VPS is running on CentOS 6. The script is running as root & selinux is disabled.

Can I get any help??

Best Regards,
Mehroz Anjum

28
Yes i believe there is a kloxo api which can help you in this..

Without api you can try to search for script in /script folder to do it manually. If you found a way to it manually then you can automate it using php. For example, you can use following bash command to add mail accounts manually.

I use the scripts in the directory /script. There is one named 'add' which I call like this:

sh /script/add --parent-class='mmail' --parent-name='DOMAIN' --class='mailaccount' --name='MAILACCOUNTNAME' --v-password='PASSWORD'

This of course requires that the domain and client records are already in kloxo.

It will depend on you what you other details you want to populate upon creation. Refer to the table 'mailaccount' under 'kloxo' database to see the column names/details.

29
thanks alot Mustafa & NginxHolic it worked my problem solved now :)

30
thanks I am running it now I hope everything remains fine

Pages: 1 [2] 3 4 5

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

Page created in 0.084 seconds with 17 queries.

web stats analysis