Run the PHP compilation command:
Sudo./Configure --With-apxs2 =/usr/local/apache2/bin/apxs -- With-MySQLSudo Make
The following error message is generated:
/Usr/local/src/PHP- 5.4 . 3 /EXT/standard/ Info . C: 105 : Ext /Standard/. libs/ Info . O: In Function 'Php _ info_printf ' : /Usr/local/src/PHP- 5.4 . 3 /EXT/standard/ Info . C: 83 : Undefined reference to 'ts _ resource_ex ' EXT/standard/. libs/ Info . O: In Function 'Php _ info_print_html_esc ' : /Usr/local/src/PHP- 5.4 . 3 /EXT/standard/Info . C: 69 : Undefined reference to 'ts _ resource_ex ' EXT/standard/. libs/ Info . O: In Function 'Php _ print_gpcse_array ' : /Usr/local/src/PHP- 5.4 . 3 /EXT/standard/ Info . C: 208 : Undefined reference to 'executor _ globals_id ' EXT/standard/. libs/Info . O: In Function 'Php _ info_print_request_uri ' : /Usr/local/src/PHP- 5.4 . 3 /EXT/standard/ Info . C: 97 : Undefined reference to 'sapi _ globals_id ' EXT/standard/. libs/ Info . O: In Function 'Php _ print_info ' : /Usr/local/src/PHP- 5.4 . 3 /EXT/standard/ Info . C: 874 : Undefined reference to 'executor _ globals_id ' Collect2: LD Returned 1 Exit status Make : *** [SAPI/CLI/PHP] Error 1
The error message may be that I used to compile PHP with different parameters.
solution: Execute make clean to delete the last compilation result and re-compile it.