Advertisement
Code_ID

Bitnami LAMP VM [ Linux Local Server ] Walkthrough

Sep 18th, 2017
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. ===============================|
  2. https://youtu.be/Ei5axPDKSG8
  3. ===============================| Part 1: Installing and Running!
  4.  
  5. LAMP Virtual Machines:
  6. https://bitnami.com/stack/lamp/virtual-machine
  7.  
  8. 1. Import VM ( Rename it : Local Server 5.6.31 )
  9. 2. Set Network to NAT
  10. 3. Enter VM (Local Server 5.6.31) and Set New Password
  11. Username: bitnami
  12. password: bitnami
  13. Set New Password
  14. passwd command
  15. New one : 13371337
  16.  
  17.  
  18. (To change Password Use "passwd" command)
  19.  
  20. 4. Enter ip: 192.168.154.137 in your Browser
  21. 5. Congratulations!
  22.  
  23. [+] Note1: To Exite The VM Windows: alt + ctrl
  24. [+] Note1: To Display VM IP Address [sudo ifconfig]
  25. Other Command: .. id - sudo id - whoami - uname -a
  26. --------------------------------------------------------------
  27. //== Testing The Server:
  28.  
  29. 1. cd /opt/bitnami
  30. 2. cp docs/phpinfo.php apache2/htdocs
  31.  
  32. Open : 192.168.154.137/phpinfo.php [OK]
  33.  
  34. [+] Create a file in htdocs:
  35.  
  36. 1. cd htdocs (Enter Folder Command)
  37. 2. touch hello.txt (Creat a file command)
  38. 3. vi hello.txt (to insert text = i)
  39. To save file: [Esc] + [:wq]
  40. Exite vi without saving:[Esc] + [:q!]
  41.  
  42. Open : 192.168.154.137/hello.txt [OK]
  43.  
  44. //== Set a Domain Name To The Server IP
  45.  
  46. in Windows:
  47. C:\Windows\System32\drivers\etc
  48.  
  49. 1. Edit hosts File with Notepad++
  50. add :
  51. 192.168.154.136 www.homel4b.com
  52.  
  53. [Note: Don't Use taken Domains like facebook.com - google.com or whatever]
  54.  
  55.  
  56. ===============================| Part 2 SSH : Configure The SSH Server!
  57.  
  58. How to enable the SSH server?
  59.  
  60. 1 . sudo rm -f /etc/ssh/sshd_not_to_be_run
  61. 2 . sudo systemctl enable ssh
  62. 3 . sudo systemctl start ssh
  63.  
  64. - Connect To SSH Server:
  65.  
  66. You can use : [ MobaXterm - SmarTTY - WinSCP - PuTTY - KiTTY - .. ]
  67.  
  68. Hostname: 192.168.154.137 or www.homel4b.com
  69. Username: bitnami
  70. password: 13371337
  71.  
  72. - We can Change The MOTD Banner Messages Like This:
  73. 1. sudo vi /etc/motd
  74. Insert your code and save it ( Esc + :wq )
  75. exit and login again
  76. >> patorjk.com/software/taag/
  77. ===============================| Part 3 SSH : Upload files To The server With SFTP
  78.  
  79. == // I Will Ues WinSCP
  80. SFTP
  81. Hostname: 192.168.154.137 | www.homel4b.com
  82. Username: bitnami
  83. Password: Your Password
  84.  
  85. == // Upload Ur Scripts!
  86. Change Directory Permissions To 777
  87.  
  88. ===============================| Part 4 SSH : Access phpMyAdmin
  89. How can I access phpMyAdmin:
  90.  
  91. [+] Methode 1: SSH TUNEL
  92.  
  93. - KiTTY
  94. Connection -> SSH -> Tunnels
  95. create a secure tunnel by forwarding a port (the "destination port")
  96. on the remote server to a port (the "source port")
  97. on the local host (127.0.0.1 or localhost).
  98.  
  99. http://localhost:8888/phpmyadmin/ [OK]
  100. Username: root
  101. Password: bitnami
  102.  
  103. [+] Methode 2: Enable access To phpMyAdmin from hosts other than 127.0.0.1 (127.0.0.1 VM Localhost)
  104. by editing the /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf file
  105. and modifying the Allow and Require directives as below:
  106.  
  107. - WinSCP
  108. <IfVersion < 2.3 >
  109. Order allow,deny
  110. !!!! Allow from all
  111. Satisfy all
  112. </IfVersion>
  113. <IfVersion >= 2.3>
  114. !!!! Require all granted
  115. </IfVersion>
  116.  
  117. sudo /opt/bitnami/ctlscript.sh restart apache
  118.  
  119.  
  120. ./end
  121.  
  122. NERO
  123. s3c-0@hotmail.com
  124. 2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement