rabirajkhadka

Installation Instruction Rpi-ran

Dec 9th, 2018
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. https://drive.google.com/open?id=1zpmMXyRr-WTonyclNmPRUDTGRkroqE9N
  2. https://goo.gl/WdPcC3
  3.  
  4. Update Repository list
  5. sudo apt-get update
  6.  
  7.  
  8. Apache Installation
  9. sudo apt-get install apache2 -y
  10. sudo a2enmod rewrite
  11. sudo service apache2 restart
  12.  
  13. [
  14. .htaccess configuration GoTo
  15. sudo nano /etc/apache2/apache2.conf
  16. Change the file to make /var/www section like below
  17. <Directory /var/www/>
  18. Options Indexes FollowSymLinks
  19. AllowOverride All
  20. Require all granted
  21. </Directory>
  22. Add following line at EoL of file
  23. Include /etc/phpmyadmin/apache.conf
  24. ]
  25.  
  26. PHP Installation
  27. sudo apt-get install php libapache2-mod-php -y
  28. sudo service apache2 restart
  29.  
  30. [ cd /var/www/html
  31. sudo nano index.php
  32. <?php echo "Hello World"; ?>
  33. sudo rm index.html
  34. ]
  35.  
  36. MySql Installation
  37. sudo apt-get install mysql-server php-mysql -y
  38. sudo service apache2 restart
  39.  
  40. Phpmyadmin Installation
  41. sudo apt-get install phpmyadmin -y
  42.  
  43. default username for phpmadmin is phpmyadmin
  44.  
  45. //To change user
  46. sudo mysql --user=root mysql
  47. CREATE USER 'piphpmyadmin'@'localhost' IDENTIFIED BY 'pihome2018';
  48. GRANT ALL PRIVILEGES ON *.* TO 'piphpmyadmin'@'localhost' WITH GRANT OPTION;
  49. FLUSH PRIVILEGES;
  50.  
  51. Edit /etc/dbconfig-common/phpmyadmin.conf file updating username and password values in the following sections.
  52.  
  53. # dbc_dbuser: database user
  54. # the name of the user who we will use to connect to the database.
  55. dbc_dbuser='piphpmyadmin'
  56.  
  57. # dbc_dbpass: database user password
  58. # the password to use with the above username when connecting
  59. # to a database, if one is required
  60. dbc_dbpass='pihome2018'
Advertisement
Add Comment
Please, Sign In to add comment