As per laravel docs:
----------------------
Directory Permissions
After installing Laravel, you may need to configure some permissions. Directories within the storage
and the bootstrap/cache directories should be writable by your web server or Laravel will not run.
Solution:
--------------
step1 - setting root directory owner and group
-------
sudo chown -R ubuntu:www-data /path/to/your/laravel/root/directory
step2 - setting file and folder permissions:
-------
sudo find /path/to/your/laravel/root/directory -type f -exec chmod 664 {} \;
sudo find /path/to/your/laravel/root/directory -type d -exec chmod 775 {} \;
step3 - then give the webserver the rights to read and write to storage and cache
-------
sudo chgrp -R www-data storage bootstrap/cache
step4 - then you need to give read and write permissions to the webserver for storage, cache and any other directories the webserver needs to upload or write too
-------
sudo chmod -R ug+rwx storage bootstrap/cache
Now, you're secure and your website works, AND you can work with the files fairly easily
Magento Installation | Php Magento Tutorial| Magento Extension | Magento Theme Tutorial
A blog that caters the needs as Magento Tutorial for Magento freshers. One can find helps related to Magento issues. Many Magento Extensions and Magento Modules are discussed in this blog. The blog author has himself developed many Magento extensions and has experience of 40+ Magento websites.
Saturday, October 31, 2020
Laravel Permissions
Wednesday, November 18, 2015
Magento 2.0 is live now
Well, the long stay for Magento 2.0 is over. Its 1:37 am on November 18, 2015 in India and i am receiving notification email from Magento that Magento 2.0 is available to be downloaded from Magento Download Page.
I am starting the tutorials for Magento 2.0 on this blog with more frequent posts. Keep in touch for latest updates for Magento 2.0.
Friday, August 7, 2015
Add profile picture for customer in magento
I got a requirement from client to enable customers to upload their profile picture (Avataar Image) in Magento from my account section. I tried to build a custom module but didn't have much time to do that. The client also needed functionality to enable customers to crop their image too. Luckily i googled and came across a fantastic extension that provided all that i needed. The extension can be downloaded from here . It really saved at least 15-20 hours of my effort.
Friday, April 24, 2015
Reminder: Download and install Magento security patches. Download now.
You need to download two files from https://www.magentocommerce.com/products/downloads/magento/
1) SUPEE-5344
2) SUPEE-1533
These two are security patches for magento that addresses potential remote code execution exploits.
To execute these two files you need to download both files and upload to root directory of your Magento Installation.
Then through ssh execute below commands:
sh name-of-file1.sh
sh name-of-file2.sh
Replace "name-of-file1.sh" and "name-of-file2.sh" with the real filenames downloaded.
Friday, May 30, 2014
Magento #1146 - Table doesn't exist
Magento #1146 - Table doesn't exist.
I faced a very irritating issue. When i logged in phpmyadmin and looked at a table in left column the table shows. But when i try to open that table by clicking on it , it throws error "#1146 - Table `DB NAME.tag_summary` doesn't exist "
I tried to drop the table and create the table agian but it throws same error "#1146 - Table `DB NAME.tag_summary` doesn't exist".
Below is the solution:
You would need to access the server via SSH and after that navigate to /var/lib/mysql and go to the database folder.
For eg: cd /var/lib/mysql/DATABASE Folder and then delete the table using
rm -rf DB NAME.tag_summary
rm -rf DB NAME.tag_summary.ibd
rm -rf DB NAME.tag_summary.frm
Then connect to mysql by using the command mysql and follow the below steps:
use DB NAME;
DROP TABLE DB NAME.tag_summary;
I tried to drop the table and create the table agian but it throws same error "#1146 - Table `DB NAME.tag_summary` doesn't exist".
Below is the solution:
You would need to access the server via SSH and after that navigate to /var/lib/mysql and go to the database folder.
For eg: cd /var/lib/mysql/DATABASE Folder and then delete the table using
rm -rf DB NAME.tag_summary
rm -rf DB NAME.tag_summary.ibd
rm -rf DB NAME.tag_summary.frm
Then connect to mysql by using the command mysql and follow the below steps:
use DB NAME;
DROP TABLE DB NAME.tag_summary;
Thursday, May 15, 2014
Magento CE 1.9.0.0 Released
While we are eagerly waiting for Magento 2.0 , Magento has released its latest CE Magento CE 1.9.0.0 . Most store owners used to complain about why Magento donot provide responsive theme by default. To an extent this was a question that often haunted my mind too. With this release Magento has addressed to this requirement and provided default Responsive theme. The changelog of the latest version can be viewed Here .
With the launch of new version now there will be rush to upgrade all magento stores to latest version and rightly it should be as many security updates are also added to make Magento more secure.
With the launch of new version now there will be rush to upgrade all magento stores to latest version and rightly it should be as many security updates are also added to make Magento more secure.
Wednesday, March 12, 2014
Why we use Antivirus?
Why we use Antivirus?
Many users think that we can get viruses by downloading
files,visiting wrong websites and clicking irresponsible things.It's
true-this is how we pick viruses, but it is not the only way we pick up
viruses,but it is not the only way viruses spread out.Our computer
sometime may be infected just from visiting a website or by putting some
other external devices e.g.U.S.B,Harddisk etc.
In the leading world of globalisation people trust on computers and
internet to send,receive and manage their valuable informations.The
term protection is prior word which comes to their mind when using
interne, as the informations sent over network has many risks from the
devil malwares who are responsible for hampering the information on
internet.So it is important for the user to protect their computers from
risk.
One of the best solution to this problem is
antivirus.An antivirus programs protects your computer from the viruses
by identifying and removing it.Now these days antivivirus more often
comes with firewall packages that blocks the unwanted things and
ptotects your computer.Antivirus automatically scans your files
downloaded from the web,email attachments and all types of removable
cables inserted in the computer.It also removes malicious .malwares
like viruses.Thus making you to feel free to send all your informations.
To prevent our system from the unwanted malware or
viruses,we need a software that is know as antivirus.It is used to
prevent,detect and remove malicious computer viruses from your
computer.Software described viruses from computer.Software described as
antivirus also works against different types of malware e.g
rootkit,trojan horses,worms and spywares etc.
Updating the antivirus programs regularly is
important because it will download an new virus definitation that have
been added since last update
Subscribe to:
Posts (Atom)