- 9
- 0
- 约3.01千字
- 约 3页
- 2017-07-23 发布于河南
- 举报
在Ubuntu上安装搭建LAMP(LinuxApacheMySQLPHP)PHPWind论坛
Install LAMP(Linux+Apache+MySQL+PHP)
PHPWind on Ubuntu
1.To start with, youd better update the system
# apt-get update
# apt-get upgrade
2.Install the Apache
# apt-get install apache2
Input to the web browser when you finish it, if it shows it works, it means you have installed Apache successfully.
3.Install MySQL
# apt-get install mysql-server
Set password for MYSQL root user during the installation.
#mysql -u root -p
Enter the password you have just set for the MYSQL root user when it asks password, youll go into the mysql, then input as below:
grant all privileges on *.* to root@localhost identified by mypassword with grant option;
mypassword is your password for mysql, you should enter it the next time when you go into the mysql.
Exit
4.Install PHP
# apt-get install php5 libapache2-mod-php5
This is a way to test whether you have installed PHP successfully or not:
# touch /var/www/html/test.php
# gedit /var/www/html/test.php
Write code as below in the test.php you have just opened: ?php phpinfo();?
Save and exit.
# /etc/init.d/mysql restart # /etc/init.d/apache2 restart
Input localhost/test.php to the web browser, if there shows some relevant information, it means you have set an available environment in terms of this job successfully.
5.Install PhpMyAdmin
# apt-get install phpmyadmin
Choosing apache2 when it shows web server to reconfigure automatically.
Choosing YES when it asks Configure database for phpmyadmin with dbconfig-common?
Entering password you have set in step 3 for the mysql when it asks password of the databases administrative user.
# cp -r /usr/share/phpmyadmin /var/www/html
6.Configure the PhpMyAdmin
# vim /var/www/html/phpmyadmin/libraries/config.default.php
Find out sentence as below in line 40 $cfg[PmaAbsoluteUri] = ;
and change it into:
$cfg[PmaAbsoluteUri] = http://localhost/phpMyAdmin/;
Find out sentence as below in line 81 $cfg[blowfish_secret] = ;
and change it into:
$cfg[blowfish_secret] = ;
Find out sentence as below in line
您可能关注的文档
- Win7系统安装前事项全解析.doc
- Windows Server 2003 Enterprise Edition(企业版32位)最大内存支持.docx
- windows8各版本下载.doc
- Windows7安装手册.docx
- 30秒清除你电脑中系统垃圾文件Microsoft Word 文档.doc
- 9880错误代码.doc
- AIX中有关语言的环境变量比较多456789.docx
- c语言程序设计之学生信息管理系统.doc
- RedHat Enterprise Linux AS4下安装小企鹅输入法.doc
- liunx基本命令.docx
- 2025广东广州市天河区拟招聘英语实习老师1人备考题库附答案.docx
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人笔试备考试卷附答案解析.docx
- 2025广东广州市越秀区流花街道办事处招聘综合事务中心辅助人员1人笔试历年题库附答案解析.docx
- 2025广东广州市花都区新雅街清初级中学招聘临聘教师1人备考历年题库带答案解析.docx
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人笔试备考试卷带答案解析.docx
- 江苏省盐城市东台市三仓镇区中学2026届八年级数学第一学期期末教学质量检测试题含解析.doc
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人备考题库带答案解析.docx
- 江苏省盐城市亭湖区2026届数学八上期末考试试题含解析.doc
- 安徽省蚌埠市淮上区2026届数学八年级第一学期期末达标检测模拟试题含解析.doc
- 2025广东广湛城旅游轮有限公司招聘备考历年题库附答案解析.docx
最近下载
- 2023年山东水利职业学院单招综合素质考试试题及答案解析.docx VIP
- 2023年山东水利职业学院单招考试综合素质模拟试题及答案解析.docx VIP
- 福建省宁德市2024-2025学年八年级上学期期末考试历史试题.pdf VIP
- 湘2021G301预制带肋底板混凝土叠合楼板(混凝土肋、钢筋肋、钢管肋)(版本2).docx VIP
- 湘2021G301预制带肋底板混凝土叠合楼板(混凝土肋、钢筋肋、钢管肋)(版本2).docx VIP
- 湘2021G301 预制带肋底板混凝土叠合楼板(混凝土肋、钢筋肋、钢管肋).docx VIP
- 学生道德品质教育与养成课件.ppt VIP
- 儿童品格尊重课件.pptx VIP
- 广日电梯MAX-E 电梯维修手册(00版本).pdf VIP
- 杭州威灵专用交流伺服驱动器使用手册2020.pdf VIP
原创力文档

文档评论(0)