Environment: centos6.6 Apache2.6 MariaDB5 PHP5.4
Apache is compiled and installed in /usr/local/apache2 under
MariaDB is a RPM Package Installation
PHP is a compiled installation
because the Zen Road is to be installed in this environment Bug management system, so direct the Zentao The unpacked package is placed in the /usr/local/apache2/htdocs/ it's all right. Then visit ip:port/zentaopms/www/install.php This path and follow the prompts to install it. The following is an issue that is encountered throughout the installation process:
1. First is not loaded into the pdo_mysql.so module. Then here's the workaround:
Tar xzvf pdo_mysql-1.0.2.tgz
CD pdo_mysql-1.0.2
Execute command:/usr/local/php/bin/phpize//This path file depends on the actual environment
Then execute:./configure--with-php-config=/usr/local/php/bin/php-config --with-pdo-mysql=/usr/bin/mysql_config (Mark 1)
Make && make install
Make Install after that, you will be prompted to indicate under which path a pdo_mysql.so file has been generated. You can verify the existence of this file to this path.
2. Copy the file/usr/share/doc/php-common-5.3.3/php.ini-production to /usr/local/php/lib/(php directory) and renamed PHP.ini.
Then modify this php.ini file as follows:
Add it to the following:
Extension_dir = "/"
Extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so"
Save, exit, and then restart Apache. Refreshing the Zentao installation interface will find that the Pdo_mysql.so module has been loaded.
3. Then install Zentao, this step to enter the database information, after entering the database information click Next, directly appear blank page, for a long time to find the reason also can not find. Finally, the debug value is changed to true in my.php. Try entering the database information again and submit. See the error message directly on the Web page.
fatal error: uncaught exception ' pdoexception ' with message ' sqlstate[hy000 ]: general error: 2030 this command is not supported in the prepared statement protocol yet ' in /usr/local/apache2/docs/zentaopms/module/ install/model.php:375 stack trace: #0 /usr/local/apache2/docs/zentaopms/module/install/ model.php (375): pdo->query ('-- drop table i ... ') #1 /usr/local/apache2/docs/ zentaopms/module/install/model.php (247): installmodel->createtable (' 5.5 ') #2 /usr/local/ apache2/docs/zentaopms/module/install/control.php: installmodel->checkconfig () #3 [ INTERNAL FUNCTION]: INSTALL->STEP3 () #4 /usr/local/apache2/docs/zentaopms/framework/ router.class.php (1140): call_user_func_array (array, array) #5 /usr/local/apache2/docs/ zentaopms/www/install.php (+): &NBSp;router->loadmodule () #6 {main} thrown in /usr/local/apache2/docs/zentaopms/ Module/install/moDel.php on line 375
2015/7/28 14:54:46
This error for a long time did not know how to solve, it may not support the PDO module caused. Finally in a post see this change is OK.
The workaround is to modify the module/install/model.php to find the public function connectdb () function,
$DBH = new PDO ($DSN, $this->config->db->user, $this->config->db->password);
$DBH->setattribute (Pdo::attr_default_fetch_mode, pdo::fetch_obj);
$DBH->setattribute (Pdo::attr_errmode, pdo::errmode_exception);
After adding
$DBH->setattribute (Pdo::attr_emulate_prepares, true);
After saving, the installation is successful .
Then continue to install, finally appeared the landing screen. But the new problem comes again, enter the account password and click Login error,
Warning:Unknown:open (/tmp/sess_udcl4ph6t3kc0dic8b3sct7uj1, O_RDWR) Failed:permission denied (0) in Unknown
Warning:Unknown:Failed to write session data (files). Verify the current setting of Session.save_path was correct () in Unknown on line 0
This problem was solved after consulting the technology of Zen Road. They have a lot of patience here. Modify in php.ini file
This solves the problem. This directory is created by itself, and given sufficient permissions, I am here for convenience directly 777.
The final landing will be OK.
Problems with installing Zen Road 7.2.4 version under CentOS