Page 1 of 1

Stripped and symlinked php binaries

Posted: Wed Mar 12, 2014 9:48 am
by mconstable
I hope this is the right section to post about this low priority issue. I was wondering why a du of /usr/local/vesta was so large and noticed the 2 binaries in /usr/local/vesta/php/sbin were not stripped and both binaries were exactly the same size so I stripped them and symlinked one to the other and so far the control panel is still working.

Before...

Code: Select all

~ /usr/local/vesta ll php/sbin
total 51968
-rwxr-xr-x 1 root root 26605030 Dec 28 01:57 php-fpm*
-rwxr-xr-x 1 root root 26605030 Dec 28 01:57 vesta-php*
After...

Code: Select all

~ /usr/local/vesta ll php/sbin
total 7716
-rwxr-xr-x 1 root root 7898120 Mar 12 19:41 php-fpm*
lrwxrwxrwx 1 root root       7 Mar 12 19:44 vesta-php -> php-fpm*

Re: Stripped and symlinked php binaries

Posted: Wed Mar 12, 2014 2:23 pm
by mconstable
After stripping and symlinking some binaries in nginx/sbin, php/bin and php/sbin my /usr/local/vesta size went from 128Mb to 37Mb which, to me, is still too large for a few 1000 docker containers but certainly better than what it was by default.

Re: Stripped and symlinked php binaries

Posted: Wed Feb 14, 2018 6:46 am
by skurudo
Closed due inactivity.