I am having trouble getting suitecrm installed on my web server. I extracted the .zip file in a folder called “crm” and renamed the folder SuiteCRM. When I try to install at spektors.com/crm/SuiteCRM/install.php it takes me to a 500 error. What am I doing wrong?
What you’re doing wrong is not telling us anything about your system - version of OS, PHP, database, SuiteCRM
And is it your server, or shared hosting? Are you admin, do you have SSH access?
And then you can also have a look at your logs to see what went wrong.
Thanks PGR,
1.) I downloaded suitecrm-7.9.9 file from the suitecrm website.
2.) Next I then took the .zip file and added it my hosted account (shared server) in the folder /crm from the file manager in the cpanel
3.) Extracted the file to that folder which created a folder called SuiteCRM-7.9.9
4.) I renamed that folder to SuiteCRM
5.) I tried visiting the spektors.com/crm/SuiteCRM/install.php location from a browser but I get a 500 internal error
Yes, I am the admin with full access to everything.
This was pulled from my raw access logs:
(
[17/Jan/2018:07:55:41 -0600] “GET /crm/SuiteCRM/install.php HTTP/1.1” 500 4347 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”
[17/Jan/2018:07:55:41 -0600] “GET /img-sys/css/style.min.css HTTP/1.1” 200 4659 “http://spektors.com/crm/SuiteCRM/install.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”
[17/Jan/2018:07:55:41 -0600] “GET /img-sys/js/modernizr-2.6.2.min.js HTTP/1.1” 200 15153 “http://spektors.com/crm/SuiteCRM/install.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”
[17/Jan/2018:07:55:41 -0600] “GET /img-sys/img/snappy.png HTTP/1.1” 200 45923 “http://spektors.com/crm/SuiteCRM/install.php” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299”
)
This was pulled from my error logs:
(
Wed Jan 17 07:55:41 2018] [error] [client removed ip] SoftException in Application.cpp:668: Directory “/home1/radonchecker/public_html/spektors.com/crm/SuiteCRM” is writeable by group
[Wed Jan 17 07:53:08 2018] [error] [client removed ip] SoftException in Application.cpp:668: Directory “/home1/radonchecker/public_html/spektors.com/crm/SuiteCRM” is writeable by group
[Wed Jan 17 07:14:30 2018] [error] [client removed ip] SoftException in Application.cpp:668: Directory “/home1/radonchecker/public_html/spektors.com/crm/SuiteCRM” is writeable by group
)
update: File permissions are set at 775. I read somewhere that possibly changing those would do the trick. I just don’t know what to change them to.
You need to set ownership and permissions, not just permissions.
To know which owner you should set, you need to find out under which user your web server is running. But I don’t even know what your OS is, nor what your Web server is.
On my ubuntu I would do this to determine my web server is running under user “www-data”:
ps -ef | grep apache
But if you’re not using apache you will have to look for whatever your web server process is called…
PGR, Thank you for your help thus far,
As a quick reply: It looks like the operation system is Linux CentOS
I will try to find out which user my web server is running — I will reply with that when I locate it.
My server is apache
Well, with that information, could you get the username from the “ps” command?
Is the username “www-data” or also “apache”? These are the most common values.
Then you do this from the root of your SuiteCRM install
sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php
Note that two of those commands end with a space and a dot (" ."). Replace that “www-data:www-data” with the user and group of your web server.
Then start the installer.
I could get the user name if I knew how. I have some technical skills but I not familiar doing this. I like the challenge of learning something so I am trying to find a guide on completing the task you posted. Probably a very elementary task but it’s causing me a lot of issues.
I gave you the command above
ps -ef | grep apache
If you’re willing to learn, I’m willing to explain it. “ps” shows processes running on your Linux. The “-ef” flags tell the command to show every process, regardless of user, and to display that user name. So on my system it shows this
root@SuiteCRM /var/www/html $ ps -ef | grep apache
root 1304 1 0 Jan15 ? 00:00:13 /usr/sbin/apache2 -k start
www-data 1365 1304 0 Jan15 ? 00:00:03 /usr/sbin/apache2 -k start
www-data 3928 1304 0 Jan15 ? 00:00:01 /usr/sbin/apache2 -k start
www-data 4206 1304 0 Jan15 ? 00:00:03 /usr/sbin/apache2 -k start
www-data 15166 1304 0 19:00 ? 00:00:00 /usr/sbin/apache2 -k start
root 15888 116656 0 19:21 pts/0 00:00:00 grep --color=auto apache
www-data 48929 1304 0 Jan15 ? 00:00:02 /usr/sbin/apache2 -k start
www-data 56116 1304 0 Jan15 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 101508 1304 0 Jan16 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 106304 1304 0 00:05 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 127456 1304 0 10:29 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 127462 1304 0 10:29 ? 00:00:00 /usr/sbin/apache2 -k start
The usernames are in the fist column. From this I gather that my web server is running under user “www-data”. Then I can look for the group name with this command:
groups www-data
which gives me this output:
www-data : www-data
So the group name is also www-data, hence doing the chown command with “www-data:www-data”
Ok I got it fixed. This may help someone in the future.
Hosting is with Hostgator too btw.
If there are any 777 permission in the file (which I guess there were) you need to change them to 755. Hostgator will automatically put a 500 internal error if there are any 777 permissions.
Ok, nice to hear that, but still, try to get the above commands right, don’t just use 755 everywhere.
And never try using 777 again, it’s waaaay too permissive, not a good idea at all.
I’m actually happy that Hostgator does that check and override.
I am willing to learn and love this stuff. My issue is what program do I open to get to put in the commands? Do I do that from my cpanel, file directories or is there another path to take to get to it? I know I sound pretty stupid to a lot of people but hopefully I can learn this and maybe it will help someone else looking to learn a little.
I didn’t set the 777 - I guess it was set like that when I unzipped file somehow.
Above you said
But I don’t think that’s the case. You’re on shared hosting, you have access to your area only. So your concept of “admin” was different from mine
You put those commands in an SSH shell. Look for that icon in CPanel. But your hosting plan might not have that feature.
HAHA! I’m not as smart as you on this stuff obviously. I figured admin was admin LOL No I do not have a SSH file on this account.
It’s not a file, it’s a program that gives you a Linux text console into your area.
In CPanel it’s usually accessible from an icon (you know, next to “File Manager”, “Domains”, etc.)
Yeah, I search the entire cPanel. They knew better than letting me screw around with that. LOL
On the other thread where you posted the video, you have too many “undefineds” showing up. That is typical of broken installs because of wrong ownership/permissions.
If you can’t set ownership/permissions via SSH, you might look for ways to do it from some kind of File Manager or FTP. But you must find a way to change entire directories in one go, affecting all subdirectories. Otherwise it would take to long.
If not, then ask your hosting to do it for you, give them the SSH instructions I gave you.
While you see “undefineds” all over the app, ignore all other bugs, this is what you need to solve.
Thanks for the reply on that. How do I know what permissions are right and what are wrong? I see a lot of 755 and 644’s although the main folder is 755.
Do I need to uninstall the crm (can I delete the main folder to do this and it will properly uninstall it?) and try to reinstall. I remember that the tech rep at hostgator changed the 777 permissions that were there to 755 and he said that was all he did. They have some bulk system to do it so he couldnt give me a number on how many of them there was.
The instructions I gave you earlier are one way to get a proper installation. They are not the only one. Linux permissions are a combination of three things
- the ownership on the file
- the permissions code like 755
- the user accessing the file, and which groups it belongs to
Apart from me not having the time to teach you everything about Linux permissions, a complex subject, I can’t possibly dictate how it should be done on your system because I only have bits of the above puzzle.
So I suggest you either get someone with expertise to help you out, or pass on to your hosting services the advice and commands I gave you and ask them to get it right for you.
Unless you already have data you want to keep, I do recommend a reinstall with correct permissions set beforehand, yes. That’s the safest option. Good luck!