In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. operating system version
[root@aws srclib]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)2. Download php installation package, in this case version 5.6.30
cd /usr/local/src
wget http://cn2.php.net/distributions/php-5.6.30.tar.gz3. Extract
tar -xzvf php-5.6.30.tar.gz4. Execute configure
cd php-5.6.30
./ configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif5. Six errors were encountered during configure, as follows:
Error 1:
configure: error: xml2-config not found. Please check your libxml2 installation.
Solution:
yum install -y libxml2-devel
Mistake 2:
configure: error: Cannot find OpenSSL's
Solution:
yum install -y openssl openssl-devel
Mistake 3:
configure: error: Please reinstall the BZip2 distribution
Solution:
yum install -y bzip2 bzip2-devel
Error 4:
configure: error: jpeglib.h not found.
Solution:
yum install -y libjpeg libjpeg-devel
Mistake 5:
configure: error: freetype-config not found.
Solution:
yum install -y freetype freetype-devel
Mistake 6:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solution:
yum install -y libmcrypt-devel where error 6, you need to install epel extension yum source, installation method is as follows:
rpm -ivh "http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm"6. After the above errors are resolved, you can compile and install
make
make install7. Last copy file
cp php.ini-production /usr/local/php/etc/php.ini
8. Test whether php is parsed correctly
The requested URL/htdocs/mytest.php was not found on this server.
9. Save the script and continue testing as follows:
[root@aws srclib]# curl localhost/mytest.php
php test OK 10. View PHP configuration file location
[root@aws srclib]# /usr/local/php/bin/php -i |grep -i "loaded configuration file"
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC Welcome to another of my articles, RedHat 7 Installation httpd
http://blog.itpub.net/20893244/viewspace-2151184/
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.