Server and Web Integrator
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2018-12-19, 10:41:30

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 - nmpribeiro

Pages: [1] 2 3 ... 5
Kloxo-MR Technical Helps / Re: Transaction Check Error
« on: 2014-12-18, 07:33:56 »
Well... I have not done much these last couple of months, but I had problem with the kernel update and choose to downgrade it (VPS issues guest-host compatibilities). So... I guess I'll backup everything and just... re-install.

Never mind it.

Kloxo-MR Technical Helps / Transaction Check Error
« on: 2014-12-18, 04:16:55 »
Hi there Mustafa,

Got the following error:

Total                                                                 1.5 MB/s |  17 MB     00:11
Running rpm_check_debug
Running Transaction Test

Transaction Check Error:
  file /usr/share/mysql/charsets/Index.xml conflicts between attempted installs of mysql55-libs-5.5.40-2.ius.el6.x86_64 and mysql56u-common-5.6.21-3.el6.x86_64

What should I exclude in /etc/yum.conf ?
exclude=mysql55-libs or mysql56u-common ?

Thanks in advance,

Kloxo-MR Technical Helps / Re: Install problem on OpenVZ
« on: 2014-12-18, 04:07:06 »
Hasn't CentALT vanished?

Kloxo-MR Technical Helps / Re: All system crashed!
« on: 2014-08-25, 11:32:46 »
My Kloxo-MR 6 to 7 upgrade didn't updated my conf.d/~lxcenter.conf Include files to reflect the change from /home/apache/conf/.... to /opt/configs/apache/conf/...

Had to change those manualy... be warned you who updated to 7! or else, do a quick checkup on those lines :)

grep -ir 'memory_limit' /etc/

/etc/php-fpm.d/admin.conf:php_admin_value[memory_limit] = 64M

Here is the culprit! Hunting in so many places for such a simple setting... :/ I guess php got only one config possible for the server, yet, some files regarding ancient per client php config were left on the server.

Please, fix that.

Incidently, changing php memory_limit in advanced php settings on kloxo UI, changes /etc/php.ini (I've put for instance 256M, and then when check it through ssh. Changed value on /etc/php.ini good.)

However, when checking phpinfo(), my memory_limit is 64M both local and master.
Configuration File (php.ini) Path:    /etc
Loaded Configuration File:          /opt/php54m/custom/php54m.ini

Changing /opt/php54m/custom/php54m.ini doesn't yield any result either.
I really need some help here.


Thanks, but if it was that simple I wouldn't be asking. Did that. No luck.

Changed in /etc/php.ini
Changed in /opt/php54m/etc/php.ini

[root@server1 ~]# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Same output with admin user on shell. That configuration file doesn't change the value. I'm in some sort of error here. Perhaps I should re-install php and replace config files :|


Can't change memory_limit from 64M

Kloxo-MR: 6.5.1.b-2014072901
PHP: php54-5.4.31-1.ius.el6.x86_64
Php-type (for Httpd/proxy): php-fpm_event

There's some bug, since I cannot change in the "advanced php conf" UI, neither in /opt/php54m.......ini nor /etc/php.ini

Kloxo-MR Technical Helps / Re: Sabredav problem with php-fpm
« on: 2014-07-08, 10:04:19 »
Hi MR,

We need to get these values in accordance:

max_execution_time = 30 /etc/php.ini
IdleTimeout = 120 /home/apache/etc/conf.d/fcgid.conf
request_terminate_timeout = 120s /etc/php-fpm.d/admin.conf

They should be max_execution_time < request_terminate_timeout < IdleTimeout

Also, this php-fpm is breaking large file uploads, giving internal server errors... It seams a server config optimization issue, but annoying nevertheless.

Also, we should be very cautious about overwriting these configurations. This php-fpm needs some work still.

I'm also guessing we should change pm=ondemand, or at least give the admin the ability to change values here without breaking php-fpm (some advanced php-fpm configuration section on kloxo-mr?)

I am very happy to help within my spare time if you want.


from phpinfo(),
user: apache
home: /var/www

so... my advice is to backup /etc/php-fpm.d/default.conf and overwrite default.conf by admin.conf. Then IP/~admin/ will behave as if it was the actual domain on a production server.

*Disclamer: Use this only for test purpose, my lack of understanding must not be in no way liable for your "lack of understanding". Read what php and php-fpm are all about in the apropriate man pages please*

One last thing,

Needed mod_rewrite to work on IP/~admin/projectX/someUrlRewrite/, having projectX/index.php to rewrite from index.php?url=someUrlRewrite into projectX/someUrlRewrite

To do so, I needed to edit /etc/httpd/conf/httpd.conf and changed "AllowOverride None" to "AllowOverride All" in "<Directory />" tag.

Hum... not quite "out of the box"...

Hi Mustafa,

Reproduced in a new clean machine, just installing kloxo-mr:

http://IP/~admin/ with an index.php only with these contents:
echo "Hello World";

Outputs "Access denied. "
I'm pretty sure php is not allowing php execution in admin folder with default setup on "default domain" option (for those that just want to test kloxo-mr on a vm...

Kloxo 6.5.0.f-2014062701  here

I see what you mean. But that means http://IP/~admin/ is being processed with php-fpm chrooted from admin user? Might have some misconfiguration in my config then. Because my php code is only trying to access from /home/admin/template.local/owncloud/index.php other scripts and files inside /home/admin/template.local/owncloud/* not outside this dir.

When I have time, I'll generate a phpinfo() from there to check if we have "/home/admin/" in open_basedir, but I'm predicting I won't be able even to process the php file with <?php phpinfo(); ?> file itself, only html's, because I only have access to open_basedir directories that are in default.conf and nothing else. Since this domain doesn't resolve any IP (it's not mine), It's hard to access it other then http://IP/~admin/ to debug it.

I have no resources to test it further. But I can provide you the VM if you want (it's just a playground VM).

After going to http://forum.mratwork.com/kloxo-mr-technical-helps/php-detection-program-can-not-get-the-memory-and-cpu-information/ reply #1 from Mustafa I was able to get this working again:

nano /etc/php-fpm.d/default.conf

and added ":/home/admin" to open_basedir restriction

Obviously, be carefull when you add stuff, since it's the wrong user. Remember to chmod -R apache:apache all once and a while. Or else, Mustafa... there must be some way to assign these as vars that could be read from php-fpm to be able to execute chrooted but also able to use and exec admin's files.

Guess it's a bug in the dev 6.5.1b

Making php  Display Errors and Log Errors, in Config php outputs a new but interesting string:

"Access denied. "

httpd/error_log now has more details:

[Wed Jul 02 23:39:27 2014] [error] [client] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: PHP message: PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/admin/template.local/owncloud/status.php) is not within the allowed path(s): (/home/kloxo/httpd/:/tmp/:/usr/share/pear/:/var/lib/php/$
[Wed Jul 02 23:39:27 2014] [error] [client] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: PHP message: PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Wed Jul 02 23:39:27 2014] [error] [client] FastCGI: server "/home/kloxo/httpd/default/default.0fake" stderr: Unable to open primary script: /home/admin/public_html/owncloud/status.php (Permission denied)

Mustafa, this one is for you... default domain obeys "open_basedir" restrictions that do not encompass the domain's dir in user folder... we need to fix this...

Pages: [1] 2 3 ... 5

Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.041 seconds with 22 queries.

web stats analysis