In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to solve the problem that the phpcms background CAPTCHA does not display in linux? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Website environment:
Linux CentOS
Php5.2.10
Apache 2.2.11
Zend Opt3.3.3
Reason:
Checkcode.php generates files in .jpg format, but phpinfo () does not show support for jpg format.
Solution:
1. Download jpegsrc.v6b.tar.gz and freetype-2.3.7.tar.gz files
2. Install:
Checking jpeg library [root@www download] # rpm-qa | grep jpeglibjpeg-devel-6b-43.fc10.i386libjpeg-6b-43.fc10.i386Install jpeg library [root@www download] # tar-zxvf jpegsrc.v6b.tar.gz [root@www download] # cd jpeg-6b [root@www jpeg-6b] #. / configure-- prefix=/usr/local/jpeg-- with-freetype=/usr/local/freetype-- enable-shared-enable-static [root@www jpeg-6b] # make [root@ Www jpeg-6b] # make intallChecking freetype library [root@www download] # rpm-qa | grep freetypefreetype-2.3.7-1.fc10.i386freetype-devel-2.3.7-1.fc10.i386Install freetype library [root@www download] # tar-zxvf freetype-2.3.7.tar.gz [root@www download] # cd freetype-2.3.7 [root@www freetype-2.3.7]. / configure-- prefix=/usr/local/freetype-- enable-shared-- Enable-static [root@www freetype-2.3.7] # make [root@www freetype-2.3.7] # make intall
3. Install php-5.2.10 now.
Enter the php source directory first.
# make#make install#cp php.ini-recommended / usr/local/php/etc/php.ini#echo AddType application/x-httpd-php .php > > / usr/local/apache2/conf/httpd.conf
Finally, based on the information returned by make install, the installation is completed.
You may want to add: / usr/local/php/lib/php to your php.ini include_path
Add the path to the include_path in the php.ini file and save it.
At this point, PHP is installed.
4. Check the phpinfo () file, and the returned result shows that gd supports jpeg format.
5. Install PHPCMS2008 SP2 again and enter the login screen in the background. Everything's fine.
After reading the above, have you mastered the solution to the problem that the phpcms background CAPTCHA does not display in linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.