Any updates guideline for SuiteCRM installation in CentOS7

Hi everyone, I tried a guideline and it donā€™t work

Following the guideline the LAMP stack is outdated, PHP need upgrade to 7.1
After upgrade to 7.1, the browser show ā€œComposer autoloader not found. please run composer installā€

One more question is

I re-download the suitecrm.zip and unzip it, and do the step chown again.
It is still not work.

Anyone have an updated guideline for centos7ā€¦

Which user names did you use in the chown command?

www-data is for Ubuntu, the web server user name on CentOS is likely different, perhaps apache

root.

Yes , I chown like that.
chown -R apache:apache suitecrm

Can you please share the results of this command, given from the root of your SuiteCRM installation?

ls -al

Are you using SELinux? If you disable it, does anything change?

[root@gs1-cent-test crm-test-admin]# ls -al
ls: cannot access thinclient_drives: Permission denied
total 100
drwx------. 18 crm-test-admin crm-test-admin  4096 Mar 31 15:34 .
drwxr-xr-x.  3 root           root              28 Mar 31 09:28 ..
-rw-------.  1 crm-test-admin crm-test-admin     8 Mar 31 10:12 .bash_history
-rw-r--r--.  1 crm-test-admin crm-test-admin    18 Aug  8  2019 .bash_logout
-rw-r--r--.  1 crm-test-admin crm-test-admin   193 Aug  8  2019 .bash_profile
-rw-r--r--.  1 crm-test-admin crm-test-admin   231 Aug  8  2019 .bashrc
drwxrwxr-x. 14 crm-test-admin crm-test-admin   278 Mar 31 12:34 .cache
drwxrwxr-x. 14 crm-test-admin crm-test-admin   261 Mar 31 09:54 .config
drwx------.  3 crm-test-admin crm-test-admin    25 Mar 31 09:54 .dbus
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Desktop
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Documents
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Downloads
-rw-rw-r--.  1 crm-test-admin crm-test-admin 15264 Sep 18  2019 epel-release-latest-7.noarch.rpm
-rw-r--r--.  1 root           root           15264 Sep 18  2019 epel-release-latest-7.noarch.rpm.1
-rw-------.  1 crm-test-admin crm-test-admin   946 Mar 31 15:34 .ICEauthority
drwx------.  3 crm-test-admin crm-test-admin    19 Mar 31 09:54 .local
drwx------.  5 crm-test-admin crm-test-admin    66 Mar 31 12:34 .mozilla
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Music
drwxrwxrwt.  2 crm-test-admin crm-test-admin    24 Mar 31 15:34 .pcsc12
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Pictures
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Public
-rw-rw-r--.  1 crm-test-admin crm-test-admin 20440 Feb 17 16:11 remi-release-7.rpm
-rw-r--r--.  1 root           root           20440 Feb 17 16:11 remi-release-7.rpm.1
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Templates
d??????????  ? ?              ?                  ?            ? thinclient_drives
drwxr-xr-x.  2 crm-test-admin crm-test-admin     6 Mar 31 09:54 Videos
drwx------.  2 crm-test-admin crm-test-admin   165 Mar 31 15:34 .vnc
-rw-------.  1 crm-test-admin crm-test-admin   177 Mar 31 15:34 .Xauthority
-rw-------.  1 crm-test-admin crm-test-admin     0 Mar 31 15:34 .xsession-errors

SELinux is enable, I disable it now.
After reboot, the firefox browser is still showing
Composer autoloader not found. please run ā€œcomposer installā€

Thanks, but thatā€™s not the correct directory

I should be seeing suitecrm.log, index.php, modules directory, etc

Sorry, my test vm expiredā€¦not enough time to cap screen.
but I check it in /var/www/html/suitecrm
ls -al
all files is apache apache

did I go wrong in this part?

$ cd /var/www/html
$ git clone https://github.com/salesagility/SuiteCRM.git < this part I download .zip and do it again
$ sudo mv SuiteCRM suitecrm
$ sudo chown -R apache:apache suitecrm
$ sudo chmod -R 755 suitecrm
$ ls -ld suitecrm

Finally, http://localhost/suitecrm/install.php

If you install from the zip, it includes the vendor directory already filled, so you donā€™t need a local composer

So, it would make sense to get an error about composer if you had used git clone but not after downloading and unzipping the full packageā€”

My steps is not a problems?
I just need download and unzip the package, I will get what I want?

I got it.
I think I donā€™t have disable SELinux when configuring suitecrm, so I do
semanage fcontext -a -t httpd_sys_rw_content_t ā€˜/var/www/html/suitecrm/custom(/.)?ā€™
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/cache(/.
)?ā€™
semanage fcontext -a -t httpd_sys_rw_content_t ā€˜/var/www/html/suitecrm/modules(/.)?ā€™
semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/html/suitecrm/upload(/.
)?ā€™
restorecon -R .

And, create config.php, htaccess file and make it writable by apache user.

So, SELinux need always disable when install suitecrm?

No, I didnā€™t say SELinux needs to be disabled. I just recommend disabling it temporarily as a diagnostic measure to answer the question ā€œis it SELinux that is keeping my SuiteCRM installation from workingā€?

But I guess you should use whatever security you deem convenient, as long as you configure it for the needs of SuiteCRM. I donā€™t know how to advise about this configuration, thoughā€¦

Nvm, I have one more question.
In the Database Configuration, Host Name can be accept mysql public endpoint format?

Iā€™m not sure what that is, can you give an example?

I believe it will only accept a DNS name or an IP addressā€¦

Like rm-3nsjlk.mysql.rds.aliyuncs.com
Anyway, can I install SuiteCRM in localhost first, and change the database location and mysql port number later?

If you just mean that your database lives somewhere out on the Internet, thatā€™s ok - as long as there is an IP connection and the performance is acceptable.

You can change it later, that information is stored in config.php, in the db_config array entry.

Thank you so much, you gave me a lot of suggestion.
I try it later

I changed the db_config in config.php , I restart httpd.service, SuiteCRM shows blank page, but I can access database in MySQL command line.

SuiteCRM canā€™t accept my host name or my password with symbol?

I donā€™t see any reason why it shouldnā€™t, but the easy check is to try with a simpler password and see if it works.

You donā€™t have to change your admin password to try this, you can create a second database account for this test, if you prefer.