mysql-5.0.56:
shell> useradd mysql
shell> passwd mysql
123456 123456
shell> ./configure --prefix=/opt/mysql5
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /opt/mysql5
shell> chown -R mysql:mysql .
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> bin/mysqld_safe --user=mysql &
httpd-2.2.15:
shell>./configure --enable-so --prefix=/opt/www /* 保证运行php的参数 */
make && makeinstall
php-5.3.2:
shell>./configure --with-apxs2=/opt/www/bin/apxs --with-mysql=/opt/mysql5
make && make install
shell>cd php5.3.2
shell>cp php.ini-development /usr/local/lib/php.ini
shell>cd /opt/www/conf
shell>vi http.conf
LoadModule php5_module modules/libphp5.so /* check */
AddType application/x-httpd-php .php .phtml /* add */
shell>/opt/www/bin/apachectl start /* 启动apache服务器 */
shell>/opt/mysql5/bin/mysqld_safe --user=mysql &
shell>/opt/mysql5/bin/mysql /* 启动mysql 服务器 */
create database dataname; //数据库名
grant all privileges on *.* to 'username'@'localhost' //用户名
identified by 'passwd' with grant option; // 口令
quit
discuz7.2:
cp -R /root/discuz/* .
vi config.inc.php /* 改写用户名密码数据库名*/
阅读(301) | 评论(0) | 转发(0) |