Configure the zendframework Runtime Environment
14:49:50
Tags: PHP
Linux
Zend
Zendframework
Original Works are allowed to be reproduced. During reprinting, you must mark the original source of the article in hyperlink form.
, Author information and this statement. Otherwise, legal liability will be held. Http://kerry.blog.51cto.com/172631/114788 compiling php5.2.5
./Configure -- prefix =/usr/local/PHP (pay attention to use the line feed)
-- With-apxs2 =/usr/local/Apache/bin/apxs
-- With-mysql =/usr/local/MySQL
-- With-mysqli =/usr/local/MySQL/bin/mysql_config -- Support for mysqli
-- With-libxml-Dir =/usr/local/libxml2
-- With-PNG-Dir =/usr/local/lib
-- With-JPEG-Dir =/usr/local/defaults 6
-- With-zlib =/usr/local/zlib
-- With-FreeType-Dir =/usr/local/FreeType
-- With-Gd =/usr/local/GD2
-- Enable-mbstring = all
-- Enable-FTP
-- Enable-sockets -- supports mail
-- With-config-file-Path =/usr/local/PHP
-- With-PDO-mysql =/usr/local/mysqlq. The MySQL driver is not currently installed
A. The solution is that the PDO-MySQL extension is not installed. reconfigure it, and add -- With-PDO-mysql =/usr/local/MySQL/PHP. ini.
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_pdo.dll
Extension = php_pdo_mysql.dllzendframeworklinux
Posted APR 23rd, 2008 by askie
If Apache is not installed on your server, it is easy to compile the mod_rewrite module during Apache compilation. For more information, see [url] http://man.chinaunix.net/newsoft#/url].
... EW/MoD/mod_rewrite. html. If your Apache has been installed and you only want to compile the mod_rewrite.so module and load it in Apache, we will introduce this method below. 1) install Apache for the first time and add the-enable-Rewrite option during compilation. For example. /configure-Prefix =/opt/Apache-enable-so-enable-mod-shared = All-enable-rewrite-enable-cache2) add mod_rewrite module # Find. -Name mod_rewrite.c // find the mod_rewrite.c file in the Apache source code installation directory (2.2.8 under the directory httpd-2.2.8/modules/mappers) # cd path/to/mod_rewrite.c // enter the directory containing the mod_rewrite.c file #/opt/Apache/bin/apxs-C mod_rewrite.c // apxs should specify the absolute path, in the bin directory of Apache that you are currently using #/opt/Apache/bin/apxs-I-a-n mod_rewrite mod_rewrite.la if If there is no error, compile a mod_rewrite.so file in the modules directory of your Apache. Edit the httpd. conf file and confirm that the httpd. conf file contains the loading statement mod_rewrite.so, as follows: loadmodule rewrite_module modules/mod_rewrite.so
######################################## ########## If this error occurs
Syntax Error on line 329 of/usr/local/apache2/CONF/httpd. conf:
Can't loacte API module staructure 'mod _ rewrite_module 'In File
/Usr/local/apache2/modules/mod_rewrite.so:/usr/local/apache2/lib/libapr-
0. so.0: Undefined Symbol: mod_rewrite_module
Modify HTTP. conf
Originally: mod_rewrite_module written in httpd. conf
Change to rewrite_module
If this error occurs when you restart Apache, module rewrite_module is built-in and can't be loaded
Indicates that the module is built-in. You do not need to call it again and comment it out.
# Loadmodule rewrite_module modules/mod_rewrite.so
######################################## ############ Check: [root @ WWW httpd-2.2.8] # .. /bin/apachectl configtest
Syntax OK, your Apache should have supported rewrite. Vicos Note: After the configuration is complete, restart Apache on the server. Note that the next step takes effect only when you configure the VM using the following settings: <virtualhost *: 80>
DocumentRoot/var/www/www.fastu.cn/
Servername [url] www.fastu.cn [/url]
<Directory/var/www/www.fastu.cn/>
Options followsymlinks
AllowOverride all
Order allow, deny
Allow from all
</Directory>
</Virtualhost> If AllowOverride is set to none, Apache will not read the. htaccess file of the website! <Virtualhost 192.168.8.150: 80>
Serveradmin services@3bsc.com
DocumentRoot/var/www/xinma/
Servername [url] www.king.com [/url]
Errorlog logs/xinma-error_log
Customlog "|/usr/local/Apache/bin/rotatelogs/var/log/httpd/xinma/% Y _ % m _ % d. access_log 86400" common
<Directory/>
Options followsymlinks
AllowOverride all
</Directory>
</Virtualhost>
This article is from "Listen to the future"
Blog, be sure to keep this source http://kerry.blog.51cto.com/172631/114788