jeudi 29 décembre 2016

lundi 12 décembre 2016

[Linux] Install, Configure and Use NGINX on Ubuntu

  Aucun commentaire
Hello everyone,

Installing NGINX on Ubuntu is very easy, just follow the following commands:
sudo apt-get update
sudo apt-get install nginx 
For those who want to install NGINX but they have Apache pre-installed in their Linux, and they can't access to NGINX files and web pages, here's a solution:
Apache uses the :80 as a default port, and NGINX do so, to fix this problem we must change the NGINX port to something else, let's take :90 as example.

Here's a few lines that help you to change NGINX default port:
vi /etc/nginx/sites-available/default
Change the lines :
server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

To :
server {
        listen 90 default_server;
        listen [::]:90 default_server ipv6only=on;
 Then save the file ... and restart NGINX service by typing the command below:
service nginx restart
That's it!

Now go the address : http://ip_of_your_server:90  (change ip_of_your_server with your server ip)
Then you should get this page :


To add files & web pages go to this directory:
cd /usr/share/nginx/html/

jeudi 10 novembre 2016

dimanche 30 octobre 2016

Redirect to www. from .htaccess

  Aucun commentaire


Hey,
Here some lines of code that redirects from your non-www domain to your www. domain.

i.e :
I want to redirect from example.com to www.example.com

Add the code below to your .htaccess file :
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

samedi 8 octobre 2016

How to install BeautifulSoup in MAC

  Aucun commentaire


Hey,
Once again here's the command that allows you to install python BeautifulSoup library for Mac.
Run the command belown in your terminal.
pip install beautifulsoup4
If you're facing problems importing the BeautifulSoup library just use the code below:
 from bs4 import BeautifulSoup
That's it!

vendredi 23 septembre 2016

Set Up Url Rewriting in Ubuntu Apache2

  Aucun commentaire


Hey,
We are going to do some Url Rewriting with a couple commands.
I'm using Ubuntu 14.04 :D
sudo apt-get update
 sudo a2enmod rewrite
 sudo service apache2 restart
 sudo vi /etc/apache2/sites-enabled/000-default.conf
Inside that file, you will find the <VirtualHost *:80> block on line 1. Inside of that block, add the following block:
 <Directory /var/www/html>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all

           </Directory>

sudo service apache2 restart
Now, create the .htaccess file and put inside it the text below:

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.html$ $1.php [L] 

Then,
sudo service apache2 restart
That's it, now you will be able to access to your .php files by changing the ".php" extension to ".html"

dimanche 11 septembre 2016

PES 2016 [PC] [5GB] Download

  Aucun commentaire


Pro Evolution Soccer 2016 Minimum Requirements
CPU: ntel Core 2 Duo @ 1.8 GHz. AMD Athlon II X2 240 or equivalent processor
CPU Speed: Info
RAM: 1 GB
OS: Windows 8.1 / 8 / 7 / Vista SP2
Video Card: nVidia GeForce 7800 / ATI Radeon X1300 / Intel HD Graphics 2000 or better
Click here for the latest video card drivers
Sound Card: Yes
Free Disk Space: 8 GB


Pro Evolution Soccer 2016 Recommended Requirements
CPU: Intel Core i3 530 AMD Phenom II X4 925 or equivalent processor
CPU Speed: Info
RAM: 2 GB
OS: Windows 8.1 / 8
Video Card: nVidia GeForce 7800 / ATI Radeon X1300 / Intel HD Graphics 3000 or better
Click here for the latest video card drivers
Sound Card: Yes
Free Disk Space: 8 GB

Click on the download button below