PHP compilation problem summary
1 , PDO_MYSQL make: *** [pdo_mysql.lo] Error 1
When compiling and installing the PDO_MYSQL extension module, the following message is always displayed:
In file sorted ded from/data0/software/PDO_MYSQL-1.0.2/pdo_mysql.c: 31:
/Data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h: 25: 19: error: mysql. h: No such file or directory
In file sorted ded from/data0/software/PDO_MYSQL-1.0.2/pdo_mysql.c: 31:
/Data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h: 36: error: expected specifier-qualifier-list before 'mysql'
/Data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h: 48: error: expected specifier-qualifier-list before 'MySQL _ field'
/Data0/software/PDO_MYSQL-1.0.2/php_pdo_mysql_int.h: 53: error: expected specifier-qualifier-list before 'MySQL _ res'
Make: *** [pdo_mysql.lo] Error 1
This is because the MySQL header file is required during compilation. This problem occurs only when the header file cannot be found by default. Connect the MySQL header file to/usr/local/include/through a soft connection.
For example, if your MySQL installation file is in/usr/local/mysql, run the following command:
# Ln-s/usr/local/mysql/include/*/usr/local/include/
Use the absolute path when adding extensions to the PHP configuration file php. ini.
Extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/pdo_mysql.so"
2, Set up phpadminSystem session_start ()Error
Error message:
Warning: session_start (): open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed: Nosuch file or directory (2) in/www/tool/classes/service/User. php on line75
Warning: Unknown: open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that thecurrent setting of session. save_path is correct (/var/lib/php/session) inUnknown on line 0
View php. ini:
Session. save_path = "/var/lib/php/session" // session storage path
Therefore, the above text indicates that the directory does not exist.
Solution:
Create the preceding Directory
Mkdir session
Chmod-R 777 session
Run the program again.