Looking alright in there atho i notice they appear to have slightly diffrent permission. How did you go about setting the permission the first time? Via command line?
Sir i had install this setup directly using cpanel so it takes permissions accordingly. But after installing setup i got few errors like undefined popups like so i decide to give 777 permissions to all the folders.
i tried to give 777 but not all the folders. Main thing is when i gave 777 permission then all my errors was remove but only this one is remaining.
Iām not sure how cpanel works to well (Been about 5 years since i used it) but are you able to set permission recursively?
(Pre-note: I stress i do not recommend this for live systems)
If so it may be worth setting permission for the whole system to 777 (Only if its a test instance) and then checking if it works. If so recursively set all folders to 775 and all files to 755 and check if it works.
There are so many folder and files i have to to change the permissions of each and every folder and file manually ? or is there any other way to do it ?
Iām not sure if there is a way to do so via the interface. Do you have shell or command line access?
In that case i have to check that. By the way thank you so much for your support.
Ok, if you could take a look that would be great. You looking for something like Shell, Command Line (CL or CLI), SSH, Putty or something similarā¦ Even PowerShell if we need to
Either way, donāt do anything manually for that many files as we will find a way around it.
Ok let me find it. Thank you
One second sir please these permissions 775 for folders and files 755 for only root files and folders or inside all folders and files ?
So from a terminal of some type, we want to set the permission across the full CRM by making a permission change to every file. Iāll break it down below;
I miss said something before so please forget everything regarding permission until l now
There are 4 commands needed to set the correct permissions;
Command 1:
sudo chown -R www-data:www-data .
This sets all directories and files within the root and deeper to have the user and group owner to www-data:www-data which allows communications with apache2, nginx, etcā¦Command 2:
sudo chmod -R 755 .
This sets all directories and files within the root and sub-directories to have the permission of 755Command 3:
sudo chmod -R 775 cache custom modules themes data upload
This overrides specific directories and there sub-directories to give them additional permissions of 775Command 4:
sudo chmod 775 config_override.php 2>/dev/null
This overrides specific files to give them additional permissions of 775
Without running the four above commands the CRM would not be expected to work correctly if at all. I have had a quick google and it looks like if you donāt have command line access then you have 2 options. Request that your hosting provider runs the permissions commands (Recommended) or assuming that you have FTP or SFTP access install a Smart FTP client and use it to execute the commands (Faster but Iāve never personally done this before)
Ok sir what i will do now i will create one new system and set all the permissions as mentioned above then i will deploy it to live and see it works fine or not
That sounds like a plan! Let me know if you need any help.
I would suggests using the download from our website or the GitHub as many applications like c-panel pull from old software libraries with outdated version.
Ok I will try my best by the way i am totally tired by creating new system again and again .Thank you sir
I completely understand were your coming from. I wouldnāt want anyone to have to use cpanel to deploy any software and fully configure it more than once, no matter 4-5 times. Lets look at getting this new installation working and if thatās the case we can look at copying over the data from the previous one by moving the database and copying over the custom folder which should bring over many if not all of your changes.
Give me a shout if you need a hand!
Ok Let me do it i have to burn the candles tonight to solve this issues hope it works.
By the way i would like to inform you that when i set the new system and create zip to upload in cpanel then it shows some permission issue for creating zip thatās why i have to change the permission to 777 to upload it in cpanel.
I also want to inform you that all others modules sub-panels are working fine only issue is with contacts subpanels
I imagine this is because your user used to create the zip does not have the correct permissions and is not within the www-data group, therefore, does not have ownership of the file (Able to zip) until it is shared globally using 777.
Let me know when the new instance is up and running and whether or not the issues continues