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

How to install CUCM 8.0.2 on Vmware | Call Manager Installation Guide

CUCM is a software-based call-processing component which serves as the main engine for Cisco VOIP infrastructure. This article can be used as a reference for your CUCM installation, This article can be used for any version of CUCM like 8.0, 8.6, 9.1 or 10.5. Let's jump to the installation directly. Make sure you have.. Before we begin, I want to make sure that you have the below softwares installed in your machine. Vmware Workstation Bootable Cisco Unified Call Manager ISO File GNS3 (Optional) - To Configure NTP Server A minimum of 2GB RAM and 80 GB HDD for Virtual Machine At this stage I assume that you have both Vmware Workstation and GNS3 installed. During installation you will be prompted to enter NTP server details. Follow the below steps to make a router to act as a NTP server in GNS3. Open ncpa.cpl from Run window. Find a Vmware network adapter. Double click the adapter and configure a private range IP, for example 120.0.0.1. Next open GNS3, Put a router and take console. Pa...

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...

6 Url Shorteners Yang Menghasilkan Uang Selain AdF.ly

Salam sobat GBX nah di pertemuan kita kali ini ane akan membahas 6 Url Shorteners Yang Menghasilkan Uang Selain AdF.ly seperti yang anda tau adf.ly adalah url shortener terbaik yang membayar kita karena telah menggunakan jasannya, tapi selain adf.ly ternyata masih banyak lagi Url Shorteners Yang Menghasilkan Uang, sekarang kita lihat saja ulasan di bawah.  6 Url Shorteners Yang Menghasilkan Uang Selain AdF.ly 1. Adfly adf.ly Yup yang ini memang patut diletakkan di peringkat satu ya, Adfly sudah ada dan terpercaya sejak bertahu-tahun lalu dan sudah menjadi pemendek link / url terbaik selama ini.  Selain menyediakan fasilitas penyingkat url, adfly juga merupakan situs penghasil dollar yang sudah sangat terkenal (melalui Pay Per Click dan Referal). Banyak juga teman-teman di internet yang sudah sukses mendapatkan dollar lho. (adfly ini sudah terpercaya dan ya semoga terus aman begitu dech). Komisi yang telah anda dapatkan dari adfly ini bisa langsung di transfer ke pay...