B
Bashed
Guest
Can't even post anything here because of an error telling me there's a "sneeky url" in my post which there isn't. How does anyone post here linux commands and paths, etc without this error message?
Last edited:
<?php
var_dump( exec('zip -r domains.zip "domains"') );
// phpinfo();
?>
~]# yum install zip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
----
Setting up Install Process
Package zip-3.0-1.el6.x86_64 already installed and latest version
Nothing to do
[root ~]# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
./configure
--prefix=/opt/alt/php54/usr
--with-zlib
--enable-soap
--enable-exif
--with-config-file-path=/opt/alt/php54/usr/php
--with-config-file-scan-dir=/opt/alt/php54/usr/php/php.d
--enable-phar
--enable-bcmath
--enable-calendar
--with-curl
--with-iconv
--with-mysql
--with-mysqli
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-mcrypt
--with-gettext
--with-xsl
--with-xmlrpc
--with-pdo-mysql=mysqlnd
--enable-posix
--enable-ftp
--with-openssl
--enable-mbstring
--with-jpeg-dir=/usr
--with-freetype-dir=/usr
--with-kerberos
--with-xsl
--with-bz2
--enable-sockets
--enable-zip
--with-gd
--with-imap
--with-imap-ssl
--enable-sockets
--with-pcre-regex
--libdir=/usr/lib64
--with-mysql-sock=/var/lib/mysql/mysql.sock
string(0) ""
string(42) "updating: domains/xxxxxx.co/ (stored 0)"
export PATH=$PATH:/usr/bin/zip
cd /usr/bin
sudo ln -s /usr/bin/zip zip
export PATH=$PATH:/usr/bin
[root ~]# file /usr/bin/zip
/usr/bin/zip: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root ~]# file /usr/sbin/zip
/usr/sbin/zip: symbolic link to `/usr/bin/zip'