Fast Tip #2 – Restart apache without interrupt the current requests(threads) [linux]

Sometimes we need to restart the web server apache in order to reload the new settings, for example, you added some new host config. But we don’t want that the current requests be lost, and we then don’t want that this reload of settings cause problems for the users.


Reload the settings using the command service

$ sudo service apache2 reload 


Reload the settings using the command service

$ sudo service httpd reload 

For ALL distributions:

Reload the settings using the command apachectl

$ sudo apachectl -k graceful 

PHP7 with PDO_OCI and Oci8 using Docker

With docker we can run a container in several ways, we can download ready-made images that have the programs we want, as well as we can build our own images from a Dockerfile.

As I’m studying docker, I created an image that builds a PHP development environment with the Oracle database libraries installed.

I will be making available the image and the Dockerfile with the steps if you want to create your own image or modify it according to your needs.

I will not show how to install docker in you machine, there are a lot o materials about that on the internet, after install the docker, choose one option below.

Continue reading “PHP7 with PDO_OCI and Oci8 using Docker”

Fast Tip #1 – show the 100 biggest files [linux]

I will be starting a new serie, where I will give fast and simple tips, but sometimes that makes a whole difference.

The first tip is: How to show the 100 biggest files from a directory and its subdirectories.

$ du -a -h | sort -h -r | head -n 100 

If you want to know more about the command du, You can see its help page with the command:

$ du --help 

Installing Gogs(git), Nginx, MariaDB on Linux Ubuntu/Mint

The Microsoft bought the GitHub for US$ 7,5 Billions, and the  internet got wild, you can continue using the GitHub,  according to Microsoft, it will keep github as it is.

There are several alternatives as GitLab and the BitBucket, also there are options that are free source/open source that you can install there in your server. The GitLab has a Community version, it is written in Ruby and has a lot of resources, because it has many resources it demands at least a computer with the minimum of  4 GB of memory Ram, to old modests servers we have available the Gogs written in Golang, it is simple but it meets all our basic needs to whom uses the GitHub and it can be installed there in your old computer with 512 MB of memory Ram.


Continue reading “Installing Gogs(git), Nginx, MariaDB on Linux Ubuntu/Mint”

Installing PDO Oracle and OCI8 from PHP7 on Ubuntu/Mint (Oracle 11.2)

If you are facing problems or if you already had headache to install OCI8 and PDO_OCI modules for Oracle as me, here goes a step by step from what has worked for me. I hope that it helps you too.

The steps in this tutorial require that the user has root privileges.

If already have installed the Apache and the PHP, You only have to verify if your computer has all PHP packages listed on step 2.

Step 1 – Install Apache .

Open the terminal and type the follow commands:

sudo apt-get update
sudo apt-get install apache2

After install the Apache, try on the browser if Continue reading…

My history with the free software world

My history with the free software (as in freedom), has long date. I’ve begun to try to use when I was in the college, about 2006, I didn’t begin by encourage of my University, but I began because a friend of college encouraged me. I think that is a mistake courses in the area of technology don’t encourage to use free software, because free software gives more liberty and possibilities for who is learning to program. But coming back to my experience, I’ve tried to begin in one distribution for expert users in Linux, the Slackware, but as soon as I began, I gave up, due the difficult to found drivers to a modem of mine. I also had to compile the majority of the programs for this distribution. My Internet in that time was through a dial up modem 56k and I used only on the weekends because on the weekends was cheaper than Monday to Friday. After that I changed to Kurumin, a Brazilian distribution based on Kinnopix who already had Continue reading…