Laravel - Forbidden You don't have permission to access / on this server

Please change .htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews

    RewriteEngine On
    DirectoryIndex index.php # This line does the trick

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Create a REST service using Go Language and BeeGo Framework.

Go is an Open Source programming language developed by Google Inc.
To install go latest:

Unzip in /usr/local directory:

sudo tar -C /usr/local -xzf go1.9.1.linux-amd64.tar.gz
tar -C ./ -xzf go1.9.1.linux-amd64.tar.gz
Then, modify /etc/profile file, add this line:

export PATH=$PATH:/usr/local/go/bin
also, add these lines in /home/$USER/.profile file:

export GOPATH=$HOME/golangProjects
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
Installing some libraries or dependencies for Golang
Web Frameworks


BeeGo is a Web Framework to develop using Golang Web Applications or RESTful services, you can find more information pressing here.
You can install on local writting this on terminal:

go get
go get
Then, move the golangProjects/bin/bee binary to go/bin directory.
REST Service REST(REpresentational State Transfer) is an architecture that use HTTP protocol which…

Membuat User Baru dan Grant Permissions di MySQL

Just For Fun
Membuat User Baru dan Grant Permissions di MySQL
Untuk tulisan yang saya tandai merah, silahkan disesuaikan saja

Tentang MYSQL
MySQL adalah open source database management system yang sangat populer dikalangan programmer, khususnya programmer PHP.

Untuk grant permission saya buat untuk project yang sudah di live server. Untuk meminimalisir hilangnya drop database. Namun untuk development dilocal saya pakai full acces.

Membuat User MySQL Baru
Sebelumnya sobat smua pasti sudah punya superuser dari database mysql, biasanya ini saat pertama kali install mysql/mariadb di server.

Silahkan buka terminal server sobat lalu jalankan perintah berikut:

mysql -u [username database] -p 

contoh :
mysql -u root -p

Setelah itu muncul permintaan mengisi password, dan lalu masuk ke MySQL shell,

Jalankan perintah berikut untuk membuat user

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
cotoh :

CREATE USER 'toko'@'localhost' IDENTIFIED BY &#…

Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo
I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert
Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You'll be asked for the content of the CSR file when ordering the certificate.

First :
open your terminal

mkdir /etc/nginx/ssl
cd /etc/nginx/ssl

and run

openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr

This gives you two files:

example_com.key -- your Private key. You'll need this later to configure ngxinx.
example_com.csr -- Your CSR file.

Now, purchase the certificate [1], follow the steps on their site, and you should soon get an email with your PositiveSSL Certificate. It contains a zip file with the following:

1. klik
2. Select your product, for example InstantSSL …

Install Nginx, PHP 7, MariaDB 10 (LEMP) on CentOS 7

yum update

yum install epel-release

yum install nginx

systemctl start nginx

systemctl enable nginx

MariaDB 10
vi /etc/yum.repos.d/MariaDB.repo


name = MariaDB
baseurl =

yum install MariaDB-server MariaDB-client

systemctl start mariadb Y, Y, Y, Y mysql_secure_installation

systemctl enable mariadb

add the Webtatic repo:

rpm -Uvh


yum install php70w

see if it works or not

php -v

Search available modules

yum search php70

install modules you need

yum install php70w-xml php70w-soap php70w-xmlrpc php70w-mbstring php70w-json php70w-gd php70w-mcrypt php70w-mysql 
yum install php70w-intl php70w-tidy
yum install php70w-pecl-redis 
yum install php-pecl-mongodb
yum install php70w-fpm
yum install php70w-devel php70w-pear
yum install php70w-pecl-apcu php70w-opcache

vi /etc/php.ini

find cgi.fix_pathinfo=1 and then replace it with…

How can I copy the contents of a folder to another folder in a different directory using terminal?

How can I copy the contents of a folder to another folder in a different directory using terminal?

Yes OF Course

You can copy the content of a folder /source to another existing folder /dest with the command cp -a /source/. /dest/ The -a option is an improved recursive option, that preserve all file attributes, and also preserve symlinks. The . at end of the source path is a specific cp syntax that allow to copy all files and folders, included hidden ones. muhamad tobiin tobidsn muhamad tobiin tobidsn@gmail ahmad muhamad tobiin ahmad muhamad tobiin tobidsn muhamad tobiin tobidsn@gmail ahmad muhamad tobiin ahmad muhamad tobiin tobidsn muhamad tobiin tobidsn@gmail https://www.…

How To Set Up Apache Virtual Hosts on CentOS 7

Introduction The Apache web server is the most popular way of serving web content on the Internet. It serves more than half of all of the Internet's active websites, and is extremely powerful and flexible.
In this guide, we will walk through how to set up Apache virtual hosts on a CentOS 7 VPS. During this process, you'll learn how to serve different content to different visitors depending on which domains they are requesting.
In this case, my office requires me to use apache. Prerequisites Before you begin with this guide, there are a few steps that need to be completed first.
You will need access to a CentOS 7 server with a non-root user that has sudo privileges. If you haven't configured this yet, you can run through the CentOS 7 initial server setup guide to create this account.
You will also need to have Apache installed in order to configure virtual hosts for it. If you haven't already done so, you can use yum to install Apache through CentOS's default softw…