Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://drive.google.com/open?id=1zpmMXyRr-WTonyclNmPRUDTGRkroqE9N
- https://goo.gl/WdPcC3
- Update Repository list
- sudo apt-get update
- Apache Installation
- sudo apt-get install apache2 -y
- sudo a2enmod rewrite
- sudo service apache2 restart
- [
- .htaccess configuration GoTo
- sudo nano /etc/apache2/apache2.conf
- Change the file to make /var/www section like below
- <Directory /var/www/>
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
- </Directory>
- Add following line at EoL of file
- Include /etc/phpmyadmin/apache.conf
- ]
- PHP Installation
- sudo apt-get install php libapache2-mod-php -y
- sudo service apache2 restart
- [ cd /var/www/html
- sudo nano index.php
- <?php echo "Hello World"; ?>
- sudo rm index.html
- ]
- MySql Installation
- sudo apt-get install mysql-server php-mysql -y
- sudo service apache2 restart
- Phpmyadmin Installation
- sudo apt-get install phpmyadmin -y
- default username for phpmadmin is phpmyadmin
- //To change user
- sudo mysql --user=root mysql
- CREATE USER 'piphpmyadmin'@'localhost' IDENTIFIED BY 'pihome2018';
- GRANT ALL PRIVILEGES ON *.* TO 'piphpmyadmin'@'localhost' WITH GRANT OPTION;
- FLUSH PRIVILEGES;
- Edit /etc/dbconfig-common/phpmyadmin.conf file updating username and password values in the following sections.
- # dbc_dbuser: database user
- # the name of the user who we will use to connect to the database.
- dbc_dbuser='piphpmyadmin'
- # dbc_dbpass: database user password
- # the password to use with the above username when connecting
- # to a database, if one is required
- dbc_dbpass='pihome2018'
Advertisement
Add Comment
Please, Sign In to add comment