ubuntu10.10 搭建LAMP
来源:互联网 发布:图片展示类cms系统 编辑:程序博客网 时间:2024/05/17 23:41
1.install mysql
apt-get install mysql-server mysql-client
While installing, it will promot you to set the password of root user, for example nopasswd, then after it finished, use this instruction to test whether the mysql server is running
netstat -tap | grep mysql
if it display
tcp 0 0 localhost.localdomain:mysql *:* LISTEN -,
it means the mysql server is running, if not,execute
/etc/init.d/mysql restart
to start the mysql.Execute
mysql -u -root -p
it will let you input the password of root user, after input the root user, execute
grant all privileges on *.* to 'xiao'@'%' identified by 'xiaoxiao' with grant option;
to make the changes take effect instantlly,then execute
flush privileges;
to create a user xiao, then execute
create database androidDatabase
then
use androidDatabase
then
create table androidTable(xiao varchar(30), content varchar(30));
then insert into androidTable values("xiao","xiaoxiao");
2.install apache
apt-get install apache2
3.install php
apt-get install php5
3.touch a file named test.php in /tmp/www/ and input <?php echo phpinfo();?>, if it will shows the php version information.
4.touch a file named ConnectDatabase.php, it occurs an error that Call to undefined function mysql_connect(), execute
apt-get install php5-mysql
and
/etc/init.d/apache2 start.
The install is over.
- ubuntu10.10 搭建LAMP
- Ubuntu10.10安装LAMP
- ubuntu10.04 下LAMP的搭建安装
- WinXP下搭建virtualbox+ubuntu10.04+LAMP+tomcat6环境小记
- ubuntu10.10一键安装LAMP
- Ubuntu10.10下安装lamp环境
- Ubuntu10.10上配置安装LAMP
- Ubuntu10.04配置LAMP
- ubuntu10.04 LAMP
- ubuntu10.04构建LAMP
- ubuntu10.10 android环境搭建
- ubuntu10.10搭建FTP服务器
- ubuntu10.10 嵌入式环境搭建
- ubuntu10.10各种服务器搭建
- ubuntu10.10+android 搭建Opencv
- ubuntu10.10搭建samba服务器
- UBUNTU10.10搭建FTP服务器
- ubuntu10.04下安装LAMP
- Ogre中设置渲染性能参数
- WPF
- Java语法总结 - 内部类
- 位图排序
- 怎么访问局域网里面的计算机
- ubuntu10.10 搭建LAMP
- java Applet
- 将Js封装成类使用
- 理解和使用Linux的硬件抽象层HAL
- Ogre 添加外部资源管理器
- 高效高质代码的编写
- 屏蔽Home键
- DesignSurface:演示用ISelectionService来获得当前组件,并用PropertyGrid来编辑该组件
- Drawing.Point 与 Windows.Point 的比较与转换