peterpijpelink
Forum Replies Created
-
that solved it for me. thanks!
it is solved.
1. disaple PHP safe_mode for this domain in Plesk (CentOS)
2. copy the 3 binaries in a safe directory, which is OUTSIDE of the web site (security recommendation by the plugin programmer!) – I chose /var/www/vhosts/domain.com/bin
3. modify the php variable open_basedir in the vhost.conf file by adding the path to the directory chosen in 2.
4. Add the correct path in WordPress
5. restart Apache to take over the changes?? thankS!
I will ask them, I did a checkup using W3 cache and it says safe mode is on.
Server Modules & Resources:
Plugin Version: 0.9.2.4
PHP Version: 5.2.17 (PHP5 required for Minify, Rackspace CloudFiles, Microsoft Azure support)
Web Server: Apache
FTP functions: Installed (required for Self-hosted (FTP) CDN support)
Multibyte String support: Installed (required for Rackspace Cloud Files support)
cURL extension: Installed (required for Amazon S3, Amazon CloudFront, Rackspace CloudFiles support)
zlib extension: Installed (required for compression support)
Opcode cache: Installed (APC)
Memcache extension: Installed
HTML Tidy extension: Not installed (required for HTML Tidy minifier suppport)
Mime type detection: Not installed (required for CDN support)
Hash function: Installed (hash) (required for NetDNA purge support)
Safe mode: On
Open basedir: On: /var/www/vhosts/plcs.eu/httpdocs:/tmp
zlib output compression: Offso maybe Open basedir will help, but yea as you said, I doubt we get this working with safe mode on, we do insist on using safe mode on as it is more secure.
Yes safe mode is on and must stay on. I asked our hoster and they look at the other option monday,
” most probably the open_basedir restrictions that block you from using this. open_basedir restricts access of the php script to files only in the web directories.”
I keep you updated.
I made a call at their support desk. Keep you updated. thanks so far for your excellent support!
I am not allowed to su to apache…
[root@ns1 /]# su apache
This account is currently not available.[root@ns1 /]# su – apache
This account is currently not available.However if I su to another user (my co-worker for example)
[root@ns1 /]# su remco
[remco@ns1 /]$ optipng -v
OptiPNG version 0.7.1
Copyright (C) 2001-2012 Cosmin Truta and the Contributing Authors.This program is open-source software. See LICENSE for more details.
Portions of this software are based in part on the work of:
Jean-loup Gailly and Mark Adler (zlib)
Glenn Randers-Pehrson and the PNG Development Group (libpng)
Miyasaka Masaru (BMP support)
David Koblas (GIF support)Using libpng version 1.4.9 and zlib version 1.2.6-optipng
[remco@ns1 /]$top – 19:05:42 up 64 days, 9:23, 1 user, load average: 0.32, 0.48, 0.52
Tasks: 76 total, 2 running, 74 sleeping, 0 stopped, 0 zombie
Cpu(s): 18.1%us, 1.3%sy, 0.0%ni, 80.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8154972k total, 7074780k used, 1080192k free, 527444k buffers
Swap: 4192944k total, 176k used, 4192768k free, 4089852k cachedPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
21644 apache 15 0 685m 87m 6792 R 17.3 1.1 0:09.28 httpd
21714 apache 15 0 648m 58m 5452 S 16.0 0.7 0:06.34 httpdhere is the output on the top process.
Just to make sure, did a find on all 3 modules
[root@ns1 /]# find -name jpegtran
./usr/bin/jpegtran[root@ns1 /]# find -name optipng
./usr/local/bin/optipng
./var/www/vhosts/plcs.eu/httpdocs/optipng-0.7.1/src/optipng
./var/www/vhosts/plcs.eu/httpdocs/optipng-0.7.1/src/optipng/optipng[root@ns1 /]# find -name gifsicle
./usr/local/bin/gifsicle
./var/www/vhosts/plcs.eu/httpdocs/gifsicle-1.67/src/gifsicle
[root@ns1 /]#do these also need to be chmod 755 ?
[root@ns1 /]#
[root@ns1 /]# chmod 755 /usr/bin/jpegtran
[root@ns1 /]# chmod 755 /usr/local/bin/gifsicle
[root@ns1 /]# chmod 755 /usr/local/bin/optipng
[root@ns1 /]# ls -l /usr/bin/jpegtran
-rwxr-xr-x 1 root root 22280 Jul 7 18:53 /usr/bin/jpegtran
[root@ns1 /]# ls -l /usr/local/bin/optipng
-rwxr-xr-x 1 root root 210056 Jul 7 17:13 /usr/local/bin/optipng
[root@ns1 /]# ls -l /usr/local/bin/gifsicle
-rwxr-xr-x 1 root root 419208 Jul 7 17:15 /usr/local/bin/gifsicle
[root@ns1 /]#checked again, they are all chmod 755 now.
Same thing, as soon as I enter the paths or without the paths and leave the box unchecked it does not work.
media library says: Unsupported file type
optipng is missingdo you like to see what happens with a team viewer session on my machine?
here is the output
[root@ns1 /]# ls -l /usr/local/bin/optipng
-rwxrwxrwx 1 root root 210056 Jul 7 17:13 /usr/local/bin/optipnghums what about the owner of the files? Can apache access them even it says root root ?
[root@ns1 /]# ls -l /usr/local/bin/gifsicle
-rwxr-xr-x 1 root root 419208 Jul 7 17:15 /usr/local/bin/gifsicle[root@ns1 /]# ls -l /usr/bin/jpegtran
-rwxr-xr-x 1 root root 22280 Jan 6 2007 /usr/bin/jpegtran
[root@ns1 /]#so optipng should work when I try pure a .png file?
Okay did as you asked, do paths in the settings and disable the check, did some images re-optimize and no savings it says. I tried all the modules on a ssh session (as user root) and they work fine, mostly –help or /? gives output for all 3.
Hello ! wow you are a good guy ?? quick very quick response.
here is the output:
[root@ns1 /]# which optipng
/usr/local/bin/optipng[[root@ns1 /]# which /usr/local/bin/optipng
/usr/local/bin/optipngLooks like it is the same one they use ??
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] found a bug…I found some more evidence, after I installed the Event Manager plugin, it seems that a category ID is not shown. When I disable this plugin all works fine. Obvious the guys at EM point at you guys… Well clearly something is conflicting here. Hope you can take a look at this.
thanks