::rangkuman friendlist:: ubuntu

Pertama, tool tambahan: Notepad++, FileZilla.
Install Apache, PHP, MySQL, PHPMyAdmin.
—————————————————INSTALL Apache :
sudo apt-get update
sudo apt-get install apache2
——-TEST open link >>> http://localhost It works!

—————————————————INSTALL PHP :
sudo apt-get install php5
——Restart Apache :
sudo /etc/init.d/apache2 restart
——Buat file “phpinfo.php” dengan perintah :
sudo gedit /var/www/phpinfo.php
——isikan code dibawah ini :
<!–?php phpinfo (); ?>–>

SAVE & TEST open link >>> http://localhost/phpinfo.php

—————————————————INSTALL MySQL :
sudo apt-get install mysql-server
—-konfigurasi :
—-Pilih kata sandi
—-Ketik ulang kata sandi

—————————————————INSTALL PHPMyAdmin :
sudo apt-get install phpmyadmin
—-Configuring Phpmyadmin 1: Pilih OK
—-Configuring Phpmyadmin 2: Pilih NO
—-cp / copy to :
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d
—-Restart Apache
sudo /etc/init.d/apache2 restart
—-TEST open link >>> http://localhost/phpmyadmin/

—-Username: “root” (tidak pake tanda petik)
—-Password: (MySQL Password)
—————————————————+
sudo apt-get install libapache-mod-acct-mysql
sudo apt-get install libapache2-mod-php5 php5
sudo apt-get install php5-mysql
—————————————————-Start, Stop & Restart Apache :
sudo /etc/init.d/apache2 start (start apache)
sudo /etc/init.d/apache2 stop (stop apache)
sudo /etc/init.d/apache2 restart (restart apache)
—————————————————-Disable and enable autostart apache2 :
sudo update-rc.d -f apache2 remove (Disable)
sudo update-rc.d apache2 defaults (Enable)

—————————————————-INSTALL Nmap :
sudo apt-get install nmap
—————————————————-Disable & Enable Rewrite :
sudo a2enmod rewrite (enable)
sudo /etc/init.d/apache2 restart

sudo a2dismod rewrite (disable)
sudo /etc/init.d/apache2 restart
—————————————————-Check process apache :
ps ax | grep apache2
netstat -pln | grep 80
netstat -pln | grep 8080
—————————————————-Connect mysql server from ubuntu :
mysql -h ipaddress -u username -p
—————————————————-INSTALL SSH
sudo apt-get install ssh
—————————————————-Stop, Start & Restart SSH :
sudo /etc/init.d/ssh restart (restart ssh server)
sudo /etc/init.d/ssh start (start ssh server)
sudo /etc/init.d/ssh stop (stop ssh server)
—————————————————-Find folder/file name :
locate folder/file_name

—————————————————-Install libssl-dev :
sudo apt-get install libssl-dev

—————————————————-Delete file/folder from ubuntu system directory :
sudo rm /var/www/filename
sudo rm -rf /var/www/foldername

—————————————————-apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName :
sudo gedit /etc/apache2/httpd.conf
—–isikan code dibawah ini :
ServerName localhost
—–Save & restart apache :
sudo /etc/init.d/apache2 restart
—————————————————-Extract “file.tar.gz” to system directory from ubuntu

—–Contoh file nya ada di folder Downloads, nama file wordpress.tar.gz :

cd ~/Downloads
sudo cp wordpress.tar.gz /var/www
—–pindah directory :
cd /var/www
—–extract :
sudo tar xzvf wordpress.tar.gz

sudo rm wordpress.tar.gz (untuk menghapus file wordpress.tar.gz)

—————————————————-Percobaan  membuat file di directory /var/www/ :
Buat file “test.html” pada directory /var/www/dengan perintah :
sudo gedit /var/www/test.html
———isikan code dibawah ini : 

22

SAVE & TEST open link >>> http://localhost/test
—————————————————————————:)

—————————————————-Apache2 Modules:
to allow the dynamic loading of modules.
sudo apt-get install libapache2-mod-auth-mysql

See the /etc/apache2/mods-available directory, for additional modules.

to enable a module:
sudo a2enmod auth_mysql
sudo /etc/init.d/apache2 restart

to disable a module:
sudo a2dismod auth_mysql
sudo /etc/init.d/apache2 restart

—————————————————HTTPS Configuration :
to enable the mod_ssl module:
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart

to disable the mod_ssl module:
sudo a2dismod ssl
sudo /etc/init.d/apache2 restart

See the default HTTPS configuration file :
sudo gedit /etc/apache2/sites-available/default-ssl

to enable the mod_ssl module default :
sudo a2ensite default-ssl
sudo /etc/init.d/apache2 restart

You can access the secure server pages by typing https://your_hostname/url/ in your browser address bar.
—————————————————

 

About these ads
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: