Php migration problems

Source: Internet
Author: User

Php migration problems
After a website is developed and tested in the php environment in windows, the program is not working in the apache + php environment in linux. It is obviously apache + php.
1: What's strange about the program is that there is no error in the log file, which is very annoying and difficult to locate. Later
Check whether the related modules are missing. After communicating with R & D, you will find that the php module is missing. Therefore, by installing php extension, you can install the missing modules. After installation, the program will be normal!

2: other functions of the program are normal, but payment is not supported because curl does not support https
Error: CURLE_UNSUPPORTED_PROTOCOL (1)
How can I enable curl to support https?
Tar zxvfcurl-7.20.0.tar.gz
Cdcurl-7.20.0
./Configure -- with-ssl -- prefix =/usr/local/curl
Make
Make install
Install curl first
Install the curl module. php has been installed. If you do not want to re-compile the module, you can only use the extension installation method! Cd/php-5.5.38/ext/curl
/Usr/local/php5.5/bin/phpize
./Configure -- with-curl =/usr/local/curl/-- with-php-config =/usr/local/php5.5/bin/php-config
Make
Make install

Add curl extension in php. ini (I have already added it)
Restart apache,/usr/local/apache2/bin/apachectl-k graceful


3: gd does not support jpeg by default. The following shows that it supports jpeg.
Cd php-5.5.38
Cd ext/gd/
/Usr/local/php5.5/bin/phpize
./Configure -- with-php-config =/usr/local/php5.5/bin/php-config -- with-jpeg-dir
Make
Make test
Make install
# Keep as backup!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.