Posts

Showing posts from May, 2017

Convert MBR to GPT

Convert MBR to GPT One of the main challenges that we face while converting MBR to GPT is that conversion is possible from MBR to GPT, only if there are no partitions or volumes present in the disk – which makes it impossible to convert without data loss. I still don’t know why Microsoft hasn’t offered a simpler solution to this problem. Luckily there are some solutions that will help you in converting MBR to GPT, without data loss. Before you start, it is in any case always a good idea to BACK UP YOUR DATA first to a safe place. 1. Convert MBR to GPT using Diskpart This method you have to backup all your data and delete all partitions and volumes. Then use the DISKPART command. Open command prompt and type in DISKPART and press Enter Then type in list disk  (Note down the number of the disk that you want to convert to GPT) Then type in select disk number of disk Finally, type in convert gpt.

PHPMailer SMTP ERROR

PHPMailer SMTP -> ERROR: Failed to connect to server: Permission denied (13) fix This is an error produced by PHPMailer. On CentOS, Red Hat and similar distributions, you will need to set a few things for PHPMailer to send emails. First, try to out put the settings you currently have: $ getsebool httpd_can_sendmail httpd_can_sendmail --> off $ getsebool httpd_can_network_connect httpd_can_network_connect --> off If you get something similar, you should set these settings on. $ setsebool -P httpd_can_sendmail 1 $ setsebool -P httpd_can_network_connect 1 If you get error messages like: Cannot set persistent booleans without managed policy. Could not change policy booleans You may have the need to run these commands as root and you may need to sudo. $ sudo setsebool -P httpd_can_sendmail 1 $ sudo setsebool -P httpd_can_network_connect 1 Now, try sending emails using your script!