SHOW:
|
|
- or go back to the newest paste.
| 1 | tutorial installasi server menyesuaikan kebutuhan script - Ubuntu 18.04 64bit | |
| 2 | login via putty ssh | |
| 3 | ||
| 4 | ||
| 5 | 1. apt-get update | |
| 6 | ||
| 7 | apt-get upgrade -y | |
| 8 | ||
| 9 | apt-cache pkgnames | grep php7.2 | |
| 10 | ||
| 11 | 2. apt-get install apache2 php php-cli libapache2-mod-php php-xml php-curl unzip php-sqlite3 nano wget | |
| 12 | ||
| 13 | pertanyaan jawab Y - enter | |
| 14 | ||
| 15 | 3. nano /etc/apache2/mods-enabled/dir.conf | |
| 16 | ||
| 17 | akan tampil seperti ini | |
| 18 | <IfModule mod_dir.c> | |
| 19 | DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm | |
| 20 | </IfModule> | |
| 21 | ||
| 22 | rubah index.html menjadi index.php , index.php menjadi index.html. intinya tempatkan index.php di depan. | |
| 23 | ||
| 24 | lalu klik CTRL+X, lalu Y , dan klik enter | |
| 25 | ||
| 26 | 4. nano /etc/apache2/sites-available/000-default.conf | |
| 27 | ||
| 28 | lalu paste kode dibawah ini disembarang tempat. | |
| 29 | ||
| 30 | <Directory /var/www/html/> | |
| 31 | AllowOverride All | |
| 32 | </Directory> | |
| 33 | ||
| 34 | lalu klik CTRL+X, lalu Y , dan klik enter | |
| 35 | ||
| 36 | ||
| 37 | 5. a2enmod rewrite | |
| 38 | ||
| 39 | - | 6. service apache2 restart |
| 39 | + | 6. systemctl restart apache2 |
| 40 | ||
| 41 | 7. cd /var/www/html | |
| 42 | ||
| 43 | 8. rm index.html | |
| 44 | ||
| 45 | 9. cd /opt/ | |
| 46 | ||
| 47 | 10. wget -c http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
| 48 | ||
| 49 | 11. tar -zxf ioncube_loaders_lin_x86-64.tar.gz | |
| 50 | ||
| 51 | - | 12. nano /etc/php5/apache2/php.ini |
| 51 | + | 12. nano /etc/php/7.2/apache2/php.ini |
| 52 | ||
| 53 | 13. copy kode dibawah ini, lalu paste di bawah [PHP] | |
| 54 | ||
| 55 | - | [zend] zend_extension = /opt/ioncube/ioncube_loader_lin_5.5.so |
| 55 | + | [zend] zend_extension = /opt/ioncube/ioncube_loader_lin_7.2.so |
| 56 | ||
| 57 | lalu klik CTRL+X, lalu Y , dan klik enter | |
| 58 | ||
| 59 | - | 14. service apache2 restart |
| 59 | + | 14. systemctl restart apache2 |
| 60 | ||
| 61 | 15. cd /var/www/html | |
| 62 | ||
| 63 | 16. nano info.php | |
| 64 | ||
| 65 | lalu paste kode | |
| 66 | <?php phpinfo();?> | |
| 67 | ||
| 68 | lalu klik CTRL+X, lalu Y , dan klik enter | |
| 69 | ||
| 70 | Terakhir. akses http://ipmu/info.php atau http://domainmu/info.php | |
| 71 | lalu CTRL+F cari ioncube, jika sudah ada maka script mu sudah siap untuk di upload. |