How to downgrade PHP

Using an example, I will downgrade PHP in Ubuntu 18.04, in which version 7.2 is installed by default. I do not recommend downgrading PHP, since newer versions are more productive and close vulnerabilities, but there are times when you need to run an old script or engine that does not work on newer versions of PHP, and it is very difficult to fix the code due to the fact that there are a lot of files.

Continue reading “How to downgrade PHP”

Asterisk Call Forwarding

Let me give you an example of setting call forwarding in Asterisk.
For example, on Grandstream IP phones, you can enable redirection by the functions of the phone itself, but if the phone is far away and there is no way to do it on it, but it is possible to log in using the SIP number of this phone, then to activate call forwarding, you can make a voice menu when dialing a certain number, for example, *21 to activate call forwarding and enter the phone number to which calls will be forwarded, and *22 to cancel call forwarding.

Continue reading “Asterisk Call Forwarding”

MySQL Error Solution: Can’t create table ‘tablename’ (errno: 150)

MySQL error: Can’t create table ‘tablename’ (errno: 150) can occur when you, for example, upload a backup and MySQL is powered to create table 1 which refers to table 2, which essentially does not exist yet. You can solve by inserting the lines at the beginning in the backup:

Continue reading “MySQL Error Solution: Can’t create table ‘tablename’ (errno: 150)”