Skip to main content

How to Install Apache, PHP, and MySQL on Virtual Private Server (VPS) Centos

How to Install Apache, PHP, MySQL on Virtual Private Server (VPS) Centos - Now I will try to share how to setup VPS. What is VPS?? you can klik here.
There are many the example of webserver is Apache, nginx, etc.

Now, I will explaining How to Install Apache, PHP, MySQL on Virtual Private Server (VPS) Centos:

First, INSTALL MYSQL
yum install mysql mysqlserver
After it, Let's we setup mysql for runnung automatic when starting up
chkconfig –levels 235 mysqld on
And than, start mysql using command
/etc/init.d/mysqld start
or
service mysqld start 
Creating password for mysql database

mysqladmin -u root password yourpassword
mysqladmin -h server.latihan.com -u root password yourpassword
Second , INSTALL APACHE2
yum install httpd
 Let's we setup apache for runnung automatic when starting up
chkconfig –levels 235 httpd on
 And than, start apache using command
/etc/init.d/httpd start
or
service httpd start
And than, test apache using web browser, access your VPS IP or if you are using Server PC write http://localhost or http://127.0.0.1
If you are see Apache 2 Test Page, it is work :D
In the CentOS, the default of directory webserver is /var/www/html
and files of configuration is on /etc/httpd/conf/httpd.conf and direktory /etc/httpd/conf.d/

Third, INSTALL PHP5
After you are install Apache, you can install PHP using command
yum install php
And than, restart your apache
/etc/init.d/httpd restart
or
service httpd restart 
You can testing the service of php using this file. run below command
vi /var/www/html/info.php
Then, press i , and than insert/write the script of below
<?php
phpinfo();
?>
Then, press ESC, then :w and exit :q
After it, you can check it file on your browser, access using http://ipvps/info.php IP VPS  or localhost http://localhost/info.php or http://127.0.0.1/info.php

Fouth, SETTING PHP5 SUPPORT ON MYSQL
For php service can supporting on MySQL, so we must install moduls of php, you can search moduls of php using this command
yum search php
Install the moduls
yum install -y php php-devel php-gd php-mbstring php-mcrypt php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel 

And than, restart your apache
/etc/init.d/httpd restart
or
service httpd restart 
Finish, Now your CentOS were running nginx apache2 webserver, PHP, and MySQL.

Paper 4Share -  How to Install Apache, PHP, MySQL on Virtual Private Server (VPS) Centos

Comments

Popular posts from this blog

eXploit WP Themes Brainstorm Arbitrary File Upload Vulnerability

Hello World ; Malam Fans, Please Say Hello Haters :* xixixhi, Nuenomaru disini,  Sekarang Nue akan Share   Tutorial Deface dengan eXploit WP Themes Brainstorm Arbitrary File Upload Vulnerability * ini exploit lama sih wkwkw exploit ini salah satu bug/celah yang ada pada theme di CMS WordPress. iseng2 aja share, Kali aja masih  crotz  wkwkw * yg master minggir dlu ;* Lanjut intip tutor ae gaes :* mau sampai kapan ?! Dork: inurl:/wp-content/themes/brainstorm (Selebihnya kebangin lg menggunakan imajinasi vokepers kalian, biar dpt yg vuln n verawan) 1. Dorking di search Engine 2. pilih salah satu web target yg pengen ente tusb0l pak wkwk, lalu masukan exploitnya. exploit: /[path]/ /wp-content/themes/brainstorm/functions/jwpanel/scripts/uploadify/uploadify.php 3. Vulnerability ~ Blank Kurang lebih sih gituh awkkaw~ 4. Buat File Baru Berekstensi .php Contoh brain.php Dan Simpan Script Berikut Di Directory C:/XAMPP/php Masukan Script Berikut Edit-Edit Dikit dan t...

Method Amazon Terbaru + Seller

Hallo Sobat Cyber, Kali Ini Saya Akan Membagikan Method AMAZON. Mungkin Sobat Sudah Pada Tahu Apa Itu AMAZON, Dan Sudah Tahu Juga Method AMAZON Bagi Yang Hoby Carding. Tapi Masih Ada Juga Sobat Yang Belom Tahu Method Untuk Carding Di AMAZON. Bagi Sobat Yang Penasaran Method Amazon, Silahkan Ikuti Tutorial Dari Saya, Cekidot : Alat Tempurnya : Akun Amazon VPN Premium, ane sih pake hma Jika sobat punya akun uk,fr,de,it,dll. loginnya di amazon . com aja, pake seller yang dibawah, jadi misalkan agan punya akun IT, akun itu gaperlu selalu login di amazon.it, di amazon . com juga bisa.Tapi jika sobat punya seller sendiri sillahkan gunakan :D boleh di amazon manapun :v Jika sobat co sebaiknya 1 1 dulu, setelah prepairing silahkan order lagi.   METHODE PAKE AKUN BULE (BILL=SHIP) : -Siapkan akun amazon live pastinya harus have card -Connect VPN sesuai negara cc akunnya, lalu clear cookies and chache - Terus Buka Check2ip.com dan atur tanggal dan waktu nya agar tidak ada yang merah -Bu...

How To Install Xpath Automated Sqli tool on Windows

Assalamualaikum warohmatullah wabarokatuh ^_^ Download Xpath Automated Sqli tool Mirror 1 Mirror 2 Bahan-Bahan : -Python27 -Prettytable -Requests -Colorama Langkah-langkahnya soub : 1. Install Python :v 2. Install Module  [ Prettytable ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install prettytable 3. Install Module [ Requests ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install requests 4. Install Module [ Colorama ] Buka CMD, Masuk ke Directory C:/Python27/Scripts kemudian eksekusi perintah berikut : C:\Python27\Scripts>pip install colorama 5.  Berhasil Terinstall ^_^ Cara pemakaiannya : xpath.py -u http://www.test.com/index.php?id=1 --dbs xpath.py -u http://www.test.com/ --data "index.php?id=1" --dbs Yang Mau bertanya silahkan di kolom komentar