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!