ubuntu 配置 LAMP(Linux+Apache+Mysql+PHP)环境
来源:互联网 发布:c语言创建窗口程序 编辑:程序博客网 时间:2024/05/09 22:55
安装PHP和Apache
安装完成的apache在目录/etc/apache2下。运行apache:
运行不成功,出现错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
这时要在修改/etc/apache2/apache2.conf,添加:
sudo apt-get install apache2sudo apt-get install php5<code class="plain" style="background-image: none !important; position: static !important; padding: 0px !important; line-height: 1.1em !important; border-width: 0px !important; margin: 0px; outline-width: 0px !important; width: auto !important; bottom: auto !important; display: inline !important; font-family: consolas, 'bitstream vera sans mono', 'courier new', courier, monospace !important; direction: ltr !important; float: none !important; height: auto !important; font-size: 1em !important; vertical-align: baseline !important; top: auto !important; right: auto !important; left: auto !important; ">sudo apt-get install libapache2-mod-php5 </code>
安装完成的apache在目录/etc/apache2下。运行apache:
/etc/init.d/apache2 start
运行不成功,出现错误:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
这时要在修改/etc/apache2/apache2.conf,添加:
ServerName 127.0.0.1:80之后重启apache2即可,我们可以在/var/www/html中编写自己的静态文件以供浏览器访问
安装PHP对Mysql的API
sudo apt-get install php5-mysql mysql-server
参考:
Ubuntu下的PHP开发环境架设
0 0
- Ubuntu下配置LAMP(Linux+Apache+Mysql+PHP)环境
- ubuntu下配置LAMP(Linux+Apache+Mysql+PHP)环境
- ubuntu 配置 LAMP(Linux+Apache+Mysql+PHP)环境
- Ubuntu配置LAMP(Linux, Apache, MySQL , PHP)
- Ubuntu下(Linux+Apache+MYSQL+PHP, LAMP)环境搭建
- Linux下LAMP(Apache PHP MySql)环境配置
- 配置LAMP环境(linux+apache+mysql+php)
- LAMP环境配置 Linux+apache+php+mysql搭建
- Linux下LAMP(Apache+PHP+MySql)环境配置
- ubuntu 搭建 lamp 环境php mysql apache
- ubuntu lamp(apache+mysql+php)环境搭建
- Ubuntu 安装LAMP(Linux,Apache,MySQL,PHP)
- LAMP:Linux+Apache+Mysql+Php 搭建环境
- LAMP(Linux+Apache+Mysql+PHP)环境搭建
- Lamp(linux+apache+mysql+php)环境搭建
- LAMP(Linux+Apache+Mysql+PHP)环境搭建
- Ubuntu搭建LAMP服务器(apache+mysql+php),Ubuntu配置php环境
- LAMP攻略: LAMP环境搭建,Linux下Apache,MySQL,PHP安装与配置
- 分布式数据库等其它一些基本概念(二)
- UITextView的使用以及打开键盘的时候自动调整UITextView的位置
- 如何检测HDFS的均衡状态?
- Django模板中的HTML自动转义
- [leetcode][list][sort] Insertion Sort List
- ubuntu 配置 LAMP(Linux+Apache+Mysql+PHP)环境
- Browser Specific Hacks
- Git仓库完整迁移 含历史记录
- Two Strings Are Anagrams-LintCode
- 黑马程序员——JAVA语言加强部分——IO流
- 黑马程序员——java语言基础部分——线程
- How To Create an IE-Only Stylesheet
- multiple definition of XXX情况分析
- 优先队列分支限界法之单源最短路径