Posts

Showing posts from November, 2022

root .htaccess file when laravel project upload in cpanel

 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule>

Understanding file permissions

Image
This string of letters, drwxrwxrwx , represents the permissions that are set for the directory. Each number can have one of eight values ranging from 0 to 7 . Each value corresponds to a certain setting of the read, write and execute permissions, as explained in the following table. For Example: 777 is the same as rwxrwxrwx 755 is the same as rwxr-xr-x 666 is the same as rw-rw-rw- 744 is the same as rwxr--r--

Deploy laravel application to digital ocean droplet

ssh root@192.168.0.1 adduser coderstation usermod -aG sudo coderstation su - coderstation sudo apt-get install apache2 sudo apt-get install php sudo apt-get install git sudo apt-get install composer sudo apt install mysql-server sudo mysql mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; mysql> exit mysql -u root -p mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; sudo mysql_secure_installation mysql>CREATE USER 'sammy'@'localhost' IDENTIFIED BY 'password'; mysql>ALTER USER 'sammy'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; mysql>GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'sammy'@'localhost' WITH GRANT OPTION; mysql>FLUSH PRIVILEGES; mysql> exit cd /var/www/htm git clone project cd project sudo apt-get install php-xml sudo apt-get install