Turtorial Instalasi CURL in Ubuntu

open terminal if php 5.6 or your php version sudo apt-get install php5.6-curlrestart sudo service apache2 restart ...

View More
  Dibaca 866 kali

Force https in subdomain

RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{HTTP_HOST} ^sub\.domain\.com$ [NC] RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] The differrences are: Specify port 80 not any port containing 80 as digits in the port number. Specify mail.fancyblue.net using No Case. If both conditions are met, redirect the {REQUEST_URI} to the secure server without duplicating Apache variables for {HTTP_HOST} and {REQUEST_URI}; any query string will not be affected. ...

View More
  Dibaca 880 kali

How to change URL phpmyadmin OR change phpMyAdmin port ?

change URL phpmyadmin : Edit /etc/phpmyadmin/apache.conf and comment (#) the first Alias directive like thath: Alias /phpmyadmin /usr/share/phpmyadmin to /change this /usr/share/phpmyadmin change phpMyAdmin port : Just to be clear, this is not a setting of PhpMyAdmin, it is a setting of the configuration of Apache2, and we need to create new VirtualHost for this purpose. 1. Understanding of the default configuration of PhpMyAdmin. By default (within Ubuntu 16.04) PhpMy ...

View More
  Dibaca 1473 kali

Enabling mod_rewrite in ubuntu apache server

Step 1 — Enabling mod_rewrite First, we need to activate mod_rewrite. Its available but not enabled with a clean Apache 2 installation. sudo a2enmod rewrite This will activate the module or alert you that the module is already enabled. To put these changes into effect, restart Apache. sudo systemctl restart apache2 mod_rewrite is now fully enabled. In the next step we will set up an .htaccess file that well use to define rewrite rules for redirects.   Step ...

View More
  Dibaca 881 kali

Server unable to read htaccess file, denying access to be safe

  And make sure the directory which contains .htaccess is readable and executable: the directory was set 750, then chmoded to 755 and it worked in terminal sudo chmod 755 access/folder_name/ ...

View More
  Dibaca 886 kali

sending email postfix with smpt gmail

Postfix is a Mail Transfer Agent (MTA) that can act as an SMTP server or client to send or receive email. There are many reasons why you would want to configure Postfix to send email using Google Apps and Gmail. One reason is to avoid getting your mail flagged as spam if your current server’s IP has been added to a blacklist. In this guide, you will learn how to install and configure a Postfix server on Debian or Ubuntu to send email through Gmail and Google Apps. For information on config ...

View More
  Dibaca 3055 kali

How to unzip a zip file from the Terminal?

If the unzip command isnt already installed on your system, then run: sudo apt-get install unzip After installing the unzip utility, if you want to extract to a particular destination folder, you can use: unzip file.zip -d destination_folder ...

View More
  Dibaca 886 kali

HOW TO Install php-zip on php 5.6 on Ubuntu

Try either sudo apt-get install php-zip or sudo apt-get install php5.6-zip Then, you might have to restart your web server. sudo service apache2 restart or sudo service nginx restart If you are installing on centos or fedora OS then use yum in place of apt-get. example:- sudo yum install php-zip or sudo yum install php5.6-zip and sudo service httpd restart ...

View More
  Dibaca 974 kali