首先安装xampp linux版本,
1、安装(下载完成后,安装到 /opt目录下)
sudo tar -xvzf xampp-linux-1.7.3a.tar.gz -C /opt
2、启动
$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.3a...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
3、在浏览器测试
http://localhost
成功!打开页面。
4、安装花生壳,
tar -xvf phlinux10all.tar.gz
然后使用Ubuntu版本的,网上很多说这个8.04版本的在10.04下安装不成功,但是我的却是可以使用的。
tar -xvf phlinux-1.1-install.ubuntu.8.04.tar.gz
之后进入解压后的目录进行安装,他提供了一个安装脚本
sudo ./install.sh
Making directory /usr/local/phlinux...
Copying data...
Runing phlinux for first configuration...
Peanuthull Linux-core 1.1 by oray.net, copyright 2006
No user configuration found, entering interactive mode automatically!
Peanuthull Linux-core Interactive startup.
Please input service address(press ENTER use phservice2.oray.net):
Note: Server address will automatically be retrieved by webservice!
this is just a backup address while you cannot connect webservice.
Please input server address(press ENTER use PH031.Oray.Net):
Please input username(press ENTER use ): 这儿输入花生壳的用户名
Please input password: 这儿输入花生壳的密码
Save to configuration file (/etc/phlinux.conf)?(yes/no): y
Log /var/log/phlinux.log opened.
2010/04/25 22:35:35.164| Init phservice2.oray.net with user cdy-server/******
2010/04/25 22:35:35.471| Initservice OK!
.....
安装完花生壳之后,要将本机的IP设置为固定IP,然后再路由器里面打开HTTP:80的端口映射,通过如下网址查看花生壳状态:
然后就可以测试虚拟域名了,内网外网测试均OK。
安装drupal,安装的时候要将sites/default目录和settings.php的权限设置成755,用chmod,这样才能安装,不然会提示权限问题,安装完后再修改权限即可。