I’m running Ubuntu 18.04 with nginx/1.14.0. I have been running PHP 7.2 but some of my web applications require a newer php for security reasons. Since it is nginx, I use PHP-FPM. I used apt to …
Tag: ubuntu-18.04
Running PHP locally with Ubuntu
I am using Ubuntu 18.04 on Google Cloud Platform and I’m trying to run a test file called login.php. The path is /var/www/login.php. Whenever I try running it, I use sudo php -f /var/www/login.php then check http://localhost/var/www/login.php on my web browser. However, my web browser returns with This site can’t be reached, localhost refused to connect. I have looked everywhere
ffmpeg command executes via command line, but not via PHP script
I am working on a simple video upload and compression system and I am currently using the following process. First Step I use a multipart/form-data to upload the original video file, which I store in /var/www/site/videos_pre/video.mp4. My public folder is var/www/site/public_html/. I store an entry in my database with the video information. Second step I have a converter process which
MySQL query returns columns in different order after update
One of my programs was using this query to get the details of a selected table’s columns: SELECT c.COLUMN_NAME as column_name, c.COLUMN_TYPE as column_type, c.CHARACTER_MAXIMUM_LENGTH …