- 浏览: 204798 次
文章分类
- 全部博客 (224)
- jsp (5)
- jsf (7)
- web (11)
- js (12)
- COBOL (5)
- php (7)
- jconsole (1)
- java (11)
- ajax (1)
- PHP魔法方法 (1)
- 项目管理工具 (3)
- 项目管理 (2)
- svn (8)
- redmine (1)
- mysql (4)
- qrcode,php (1)
- qrcode (1)
- 多进程 (3)
- html (1)
- excel (2)
- seasar2 (1)
- db (1)
- entity (1)
- IOS8 (1)
- SWIFT (1)
- 正则表达式 (1)
- RabbitVCS (1)
- url (1)
- thinkphp (2)
- c++ (5)
- win32 API函数 (1)
- htaccess (1)
- makefile (3)
- C/C++ (12)
- Linux (1)
- miui (2)
- unix (1)
- wechat (1)
- websocket (1)
- SpringMVC (3)
- VSAM (1)
- centos (2)
- wamp (1)
- server (1)
- 优酷视频上传并去除广告 (1)
- owncload (1)
- cloud (1)
- ubuntu (1)
- pdf转换成word (1)
- 微信,weixin (1)
- 行业系统 (3)
- 超级外卖源代码 (0)
- 软件专利 (1)
- 申请 (1)
- vba (1)
- UML (1)
- 程序切片 (1)
- 股票心得 (1)
- 威客建站 (1)
- 微信开发学习路线 (1)
- 远程开机 (1)
- spring mvc (1)
- JEECMS (1)
- Node.js (1)
- ThinkJS (1)
- maven (2)
- MyEclipse+Tomcat+MAVEN+SVN (1)
- Spring+SpringMVC+MyBatis (1)
- wampserver (0)
- RESTful (1)
- hibernate (4)
- Spring+SpringMVC (1)
- 响应式布局 (1)
- 响应式布局模板 (1)
- Aptana (3)
- 遗传算法 (1)
- 进化算法 (1)
- bower (1)
- HTML5 (1)
- Android官方培训课程 (1)
- MySQL锁 (1)
- 扫描枪 (1)
- 微信公众平台 (1)
- 企业号 (1)
- ddns (1)
- java获取外网ip (1)
- DDNS,阿里云,云解析,万网域名,阿里云域名 (1)
- SEO (1)
- Jboss (2)
- wildfly (1)
- WildFly8 (2)
- NT Kernel (1)
- 反向代理 (1)
- Spring嵌套事务 (1)
- apache (3)
- 防止浏览器记住用户名及密码的简单实用方法 (1)
- 时间戳 (1)
- 字体 (1)
- 网络爬虫准 (1)
- 屏蔽后退按钮 (1)
- java web (1)
- JavaMail (1)
- windows服务 (1)
- Freemarker (1)
- TortoiseGit (2)
- oschina (1)
- JSON (1)
- Boost (1)
- MUI (1)
- github (1)
- Python2.7 (1)
- Python3.0 (1)
- Odoo (1)
- java socket (1)
- OpenERP (2)
- werkzeug (1)
- JNA (2)
- proxifier (1)
- WebService (1)
- 企业应用集成 (1)
- vmware (1)
- Navicate (1)
- 三体 (1)
- oracle同步 (1)
- 微信 (3)
- java设计模式 (1)
- 工具 (1)
- JavaScript跨域 (1)
- LB (1)
- 负载均衡 (1)
- AngularJS (1)
- HBuilder (1)
- Echarts (1)
- Json Web Token (1)
- PassportSDK (1)
- ubuntu kylin xterm 乱码 (1)
- ubuntu kylin17 安装字体教程 (1)
- wps (1)
- jetbrains (1)
- MySQL5.7 (1)
- Nginx (1)
- JDK (1)
最新评论
-
cuiyadll:
谢谢楼上的推荐
实战:jQuery Mobile开发HTML5移动应用 -
marty:
使用JQueryMobile,推薦使用這免費開發工具,提供可視 ...
实战:jQuery Mobile开发HTML5移动应用 -
men_clslji:
按照目前的方法只是防止刷新页面时不再执行X(添加),而toke ...
有了上一篇博文,类似地顺便说说表单防重复提交。
一键安装LAMP环境
LAMP环境是可以一键安装的。即安装好Linux ubuntu后,用
Sudo apt-get install tasksel
Sudo tasksel install lamp-server
两个命令就可以安装Apache+Mysql+Php环境了。
错误信息:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
解决方法:
sudo gedit /etc/apache2/apache2.conf
在文件后面加上:
#Server Name
ServerName 127.0.0.1
Step 1:
Installing apache
Open Terminal. To open terminal click the Dash home from unity launcher. And type terminal in the search field.And click Terminal .
And type the below code in terminal and hit enter.
sudo apt-get install apache2
Type your ubuntu password and press enter.
Type y and hit enter to confirm apache installation.
After the successful installation , open your favorite browser and type
http://localhost/
in the address bar and press enter. If you will see ‘It works!’ , then your apache works fine.
Step 2:
Installing PHP
Open Terminal. And type the below code in terminal and hit enter.
sudo apt-get install php5 libapache2-mod-php5
Type your ubuntu password if needed.
Type y and hit enter to confirm PHP installation.
After the successful installation restart Apache using the below code
sudo /etc/init.d/apache2 restart
Test PHP installation
To test PHP is installed, Type
sudo gedit /var/www/phpinfo.php
in the terminal and type your ubuntu password if needed. It will open the phpinfo.php file in gedit.Type below code in the phpinfo.php file, save and exit it .
<?php phpinfo() ?>
Now open your favorite browser and type http://localhost/phpinfo.php in the address bar and press enter. If you will see the below page , then your php works fine.
Step 3:
Installing MySql
Open Terminal. And type the below code in terminal and hit enter.
sudo apt-get install mysql-server
Type your ubuntu password if needed.
Type y and hit enter to confirm MySql installation.
During the installation you will be prompted for a password.Choose something secure and type the password and hit enter .
Repeat the password and press enter.
Step 4:
Installing phpMyadmin
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.
Open Terminall. And type the below code in terminal and hit enter.
sudo apt-get install phpmyadmin
Type your ubuntu password if needed.
Type y and hit enter to confirm phpMyadmin installation.
During the installation you will be prompted for a webserver configuration.
Select
apache2
(already selected)
press enter.
Now you will be promped for phpmyadmin configuration
Select
No
and press enter.
Type below command in terminal
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
restart your apache server using
sudo /etc/init.d/apache2 restart
Open your browser and type
http://localhost/phpmyadmin/
in the address bar and press enter.
Type your mysql root username and password to login.
You’re now ready to start building your local website. just put all of your files into
/var/www
it is from :http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/
Sudo apt-get install tasksel
Sudo tasksel install lamp-server
两个命令就可以安装Apache+Mysql+Php环境了。
错误信息:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
解决方法:
sudo gedit /etc/apache2/apache2.conf
在文件后面加上:
#Server Name
ServerName 127.0.0.1
Step 1:
Installing apache
Open Terminal. To open terminal click the Dash home from unity launcher. And type terminal in the search field.And click Terminal .
And type the below code in terminal and hit enter.
sudo apt-get install apache2
Type your ubuntu password and press enter.
Type y and hit enter to confirm apache installation.
After the successful installation , open your favorite browser and type
http://localhost/
in the address bar and press enter. If you will see ‘It works!’ , then your apache works fine.
Step 2:
Installing PHP
Open Terminal. And type the below code in terminal and hit enter.
sudo apt-get install php5 libapache2-mod-php5
Type your ubuntu password if needed.
Type y and hit enter to confirm PHP installation.
After the successful installation restart Apache using the below code
sudo /etc/init.d/apache2 restart
Test PHP installation
To test PHP is installed, Type
sudo gedit /var/www/phpinfo.php
in the terminal and type your ubuntu password if needed. It will open the phpinfo.php file in gedit.Type below code in the phpinfo.php file, save and exit it .
<?php phpinfo() ?>
Now open your favorite browser and type http://localhost/phpinfo.php in the address bar and press enter. If you will see the below page , then your php works fine.
Step 3:
Installing MySql
Open Terminal. And type the below code in terminal and hit enter.
sudo apt-get install mysql-server
Type your ubuntu password if needed.
Type y and hit enter to confirm MySql installation.
During the installation you will be prompted for a password.Choose something secure and type the password and hit enter .
Repeat the password and press enter.
Step 4:
Installing phpMyadmin
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.
Open Terminall. And type the below code in terminal and hit enter.
sudo apt-get install phpmyadmin
Type your ubuntu password if needed.
Type y and hit enter to confirm phpMyadmin installation.
During the installation you will be prompted for a webserver configuration.
Select
apache2
(already selected)
press enter.
Now you will be promped for phpmyadmin configuration
Select
No
and press enter.
Type below command in terminal
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
restart your apache server using
sudo /etc/init.d/apache2 restart
Open your browser and type
http://localhost/phpmyadmin/
in the address bar and press enter.
Type your mysql root username and password to login.
You’re now ready to start building your local website. just put all of your files into
/var/www
it is from :http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/
相关推荐
下面将详细阐述如何一键安装LAMP环境。 1. **Linux**: Linux是一种开源操作系统,它为服务器提供了稳定、安全的基础。常见的Linux发行版如Ubuntu、CentOS或Debian都支持LAMP环境的搭建。 2. **Apache**: Apache ...
一键部署LAMP环境,搭建自己的个人博客不是梦,基于FPM模式的编译安装实现Lamp应用的wordpress,
阿里云Linux一键安装Web环境是针对在阿里云服务器上快速部署Web服务的一种高效方法。它通常涉及Apache或Nginx Web服务器、PHP解释器、MySQL或MariaDB数据库等组件的安装,这些组件构成了常见的LAMP(Linux、Apache、...
标题中的“一键安装lamp lnmp脚本”指的是一个自动化脚本,用于快速部署Linux环境下的LAMP(Linux、Apache、MySQL、PHP)或LNMP(Linux、Nginx、MySQL、PHP)服务器栈。这样的脚本通常包含了安装、配置和优化相关...
标题 "一键安装网站环境" 指的是一个简化了传统复杂服务器配置流程的工具或软件,它能够快速地为用户搭建适用于网站运行的基础环境。这种工具通常会集成多种必要的服务和组件,比如Web服务器(如Apache或Nginx)、...
本文将详细介绍如何一键搭建LAMP环境,以及后续可能需要进行的软件版本升级配置。 **1. Linux操作系统** Linux是LAMP中的“L”,它提供了一个稳定、安全的基础平台。这里的一键安装通常适用于基于Debian或Ubuntu的...
5.一键搭建LAMP脚本:使用bash脚本可以实现一键搭建LAMP环境,脚本中需要包括安装Apache、MySQL和PHP的命令,例如安装依赖包、编译和安装软件包、配置文件等。 6.lamp平台的应用:LAMP平台广泛应用于Web开发中,...
阿里云主机一键安装lamp,lnmp,自动安装脚本,由阿里云主机分享 一键安装包下载地址:点击下载 1、阿里云分享的一键安装lamp,lnmp,此安装包包含的软件及版本为: 代码如下: nginx:1.0.15、1.2.5、1.4.4 apache:...
一键安装LAMP环境的脚本简化了配置过程,通常会自动完成以下步骤: 1. 更新系统包列表。 2. 安装必要的依赖项。 3. 下载并安装Apache、MySQL和PHP。 4. 配置Apache,例如设置默认站点、开启必要的模块。 5. 安装PHP...
尽管这里的教程可能不直接涉及嵌入式硬件,但熟悉在Ubuntu这样的桌面系统上配置LAMP环境对嵌入式Linux开发者来说也是必要的,因为他们通常会在类似的环境中测试和调试代码。 在压缩包中,"Lamp-master"可能是项目源...
**Linux一键安装Web环境全攻略.pdf** 这个PDF文档很可能是详细的安装指南,涵盖了从下载到验证安装的整个过程,包括可能遇到的问题及解决方法。用户应仔细阅读,以确保安装过程顺利进行。 总结起来,"php web环境...
这个一键安装脚本集可以帮助用户快速、简便地在Linux系统中配置LAMP环境,尤其适合那些对Linux系统操作不熟悉或者希望节省时间的用户。Xen是一种开源的虚拟化技术,可以在单一的物理服务器上运行多个独立的操作系统...
## linux系统上自动搭建lamp环境 ``` cd lamp-auto-config chmod -R 777 lamp_auto_config.sh ./lamp_auto_config.sh #执行shell脚本 ``` 1.安装后配置环境mysql变量 find / -name mysql#查看位置 2.一般在...
通过提供的"Linux一键安装web环境全攻略.pdf"和"Linux一键安装web环境使用教程.pdf",您可以学习到如何高效地完成这一任务。 首先,我们来了解一下Linux的一键安装包"sh-1.4.5"。这通常是一个脚本文件,包含了自动...
这个“lamp集成安装工具”正是为了简化这一过程,帮助用户快速在Linux环境中配置好LAMP环境。本文将详细介绍LAMP的组成部分、其在Web开发中的作用,以及如何使用该工具进行安装。 1. **Linux**:作为操作系统的基础...
本文档旨在详细介绍如何使用Shell脚本实现LAMP或LNMP环境的一键安装过程。LAMP(Linux、Apache、MySQL、PHP)与LNMP(Linux、Nginx、MySQL、PHP)是两种常见的Web服务器环境组合,在实际应用中广泛被采用。通过编写...
标题 "一键安装php环境,php数据库" 暗示了我们正在讨论如何简便快捷地配置一个包含PHP和数据库服务的开发或运行环境。这通常涉及到Web服务器(如Apache或Nginx)、PHP解释器以及一个数据库系统(如MySQL或MariaDB)...
标题 "Apache MySQL PHP 一键安装" 指的是在计算机上快速配置 LAMP(Linux, Apache, MySQL, PHP)环境的过程,不过在这个情况下,我们似乎是在Windows操作系统中进行操作,因为压缩包中包含了Windows下的批处理文件...
对于服务器管理,一键安装包可以一次性安装必要的软件和服务,如LAMP(Linux、Apache、MySQL、PHP)环境,极大地提高了工作效率。 总的来说,"一键安装蓝色豪华标准版"是一个旨在简化安装流程,提升用户体验的软件...