How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
来源:互联网 发布:走心机编程指令代码 编辑:程序博客网 时间:2024/05/16 11:54
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/
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- How to Install Apache, MySQL, PHP, and phpMyAdmin on FreeBSD
- how to install apache, PHP and MySQL on Linux
- how to install apache, PHP and MySQL on Linux 2
- how to install apache, PHP and MySQL on Linux 3
- How to Configure and Install ownCloud on Ubuntu 16.04
- How To Install and Configure Elasticsearch on Ubuntu 14.04
- How to Install And Configure Apache In Ubuntu
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How To Install an Apache, MySQL, and PHP (FAMP) Stack on FreeBSD 10.1
- How to Configure, Install and Use libnefilter_queue on Linux
- How to Configure, Install and Use libnefilter_queue on Linux
- How to install and configure NGINX on CentOS 7
- How to install and configure bugzilla
- How To: Install and Configure GitWeb
- How to Install PHP 7 with Apache and MariaDB on CentOS 7/Debian 8
- How to Install Nginx, PHP, PHP Extensions, MySQL, and Zend Optimizer on FreeBSD 7
- Howto Install and Configure VTK on Ubuntu
- Qt特性总结
- 内存测试工具memtester
- 配置tomcat线程池
- HTC ONE M7 ROOT后恢复 原始状态(保修)
- nfc简介
- How to install and configure Apache, PHP, MySql and phpMyadmin on ubuntu
- freeradiusd (mysql)配置与说明(ubuntu)
- 快速高效读C代码和读C++代码
- 判断是NULL还是“”("")
- boost cpp-netlib ubuntu 搭建步骤经验
- 控件台版/MFC版本的简单生日提醒软件及源码
- 教你巧焊单片机电路板
- 怎么识别电脑参数(防止做假、恶意修改)
- I2C总线的连续读和连续写