Online Notes
linux

Recent linux Snippets

  • How To Troubleshoot Socket Errors in MySQL – Ubuntu
  • How to remove .html, .php, etc (extension) from URL?
  • Ubuntu with Apache2: Installing and Configuring Your SSL Certificate
  • Create zip archive excluding specific Files & Directories
  • how to use sudo command to install .tar.gz?
  • Change ownership of the directory in ubuntu
  • failed to retrieve share list from server connection refused ubuntu 18.04
  • How to Fix ‘Failed to Retrieve Share List from Server’ in Ubuntu 12.04 / 11.10 when File Sharing with Windows
  • How To Change Your PHP Settings on Ubuntu 14.04 (Increase upload size in your php.ini)
  • MySQL Server Installed Without Password For Root On Ubuntu 17.10 / 18.04

Setup the right permission for the directories & files

  • Snippets

Setup the right permission for the directories:

1
sudo find /var/www/html/ -type d -exec chmod 755 {} \;

Setup the right permission for the files:

1
sudo find /var/www/html/ -type f -exec chmod 644 {} \;

 

Related posts

  • MySQL Server Installed Without Password For Root On Ubuntu 17.10 / 18.04
  • Remove all files from a directory?
  • Create zip archive excluding specific Files & Directories
  • Install cURL in your PHP installation
  • Reset MySQL root password
  • how to use sudo command to install .tar.gz?
  • How To Change Your PHP Settings on Ubuntu 14.04 (Increase upload size in your php.ini)
  • Remove Apache, MySQL and PHP 7 on Ubuntu Xenial #php #ubuntu #lamp
  • How To Install and Secure phpMyAdmin
  • failed to retrieve share list from server connection refused ubuntu 18.04

Recent Snippets

  • How to Install Angular on Ubuntu (18.04 & 16.04)
  • Install Node.js in Ubuntu
  • Angular CLI & Troubleshooting
  • Simple POJO Example - Employee
  • Hibernate Example Configuration File — hibernate.cfg.xml

Recent Examples

  • How to reverse Singly Linked List?
  • Find out duplicate number between 1 to N numbers.
  • Find out middle index where sum of both ends are equal
  • Write a singleton class in Java
  • Write a java program to reverse a string?

Recent Questions

  • What are the modules of spring framework?
  • List some of the Spring Framework Annotations?
  • How many types of association mapping are possible in hibernate?
  • Define persistent classes?
  • What is HQL?

  • Contact

All Right Reserved © Online Note