Gd Library is required for images supported by php
Because the operating system comes with the gd png jpeg library, you cannot specify the dir to use the format -- with-jpeg.
2. the following error occurs during make install:
Installing php sapi module: apache2handler
/Usr/share/apache2/build/instdso. sh SH_LIBTOOL = '/usr/share/apr-1.0/build/libtool 'libphp5.la/usr/lib/apache2/modules
/Usr/share/apr-1.0/build/libtool -- mode = install cp libphp5.la/usr/lib/apache2/modules/
Libtool: install: cp. libs/libphp5.so/usr/lib/apache2/modules/libphp5.so
Libtool: install: cp. libs/libphp5.lai/usr/lib/apache2/modules/libphp5.la
Libtool: install: warning: remember to run 'libtool -- finish/home/SCC/php-5.2.13/Libs'
Chmod 644/usr/lib/apache2/modules/libphp5.so
Apxs: Error: Activation failed for custom/etc/apache2/httpd. conf file ..
Apxs: Error: At least one 'loadmodule' directive already has to exist ..
Make: *** [install-sapi] Error 1
In fact, httpd. conf already exists. I don't know why the above error occurs. I used the following method to back up httpd. conf first.
Then create another httpd. conf
Content
# LoadModule directive to aid module installations
# LoadModule dummy_module/usr/lib/apache2/modules/mod_dummy.so
In this way, the installation is successful.
3. after php is installed, it is found that php does not support jpeg, but -- with-jpeg has been added in the above configuration process, and libjpeg rpm is also installed, but it is always not supported, so you have to reinstall the jpeg Library
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.