In fact, it is very simple: Make a script like this: conf. sh
#! /Bin/sh
CC = arm-none-linux-gnueabi-gcc./configure
-- Target = arm-none-linux-gnueabi -- prefix =/usr/local/armphp -- enable-debug
-- Disable-cli -- enable-zend-multibyte -- enable-pdo -- with-sqlite
-- With-pdo-sqlite -- with-zlib-dir =/usr/local/myphp -- without-iconv
-- With-libxml-dir =/usr/local/myphp -- with-sqlite3
Run the command.
In php compiled a few days ago, the-disable-cli option is not added, but errors occur when sqlite-open () and other sqlite-related statements are executed.
The error-log shows:
Premature end of script headers: php-cgi
Test in the command line:
./Php-cgi test. php
Segmentation
Fault. This should indicate a problem with the compiled program.
After the-disable-cli option is added, generation of the CLI mode is disabled. After compilation and installation, it will work normally.