Http://192.168.8.182/public/index.php on 8.5.1

Oops! An Error Occurred
The server returned a “500 Internal Server Error”.
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

On a new 8.5.1 installation!!!

Hi Stefano, welcome to the Community! :tada:

I noticed you opened quite a few Issues on Github, they will be closed them while we talk here, because here is the right place to ask! In Github you’re supposed to file technical bug reports for developers, not troubleshoot your installation.

Can you please provide more details about your problem especially:

  • versions you’re using (DB, web server, PHP)
  • messages in logs

See here for more details:

Hi!
The situation is really bad.
I have done 7 or 8 installations of SuiteCRM.

  1. install ubuntu-22.04.3-live-server-amd64 on a Hyper-V on windows server 2022
  2. Follow the ONLY real instruction found on How to Install SuiteCRM on Ubuntu 22.04 - RoseHosting
  3. wget and unzip version 8.5.0 with sudo wget https://suitecrm.com/download/144/suite85/563563/suitecrm-8-5-0.zip

Now.

With version 8.5.0 on all the installation (about 4):
http://192.168.8.184/public/index.php ERROR “Login credentials incorrect …”
http://192.168.8.184/legacy/index.php* can login with no menu displaying

With version 8.5.1 unzipped over 8.5.0 this response:

Oops! An Error Occurred

The server returned a “500 Internal Server Error”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Reinstall another server and unzip 8.5.1 (clear installation)

  1. install ubuntu-22.04.3-live-server-amd64 on a Hyper-V on windows server 2022
  2. Follow the ONLY real instruction found on How to Install SuiteCRM on Ubuntu 22.04 - RoseHosting
  3. wget and unzip version 8.5.1 with “sudo wget https://suitecrm.com/download/144/suite85/563704/suitecrm-8-5-1.zip

Oops! An Error Occurred

The server returned a “500 Internal Server Error”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Installing a new server following the instructions you provide

The result is that PHP doesn’t even start!

After all these attempts and all the time wasted redoing the installations, I think I can say that the product and the installation documentation are very, very poor.
Furthermore, it is not possible for versions to be released that don’t even start!
It is not possible for a product to have BUGS of this type for years.
In fact, the versions that are marketed (for a fee) are from 3 or 5 years ago.
It’s fine for playing but it’s not a tool that can be used in a company.

You should be following the official installation guide, not some other guides from the internet.

If you have a 500 error, your web server is crashing. This is not SuiteCRM code having a bug (in which case the web server would dutifully report a fatal error), it’s the web server crashing due to some other serious condition.

So it’s quite likely a configuration problem in your server, of which SuiteCRM can not be blamed. Any way, we should ascertain whether it is, or not, before throwing blame one way or another. Bear in mind that tens of thousands of people have installed this software successfully.

So, can you please follow the official guide, and when you hit a problem, come back here with as much information as you can, so we can try to help you with that problem.

The error 500 occurred only AFTER downloading and unpacking version 8.5.1. Version 8.5.0 was installed on the same server and it worked. Then if it means it’s not SuiteCRM ok, no problem.

Is there step-by-step documentation for installing the environment for SuiteCRM? Or just the one you mentioned which then refers you to other pages of which you understand nothing? I have follow the documentation but nothing works!

As I have already written, the versions I have seen around (paid) are 7.12 or earlier.
Then we can also say that tens of thousands of people have installed SuiteCRM.

What are you talking about, there is no “paid version” of SuiteCRM. Maybe somebody was selling hosting of SuiteCRM, but the product is 100% free.

It would help if you were less emotional and more objective. Cool down. I have no reason to help you, I am basically a random guy on the internet providing you with free consultancy.

SuiteCRM has many possible configurations and many possible kinds of servers, which is good, but makes it impossible to provide full instructions for all possibilities. You basically have to be able to set up your server and your stack, and then SuiteCRM will provide instructions.

Can you check your Apache logs? It would be very helpful to know more about your 500 error.

Good morning
I confirm what I wrote yesterday. Attached is the LOG trying to perform the configuration for an 8.5.1 installation. The installation is new on a machine created from scratch.
I hope there is a solution.

/var/log/apache2/error.log

[php:error] [pid 737] [client 192.168.50.1:52114] script ‘/var/www/suitecrm/index.php’ not found or unable to stat
[Tue Feb 06 16:07:43.682192 2024] [php:error] [pid 738] [client 192.168.50.1:52119] script ‘/var/www/suitecrm/config.php’ not found or unable to stat
[Tue Feb 06 16:28:38.157849 2024] [php:error] [pid 735] [client 192.168.50.1:52350] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Tue Feb 06 16:29:58.408800 2024] [php:error] [pid 738] [client 192.168.50.1:52359] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Tue Feb 06 16:30:03.281461 2024] [php:error] [pid 739] [client 192.168.50.1:52360] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Tue Feb 06 16:30:05.820640 2024] [php:error] [pid 754] [client 192.168.50.1:52362] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Tue Feb 06 16:30:06.399520 2024] [php:error] [pid 735] [client 192.168.50.1:52364] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Wed Feb 07 10:29:27.393738 2024] [php:error] [pid 737] [client 192.168.50.1:54326] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Wed Feb 07 10:30:11.720556 2024] [php:error] [pid 739] [client 192.168.50.1:54337] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732
[Wed Feb 07 10:31:18.873919 2024] [php:error] [pid 737] [client 192.168.50.1:54355] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/suitecrm/public/legacy/install/install_utils.php on line 732

192.168.50.1 - - [07/Feb/2024:10:29:27 +0000] “GET /public/legacy/install.php HT TP/1.1” 500 411 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3 6 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:30:02 +0000] “GET /legacy/install.php HTTP/1.1” 404 492 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTM L, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:30:02 +0000] “GET /favicon.ico HTTP/1.1” 404 49 1 “http://192.168.8.184/legacy/install.php” “Mozilla/5.0 (Windows NT 10.0; Win64 ; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:30:11 +0000] “GET /public/legacy/install.php HT TP/1.1” 500 353 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3 6 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:30:54 +0000] “GET / HTTP/1.1” 200 486 “-” “Mozi lla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chr ome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:30:59 +0000] “GET /info.php HTTP/1.1” 200 22433 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:31:09 +0000] “GET /legacy/install.php HTTP/1.1” 404 492 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTM L, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:31:18 +0000] “GET /public/legacy/install.php HT TP/1.1” 500 353 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3 6 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36”
192.168.50.1 - - [07/Feb/2024:10:32:10 +0000] “-” 408 0 “-” “-”

Your webserver cannot read the files - first line of the log “not found or unable to stat index.php”

Firstly inspect your webserver’s configuration in

/etc/apache2/sites-available/yourconfig.conf

Document root should be

/var/www/html/suitecrm/public

The directory path should be

/var/www/html/suitecrm/public

Check what user is running apache

sudo ps -aux | grep apache

It’s usually www-data unless you’ve changed it.

Change your error reporting in php.ini to

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING

Correct the file permissions within the web directory /var/www/html/suitecrm
The below will change directories to 2755 and files to 0644 and change ownership of those files to the apache web user “www-data” and allow bin/console to be executable and run from the terminal.

find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console

http://yourdomain.com/ should now be reachable and the installation page should now show.

2 Likes