Categories
Apache Hosting Linux MySQL PHP

install php 7.4, mysql, apache, phpmyadmin on ubuntu 18

Being a PHP developer we frequently come across requirements where we need to install xampp or Apache, PHP, Mysql on ubuntu system (whether server or on local machine). It is not very straight forward. As different versions of PHP are released over time so there are different apt PPA (personal package archives) that maintains the […]

Categories
Apache Cpanel Linux PHP

Linux find php file by process id

Sometimes on dedicated hosting, there can be some scripts that will start consuming 100% of CPU and all the websites will stop working. We can find out the process list using this command: It will tell us the process id, but still, we won’t be able to find out which PHP file might have created […]

Categories
Apache Hosting PHP

PHP mail() not working?

** If you are using any dedicated server, cloud instance (like AWS, Linode, Digital Ocean Droplet, etc.), and PHP mail() function or wp_mail() isn’t working for you? If yes, then this resource can help you ** First, we need to understand how php mail() works. PHP mail function invokes any mail server to send the […]

Categories
Laravel Apache

Laravel remove public from url

When you setup a new laravel website you want to get rid of that “/public” in the url. Here is a direct code which you can paste into .htaccess file of root to remove that annoying “public” Or if you have domain access then you can just point your domain to public folder directly.

Categories
Hosting Apache Linux

Automated Script To Create Virtual Host on Linux

It is always complicated to create virtual hosts every time you setup a new website especially for developers and webs designers who do it regularly. This script will automate this process of creating virtual hosts with a single command: sudo virtualhost create mysite.dev Download From Github Credits: Thanks to https://github.com/RoverWire for this useful script Installation […]