Web & Software Developer

Archive for “Bash, Shell, Terminal, Command Line”

Shell commands for command prompt (command line) and ssh terminal commands and code snippets.

Create a PHP info Test Page on Command Line

This will create a PHP info page so that you can test if your PHP server is working. This test file will be created quickly using the command line. Open a terminal and type: Open your web browser and type in the address bar “localhost/test.php” and press ‘enter’. You should see the PHP Info page. … Read more →

File Permissions for Local WordPress Development on LAMP

This permission scheme will avoid the “Unable to save – Permission denied – File is Read only” error when you try to save a file in your local /var/www/html/ directory. This will let you edit “Read only” files by adding you to the www-data group and granting the group permission to write to the files. … Read more →

Linux Chmod Permissions Cheat Sheet

Set the permissions for a file or directory by using the chmod command. Each row has 2 examples, one for setting that permission for a file, and one for a directory named ‘dir’. This works in any linux distro, such as Ubuntu, etc. Permission Command Examples Description rwx rwx rwx chmod 777 filenamechmod -R 777 … Read more →

Install a Local WordPress Development Environment in Ubuntu

These steps will install a local WordPress development environment, including Apache, MySQL, and PHP, so that you can develop WordPress plugins or themes on your local Ubuntu (or other Linux) computer. This has been tested on Ubuntu 16.04 LTS, Ubuntu 16.10, and Ubuntu 14.04 LTS. This also works on the LXDE light desktop, or Xubuntu, … Read more →