vi /usr/apache/conf/httpd.conf
添加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
shell>cp -rf /PAHT-to-php4.4.0/php.ini.dist /usr/php/lib/php.ini
shell>vi php.ini
修改register_globals = On
restart apache server
在/usr/apache/htdocs下写一个php测试文档<?php phpinfo(); ?>
如果能正常说明安装正确
phpmyadmin数据库工具的安装
本安装采用版本phpMyAdmin2.6.4
java的安装
本安装采用jdk1.5.0版本
phpmyadmin数据库工具的安装
本安装采用版本phpMyAdmin2.6.4
shell>cd /usr/apache/htdocs shell>tar zxvf phpMyAdmin2.6.4.tar.gz shell>mv phpMyAdmin2.6.4 phpAdmin shell>vi config.inc.php 修改用户名和密码 $cfg['Servers'][$i]['port'] ='80';(端口) $cfg['Servers'][$i]['user'] = 'root';(用户名) $cfg['Servers'][$i]['password'] = ''; (密码) 控制用户访问的权限 shell>vi /usr/apache/conf/httpd.conf 修改 AllowOverride All shell>cd /usr/apache/bin shell>htpasswd -c /usr/apache/htdocs/phpAdmin/.htpasswd luodexing(说明:luodexing为登录phpmyadmin的时候的用户名) shell>cd /usr/apache/htdocs/phpAdmin shell>vi .htaccess 添加 AuthName "user login" AuthType Basic AuthUserFile /usr/apache/htdocs/phpAdmin/.htpasswd require user luodexing 重起apache
java的安装
本安装采用jdk1.5.0版本
shell>cd /usr shell>tar zxvf jdk1.5.0.tar.gz shell>vi /etc/profile 添加 JAVA_HOME=/usr/jdk1.5.0 CLASSPATH=/usr/jdk1.5.0/dt.jar:/usr/jdk1.5.0/tools.jar export JAVA_HOME CLASSPATH
| 对此文章发表了评论 |
