//至于php配置先说到这..哪天有时间再补...
No.11 apache+mysql开机后自动运行
#ee /etc/rc.conf
mysql_enable="YES"
apache22_enable="YES"
sendmail_enable="NONE"
//添加以上几条.
//ESC保存退出.
//别急着reboot就完事了...
No.12 编辑index.php
#cd /usr/local/www/apache22/data/
#rm index.HTML
//不删的话您只能看到 it works!
#ee index.php
//输入:
<?php
phpinfo();
?>
//ESC保存退出.
//ok现在您可以放心的reboot了...
//起来之后打开你的IP地址..看到什么了?大声告诉我..什么...空白?空白就对了...嘿嘿....
//因为...
编辑php.ini
#ee /usr/local/etc/php.ini
//safe_mode = Off,更改为safe_mode = On
//查找disable_functions =phpinfo //探针就不好使了..想看配置没门
//disable_functions 禁止了phpinfo函数呗...
//想看看辛勤劳动的结果是吧?
#ee /usr/local/etc/php.ini
//找到disable_functions =
//ESC退出保存..
No.13 重起apache
#apachectl restart
//F5刷新一下看看有什么东西出现了...
No.14 myql
#mysql
Welcome to the MySQL monitor.Commands end with ; or g.
You MySQL connect id is 2 to server version:5.1.11-beta
Type 'help;' or 'h' for help.Type 'c' to clean the buffer.
mysql>show databases;
+-------------------------+
| Database |
+-------------------------+
|information_schema |
|cluster |
|mysql |
|test |
+-------------------------+
4 rows in set
mysql>create database stuhack;
Query OK ,1 rows affected
标签: