Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===============================|
- https://youtu.be/Ei5axPDKSG8
- ===============================| Part 1: Installing and Running!
- LAMP Virtual Machines:
- https://bitnami.com/stack/lamp/virtual-machine
- 1. Import VM ( Rename it : Local Server 5.6.31 )
- 2. Set Network to NAT
- 3. Enter VM (Local Server 5.6.31) and Set New Password
- Username: bitnami
- password: bitnami
- Set New Password
- passwd command
- New one : 13371337
- (To change Password Use "passwd" command)
- 4. Enter ip: 192.168.154.137 in your Browser
- 5. Congratulations!
- [+] Note1: To Exite The VM Windows: alt + ctrl
- [+] Note1: To Display VM IP Address [sudo ifconfig]
- Other Command: .. id - sudo id - whoami - uname -a
- --------------------------------------------------------------
- //== Testing The Server:
- 1. cd /opt/bitnami
- 2. cp docs/phpinfo.php apache2/htdocs
- Open : 192.168.154.137/phpinfo.php [OK]
- [+] Create a file in htdocs:
- 1. cd htdocs (Enter Folder Command)
- 2. touch hello.txt (Creat a file command)
- 3. vi hello.txt (to insert text = i)
- To save file: [Esc] + [:wq]
- Exite vi without saving:[Esc] + [:q!]
- Open : 192.168.154.137/hello.txt [OK]
- //== Set a Domain Name To The Server IP
- in Windows:
- C:\Windows\System32\drivers\etc
- 1. Edit hosts File with Notepad++
- add :
- 192.168.154.136 www.homel4b.com
- [Note: Don't Use taken Domains like facebook.com - google.com or whatever]
- ===============================| Part 2 SSH : Configure The SSH Server!
- How to enable the SSH server?
- 1 . sudo rm -f /etc/ssh/sshd_not_to_be_run
- 2 . sudo systemctl enable ssh
- 3 . sudo systemctl start ssh
- - Connect To SSH Server:
- You can use : [ MobaXterm - SmarTTY - WinSCP - PuTTY - KiTTY - .. ]
- Hostname: 192.168.154.137 or www.homel4b.com
- Username: bitnami
- password: 13371337
- - We can Change The MOTD Banner Messages Like This:
- 1. sudo vi /etc/motd
- Insert your code and save it ( Esc + :wq )
- exit and login again
- >> patorjk.com/software/taag/
- ===============================| Part 3 SSH : Upload files To The server With SFTP
- == // I Will Ues WinSCP
- SFTP
- Hostname: 192.168.154.137 | www.homel4b.com
- Username: bitnami
- Password: Your Password
- == // Upload Ur Scripts!
- Change Directory Permissions To 777
- ===============================| Part 4 SSH : Access phpMyAdmin
- How can I access phpMyAdmin:
- [+] Methode 1: SSH TUNEL
- - KiTTY
- Connection -> SSH -> Tunnels
- create a secure tunnel by forwarding a port (the "destination port")
- on the remote server to a port (the "source port")
- on the local host (127.0.0.1 or localhost).
- http://localhost:8888/phpmyadmin/ [OK]
- Username: root
- Password: bitnami
- [+] Methode 2: Enable access To phpMyAdmin from hosts other than 127.0.0.1 (127.0.0.1 VM Localhost)
- by editing the /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf file
- and modifying the Allow and Require directives as below:
- - WinSCP
- <IfVersion < 2.3 >
- Order allow,deny
- !!!! Allow from all
- Satisfy all
- </IfVersion>
- <IfVersion >= 2.3>
- !!!! Require all granted
- </IfVersion>
- sudo /opt/bitnami/ctlscript.sh restart apache
- ./end
- NERO
- s3c-0@hotmail.com
- 2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement