I came up with a new error today while trying to make a new install.
my system passes all set up check ups. But, after I type in all database information, I get a new error:
Can not write config.php error
Then it gives me the text to make m,y own config.php error Same for the .htaccess file. I created that too.
It says it should just work after.
I reload the new CRM directory, and nothing,
The errors are happening on the same server and set up as all my other CRM installs.
I would like to figure out why my config.php and .htaceess files can not be written:(
Thanks for any ideas!
Joseph
pgr
11 June 2017 17:04
#2
Is this Linux? And what version of SuiteCRM are you trying to install?
Please share the output of this command from your SuiteCRM root directory:
ls -al
This will let us have a view of the way your permissions are set up.
I added the two files as suitecrm install procedure asked, then changed th epermission before tryign to reload the crm folder.
Here are the permissions info:
4 drwxrwxr-x 9 web3 client2 4096 Jun 11 11:19 cache
4 -rwxr-xr-x 1 web3 client2 3590 May 25 18:38 campaign_tracker.php
4 -rwxr-xr-x 1 web3 client2 462 May 25 18:38 composer.json
20 -rwxr-xr-x 1 web3 client2 17908 May 25 18:38 composer.lock
4 -rwxrwxr-x 1 web3 client2 47 May 25 18:38 config_override.php
12 -rwxr-xr-x 1 web3 client2 8406 Jun 11 11:23 config.php
8 -rwxr-xr-x 1 web3 client2 5052 May 25 18:38 cron.php
4 -rwxr-xr-x 1 web3 client2 2446 May 25 18:38 crossdomain.xml
4 drwxrwxr-x 6 web3 client2 4096 May 25 18:38 custom
4 drwxrwxr-x 3 web3 client2 4096 May 25 18:38 data
4 -rwxr-xr-x 1 web3 client2 2388 May 25 18:38 dictionary.php
16 -rwxr-xr-x 1 web3 client2 12541 May 25 18:38 download.php
4 -rwxr-xr-x 1 web3 client2 2392 May 25 18:38 emailmandelivery.php
8 -rwxr-xr-x 1 web3 client2 4912 May 25 18:38 export.php
948 -rwxr-xr-x 1 web3 client2 967627 May 25 18:38 files.md5
4 -rwxr-xr-x 1 web3 client2 2811 May 25 18:38 HandleAjaxCall.php
4 -rwxr-xr-x 1 web3 client2 2371 May 25 18:38 ical_server.php
4 drwxr-xr-x 57 web3 client2 4096 May 25 18:38 include
4 -rwxr-xr-x 1 web3 client2 2374 May 25 18:38 index.php
4 drwxr-xr-x 6 web3 client2 4096 Jun 11 11:22 install
32 -rwxr-xr-x 1 web3 client2 30016 May 25 18:38 install.php
16 -rwxr-xr-x 1 web3 client2 13373 May 25 18:38 json_server.php
4 drwxr-xr-x 3 web3 client2 4096 May 25 18:38 jssource
36 -rwxr-xr-x 1 web3 client2 34539 May 25 18:38 LICENSE.txt
4 -rwxr-xr-x 1 web3 client2 2313 May 25 18:38 log_file_restricted.html
4 -rwxr-xr-x 1 web3 client2 2376 May 25 18:38 maintenance.php
4 drwxr-xr-x 2 web3 client2 4096 May 25 18:38 metadata
4 drwxr-xr-x 3 web3 client2 4096 May 25 18:38 ModuleInstall
4 drwxrwxr-x 112 web3 client2 4096 May 25 18:38 modules
4 -rwxr-xr-x 1 web3 client2 2890 May 25 18:38 pdf.php
4 -rwxr-xr-x 1 web3 client2 2659 May 25 18:38 README.md
4 -rwxr-xr-x 1 web3 client2 73 May 25 18:38 robots.txt
4 -rwxr-xr-x 1 web3 client2 3588 May 25 18:38 run_job.php
4 drwxr-xr-x 11 web3 client2 4096 May 25 18:38 service
4 drwxr-xr-x 2 web3 client2 4096 May 25 18:38 soap
4 -rwxr-xr-x 1 web3 client2 4091 May 25 18:38 soap.php
8 -rwxr-xr-x 1 web3 client2 5327 May 25 18:38 SugarSecurity.php
4 -rwxr-xr-x 1 web3 client2 154 May 25 18:38 sugar_version.json
4 -rwxr-xr-x 1 web3 client2 2263 May 25 18:38 sugar_version.php
4 -rwxr-xr-x 1 web3 client2 169 May 29 15:58 suitecrm_version.php
4 -rwxr-xr-x 1 web3 client2 957 May 25 18:38 testinstall.php
4 drwxrwxr-x 6 web3 client2 4096 May 25 18:38 themes
8 -rwxr-xr-x 1 web3 client2 5843 May 25 18:38 TreeData.php
4 drwxrwxr-x 2 web3 client2 4096 May 25 18:38 upload
4 -rwxr-xr-x 1 web3 client2 2707 May 25 18:38 vcal_server.php
4 -rwxr-xr-x 1 web3 client2 2980 May 25 18:38 vCard.php
4 drwxr-xr-x 2 web3 client2 4096 May 25 18:38 XTemplate
4 drwxr-xr-x 8 web3 client2 4096 May 25 18:38 Zend
pgr
11 June 2017 18:20
#4
Normally the SuiteCRM installer will create both those files for you. It only asks for you to work on that issue if it has trouble writing to them - but that’s already a bad sign.
You should just correct your permissions scheme, remove those files and try to restart the installer.
Now, to fix your permissions we would need to know which user your web server runs under. If this is 7.8.3 or greater, and the installer had time to get to a certain point, you should have an entry called allowed_cron_users inside your config.php, can you please post it here if present?
Also, I was hoping to see the permissions for the directories at the beginning of your output, did you remove that part? Something like this
drwxr-xr-x 5 user user 4096 Dec 11 19:53 ./
drwxr-xr-x 3 user user 4096 Jun 29 2016 ../
You see, the permissions of the parent directory (and the “sticky bit”) are what counts for the permissions of newly created files…
Hello,
The config/php file is never created. The installer tells me to create the file, and enter a bunch of text. Which I did try, and works. I am able to log in, but then I get kicked out, my “time expired”.
The line that you mention: allowed_cron_users
is not in the config file that the installer tells me to add to the config.php file when creating it.
The two missing lines that you requested are:
4 drwxr-xr-x 17 root root 4096 May 26 09:40 .
4 drwxr-xr-x 16 web5 client2 4096 Jun 11 22:14 …
Thanks
Joseph
pgr
12 June 2017 08:46
#6
Your problem is that your SuiteCRM directory is owned by root, so the web server cannot create files inside it.
Try this in your SuiteCRM directory
chown web5:client2 .
chmod 2755 .
That’s a space followed by a dot (" .") at the end of the commands.
Now, is that user web5 or web3? Make sure you get that right. Both appear in your output on the different posts.
Hello,
It turned out to be a permissions problem. You idea worked.
Thanks!!
Joseph