{"id":5597,"date":"2019-08-06T10:16:32","date_gmt":"2019-08-06T10:16:32","guid":{"rendered":"https:\/\/irancld.com\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%86%d8%b5%d8%a8-php-7-%d8%a8%d8%b1-%d8%b1%d9%88%db%8c-centos\/"},"modified":"2024-03-14T12:24:40","modified_gmt":"2024-03-14T13:24:40","slug":"%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%86%d8%b5%d8%a8-php-7-%d8%a8%d8%b1%d8%b1%d9%88%db%8c-centos","status":"publish","type":"post","link":"https:\/\/www.novinhost.org\/%d8%a2%d9%85%d9%88%d8%b2%d8%b4-%d9%86%d8%b5%d8%a8-php-7-%d8%a8%d8%b1%d8%b1%d9%88%db%8c-centos\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Php 7 \u0628\u0631 \u0631\u0648\u06cc Centos"},"content":{"rendered":"
\u0633\u0627\u062e\u062a\u0646 php \u0627\u0632 \u0645\u0646\u0628\u0639 \u0628\u0633\u06cc\u0627\u0631 \u0622\u0633\u0627\u0646 \u0627\u0633\u062a \u0648 \u0627\u06cc\u0646 \u0628\u0627\u0639\u062b \u0627\u0641\u0632\u0627\u06cc\u0634 \u0686\u0634\u0645\u06af\u06cc\u0631 \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0648 \u062b\u0628\u0627\u062a \u062e\u0648\u0627\u0647\u062f \u0634\u062f. \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a\u0646 \u0627\u0632 \u0645\u0628\u062f\u0623 \u0628\u0627\u06cc\u062f \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 php \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0628\u0631\u0633\u06cc\u062f. \u0646\u0635\u0628 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 php \u062f\u0631 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc Lamp \u0648 Lemp \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a .<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
yum -y install gcc make gcc-c++ cpp kernel-headers.x86_64 libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel icu libicu libicu-devel gmp-devel curl-devel libmcrypt-devel pcre-devel sqlite-devel db4-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel libtool-ltdl-devel<\/p>\n
<\/p>\n
<\/p>\n
rm -rf \/usr\/local\/php-5-6<\/p>\n
mkdir -p \/usr\/local\/php-5-6<\/p>\n
cd \/usr\/local\/php-5-6<\/p>\n
wget http:\/\/php.net\/distributions\/php-5.6.40.tar.gz<\/p>\n
tar zxvf php-5.6.40.tar.gz<\/p>\n
cd php-5.6.40<\/p>\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib –enable-soap –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –with-pspell –enable-wddx –with-tidy –enable-exif –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-kerberos –with-bz2 –enable-sockets –enable-zip –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-native-ttf –with-pcre-regex –with-libdir=lib64 –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql<\/p>\n
make && make install<\/p>\n
<\/p>\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib=\/usr –enable-mbstring –enable-zip –enable-bcmath –enable-pcntl –enable-ftp –enable-exif –enable-calendar –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –with-tidy –with-curl –with-mcrypt –with-iconv –with-gmp –with-pspell –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-native-ttf –enable-gd-jis-conv –with-zlib-dir=\/usr –with-xpm-dir=\/usr –with-openssl –with-pdo-mysql=\/usr –with-gettext=\/usr –with-bz2=\/usr –with-mysqli –enable-soap –enable-phar –with-xsl –with-xmlrpc –with-kerberos –enable-posix –enable-sockets –with-pcre-regex –with-libdir=lib64 –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql –enable-fpm<\/p>\n
make && make install<\/p>\n
<\/p>\n
rm -rf \/usr\/local\/php-7-1<\/p>\n
mkdir -p \/usr\/local\/php-7-1<\/p>\n
cd \/usr\/local\/php-7-1<\/p>\n
wget http:\/\/php.net\/distributions\/php-7.1.30.tar.gz<\/p>\n
tar zxvf php-7.1.30.tar.gz<\/p>\n
cd php-7.1.30<\/p>\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib=\/usr –enable-mbstring –enable-zip –enable-bcmath –enable-pcntl –enable-ftp –enable-exif –enable-calendar –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –with-tidy –with-curl –with-mcrypt –with-iconv –with-gmp –with-pspell –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-native-ttf –enable-gd-jis-conv –with-zlib-dir=\/usr –with-xpm-dir=\/usr –with-openssl –with-pdo-mysql=\/usr –with-gettext=\/usr –with-bz2=\/usr –with-mysqli –enable-soap –enable-phar –with-xsl –with-xmlrpc –with-kerberos –enable-posix –enable-sockets –with-pcre-regex –with-libdir=lib64 –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql<\/p>\n
make && make install<\/p>\n
<\/p>\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib=\/usr –enable-mbstring –enable-zip –enable-bcmath –enable-pcntl –enable-ftp –enable-exif –enable-calendar –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –with-tidy –with-curl –with-mcrypt –with-iconv –with-gmp –with-pspell –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-native-ttf –enable-gd-jis-conv –with-zlib-dir=\/usr –with-xpm-dir=\/usr –with-openssl –with-pdo-mysql=\/usr –with-gettext=\/usr –with-bz2=\/usr –with-mysqli –enable-soap –enable-phar –with-xsl –with-xmlrpc –with-kerberos –enable-posix –enable-sockets –with-pcre-regex –with-libdir=lib64 –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql –enable-fpm<\/p>\n
make && make install<\/p>\n
<\/p>\n
rm -rf \/usr\/local\/php-7-2<\/p>\n
mkdir -p \/usr\/local\/php-7-2<\/p>\n
cd \/usr\/local\/php-7-2<\/p>\n
wget http:\/\/php.net\/distributions\/php-7.2.19.tar.gz<\/p>\n
tar zxvf php-7.2.19.tar.gz<\/p>\n
cd php-7.2.19<\/p>\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib=\/usr –enable-mbstring –enable-zip –enable-bcmath –enable-pcntl –enable-ftp –enable-exif –enable-calendar –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –with-tidy –with-curl –with-iconv –with-gmp –with-pspell –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-jis-conv –with-zlib-dir=\/usr –with-xpm-dir=\/usr –with-openssl –with-pdo-mysql=\/usr –with-gettext=\/usr –with-bz2=\/usr –with-mysqli –enable-soap –enable-phar –with-xsl –with-xmlrpc –with-kerberos –enable-posix –enable-sockets –with-pcre-regex –with-libdir=lib64 –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql<\/p>\n
<\/p>\n
make && make install<\/p>\n
\n
.\/configure –with-config-file-path=\/usr\/local\/php –with-config-file-scan-dir=\/usr\/local\/php\/php.d –with-zlib=\/usr –enable-mbstring –enable-zip –enable-bcmath –enable-pcntl –enable-ftp –enable-exif –enable-calendar –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-wddx –with-tidy –with-curl –with-iconv –with-gmp –with-pspell –with-gd –with-jpeg-dir=\/usr –with-freetype-dir=\/usr –with-png-dir=\/usr –enable-gd-jis-conv –with-zlib-dir=\/usr –with-xpm-dir=\/usr –with-openssl –with-pdo-mysql=\/usr –with-gettext=\/usr –with-bz2=\/usr –with-mysqli –enable-soap –enable-phar –with-xsl –with-xmlrpc –with-kerberos –enable-posix –enable-sockets –with-pcre-regex –with-libdir=lib64 –with-mysql-sock=\/var\/lib\/mysql\/mysql.sock –enable-shmop –enable-intl –with-icu-dir=\/usr –with-imap –with-imap-ssl –with-litespeed –with-pgsql=\/usr\/lib64\/pgsql –with-pdo-pgsql –enable-fpm<\/p>\n
make && make install<\/p>\n
<\/p>\n
\u0633\u0631\u0648\u0631 apache \u0631\u0627 \u0645\u062c\u062f\u062f\u0627\u064b \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0646\u0633\u062e\u0647 php \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f .<\/p>\n
service httpd restart<\/p>\n
\n
php -v<\/p>\n
<\/p>\n
\u0646\u0648\u06cc\u0646 \u0647\u0627\u0633\u062a \u0627\u0631\u0627\u0626\u0647 \u062f\u0647\u0646\u062f\u0647 \u0627\u0646\u0648\u0627\u0639 \u062e\u062f\u0645\u0627\u062a \u0647\u0627\u0633\u062a<\/a> , \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc<\/a> , \u0633\u0631\u0648\u0631 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc , \u0633\u0631\u0648\u0631 \u0627\u0628\u0631\u06cc \u0648 …. \u062f\u0631 \u06a9\u0634\u0648\u0631 \u0628\u0627 \u0628\u0647\u062a\u0631\u06cc\u0646 \u06a9\u06cc\u0641\u06cc\u062a \u0648 \u062e\u062f\u0645\u0627\u062a \u067e\u0633 \u0627\u0632 \u0641\u0631\u0648\u0634 .<\/p>\n \u0633\u0627\u062e\u062a\u0646 php \u0627\u0632 \u0645\u0646\u0628\u0639 \u0628\u0633\u06cc\u0627\u0631 \u0622\u0633\u0627\u0646 \u0627\u0633\u062a \u0648 \u0627\u06cc\u0646 \u0628\u0627\u0639\u062b \u0627\u0641\u0632\u0627\u06cc\u0634 \u0686\u0634\u0645\u06af\u06cc\u0631 \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0648 \u062b\u0628\u0627\u062a \u062e\u0648\u0627\u0647\u062f \u0634\u062f. \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a\u0646 \u0627\u0632 \u0645\u0628\u062f\u0623 \u0628\u0627\u06cc\u062f \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 php \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0628\u0631\u0633\u06cc\u062f. \u0646\u0635\u0628 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 php \u062f\u0631 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc Lamp \u0648 Lemp \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0642\u062f\u0627\u0645\u0627\u062a … \u0627\u062f\u0627\u0645\u0647 \u0645\u0637\u0644\u0628<\/a><\/p>\n","protected":false},"author":7,"featured_media":5596,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[20],"tags":[],"acf":[],"yoast_head":"\nrm -rf \/usr\/local\/php-5-6\n mkdir -p \/usr\/local\/php-5-6 cd \/usr\/local\/php-5-6 wget http:\/\/php.net\/distributions\/php-5.6.40.tar.gz tar zxvf php-5.6.40.tar.gz cd php-5.6.40 .\/configure --with-config-file-path=\/usr\/local\/php --with-config-file-scan-dir=\/usr\/local\/php\/php.d --with-zlib --enable-soap --with-mysql-sock=\/var\/lib\/mysql\/mysql.sock --with-pspell --enable-wddx --with-tidy --enable-exif --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-kerberos --with-bz2 --enable-sockets --enable-zip --with-gd --with-jpeg-dir=\/usr --with-freetype-dir=\/usr --with-png-dir=\/usr --enable-gd-native-ttf --with-pcre-regex --with-libdir=lib64 --enable-shmop --enable-intl --with-icu-dir=\/usr --with-imap --with-imap-ssl --with-litespeed --with-pgsql=\/usr\/lib64\/pgsql --with-pdo-pgsql make && make install<\/pre>\n","protected":false},"excerpt":{"rendered":"