Topic: installation error file permissions

Hi

I migrated my FA Installation which was working fine  to  ubuntu server and now
i cant email invoices .cant print invoices and company logo image wont update.
also cant backup and install any extensions.
I found up it is the permissions to FA folders and files.
when i give FA directories permission 775 and 644 for files i still get the same problems.
when i change permissions of folders and files to 777 everything works fine.
but what is the best permissions setup for files and folders in FA which will work and is also secure.
any suggestions pls.

thanks
Rida

Re: installation error file permissions

The said folders need to be writeable by the webserver process only.
In Debian / Ubuntu, it will be: www-data:www-data

Re: installation error file permissions

I am not sure why a linux command is the sufficient answer. Not all of us are running the same systems. The question rida is asking is what number setting for permissions, whether 777, 755, which files should be 644, etc.

I had similar problems trying to upgrade just yesterday to the newest version, 2.3.21 After login, I could view the dashboard, and menus fine, but the moment I clicked on any menus I got the internal error 500 with mentions of permission issues. I have upgraded from existing to new versions in the past without a hitch simply by uploading the archive package into my server directory via Cpanel, and extracting the files. This was the first time I ran into this.

After trying several things, I finally deleted all files and copied my 2.3.19 files I had backed up into my FA directory. Now things are working perfectly but I am where I was before the upgrade. I hesitate to go through that process again until I am clear on what permission issues could cause that or does 2.3.21 require a different manner of installing the update?

Thanks for any and all help.

4 (edited by ctmusicstraps 07/12/2014 07:22:32 pm)

Re: installation error file permissions

OK, actually I just got mine working great as far as I can tell. Yesterday no matter what I tried I kept getting errors. Once I gave up and just cleaned out my FA folder directory and copied BACK over the previous folders and files I had manually copied as a back up yesterday, I was able to restore things to a "pre-update" state in version 2.3.19 .

So today instead of uploading the archive update file (2.3.21) and extracting in my current folder, I made a new folder, uploaded into it and extracted in the same which automatically gives me a back up copy of the new files. I looked at permissions, made sure my permissions matched the (same name) working files & folders I had, then I copied the entire list of folders and files for version 21 over to my current live working directory for FA. Once that took place, only the relevant files were updated and databases remained the same as the security fix did not include database files anyway. I refreshed my directory on my server and then browsed to my web url to see what would happen. My login page came up, I logged in, and no problems so far. Version shows updated to 2.3.21 and I can click variuos menus, view reports, orders, invoices, items, bank accounts, etc. with no errors.

I am not sure what I did different, but after several times yesterday trying to extract the archive and no luck - plus permissions and files were not showing as updated consistent, I tried the method above and it worked.

As for permissions for now, my main folders are set to 755 on the server FA directory. My files (.htaccess, config.default.php, etc.) are set to 644 with exception of my config.php and config_db.php are both set to 440.