Urgent help dolibarr stopped working

Recently Dolibarr just stop working, am using erp / crm on shared hosting server from hostgator.

I keep getting weird files that keep downloading instead of dolibarr login working, i have tried on android dolidroid app and also dolibarr will not load.

I suspect hostgator did something as was working few days ago, is there anyway to check which version i was on ? i believe i was on version 21.0.3 how can i resolve as database is import for all my work.

Thanks in advance to everyone,

1 Like

do you have ssh connection to the server?

yes i do have ssh to server

so you can check what version is installed and you can do a backup at least of your database.
depending on your database model:
mysqldump or mariadb-dump

check the apache2 logs: tail -n 20 /var/log/apache2/*.log
check also in your browser - most browsers F12 or any errors

1 Like

Hi @sajeel

You can find your Dolibarr version details in the filefunc.inc.php file, located in the Dolibarr root directory (htdocs).
Open this file, and look for the following code snippet:

if (!defined(‘DOL_VERSION’)) {
define(‘DOL_VERSION’, ‘22.0.3’); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX, or a.b.c
}

The version number (in this example, 22.0.3) indicates your current Dolibarr installation version.

Thanks a& Regards
Saikat Koley
Software Developer(Dolibarr)
Call/WhatsApp : +919903256573

Email : saikatkoley@hotmail.com

https://www.linkedin.com/in/saikatkoley/

2 Likes

Do you get Dolibarr’s PHP files, or is it other files? - i mean, have you been compromised?

1 Like

Thanks so am on 21.0.1

if (!defined(‘DOL_VERSION’)) {
define(‘DOL_VERSION’, ‘21.0.1’); // a.b.c-alpha, a.b.c-beta, a.b.c-rcX or a.b.c

I am getting random dolibarr php files, what is best way to fix ?

Should i reload version 21.0.1 ?

I think your webserver is not configured to consider the PHP files as PHP files, but it is rather treating the files as text files.

1 Like

Possible or a file was deleted by mistake ?

Other sites on subdomain are working fine like osticket

Any way to check ?

firstly, please post a picture where dolibarr should have been shown so we can see more of what is wrong with your setup.

1 Like

webiste/crm/htdocs/

the file you are getting back is the index.php. Instead of executing this file it is downloading.
reasons could be:

  • php handler not installed properly

  • apache not properly configured

  • half way done update/upgrade of php version

  • your system is running: EasyApache/cPanel

  • apache is running

You should check in your cPanel: php Manager on the domain btssn.co.uk to set to LSAPI.
Your issues root is based on the server configuration. It is not a Dolibarr specific thing.
If your not familar with cPanel settings you should find someone that can fix it.

1 Like

update hostgator fixed php now it says php works but not showing login page ?

then what does it show? show us a picture of your browser, not of Filezilla

1 Like

your page has an error 500 - find someone with experiance in setting up the server.

1 Like

Hostgator have passed back to developer although I believe they did something to messup in first place as other subdomains are working

Attached screenshot should I go back to their support ?

Here is support chat transcript

undefined

|

Dear Customer,
undefined

Thank you for contacting hostgator.com. We are committed to creating the best experience for you.

Find the requested transcript below. (All timestamps are in Coordinated Universal Time (UTC). Due to the limitations on the size of emails, any images shared during the chat are excluded from the transcript provided.)

Your case id is: I-23762310

**Transcript Date:**01/03/2026

[00:15:22] Virtual Assistant: Thank you for contacting *HostGator*. By continuing you agree to our privacy policy Privacy Center | Newfold Digital

[00:15:25] Virtual Assistant: Do you require support with existing products or are you looking to renew/purchase services?

[00:15:27] Customer: Support for Existing Products

[00:15:28] Virtual Assistant: In order for our team to quickly assist, please log into your account by visiting [CLICK HERE](https://www.hostgator.com/my-account/login)

[00:15:29] Virtual Assistant: I’ll wait while you login.

[00:16:53] Customer: Click here when logged in

[00:16:54] Virtual Assistant: I noticed you’re not logged into your account. Do you need help recovering your username or password?

[00:17:02] Customer: No

[00:17:04] Virtual Assistant: What is the product you need help with?

[00:17:09] Customer: Web Hosting

[00:17:09] Virtual Assistant: What service do you need help with?

[00:17:16] Customer: Hosting / Website

[00:17:17] Virtual Assistant: Please select the option below that best describes what you need help with.

[00:17:32] Customer: PHP Support

[00:17:33] Virtual Assistant: I found this article that may help you; You can find more information here: https://www.hostgator.com/help/article/what-version-of-php-are-you-using

[00:17:34] Virtual Assistant: Did that answer your question?

[00:17:37] Customer: No

[00:17:38] Virtual Assistant: May I please have your first and last name to provide to your agent?

[00:17:47] Customer: sajeel noor

[00:17:48] Virtual Assistant: What is the domain name associated to the account you are contacting us about today? If you do not have a domain name type “pass”.

[00:17:56] Customer: btssn.co.uk

[00:17:57] Virtual Assistant: Thanks! For our team to quickly begin researching your request, please describe your issue in detail.

[00:18:03] Customer: the file you are getting back is the index.php. Instead of executing this file it is downloading. reasons could be: php handler not installed properly apache not properly configured half way done update/upgrade of php version your system is running: EasyApache/cPanel apache is running You should check in your cPanel: php Manager on the domain btssn.co.uk to set to LSAPI. Your issues root is based on the server configuration. It is not a Dolibarr specific thing. If your not familar with cPanel settings you should find someone that can fix it.

[00:18:03] Virtual Assistant: Would you like a copy of this chat transcript once your conversation with an agent is complete?

[00:18:07] Customer: Yes

[00:18:07] Virtual Assistant: Please enter email address that you want this transcript to be sent. If you don’t want this transcript then type pass.

[00:18:21] Customer: saj_n@yahoo.com

[00:18:22] Virtual Assistant: You entered saj_n@yahoo.com Is that correct?

[00:18:33] Customer: Yes

[00:18:34] Virtual Assistant: Let me get you to someone who can help. Please note, once our agent has completed assisting you, we’d also like to invite you to complete a brief survey on your experience today.

[00:19:04] Customer: http://www.btssn.co.uk/crm/htdocs/

[00:19:04] Agent: Hi, Sajeel! I’m Vishakh, and I’ll be assisting you today.

[00:19:20] Customer: hi vishakh

[00:21:09] Agent: I understand your concern regarding Hosting. I’ll help you with this.

[00:21:11] Agent: To stay connected throughout our conversation, please enable sound on your device and stay in the chat window. Let’s get started!

[00:21:14] Agent: Can you please help me understand the issue better?

[00:21:28] Agent: Could you please provide me the primary email address that is registered with the account?

[00:22:13] Customer: saj_n@yahoo.com

[00:22:55] Customer: i am having php issues on one of my subdomain running dolibarr

[00:23:12] Customer: here is reply from forum

[00:23:24] Agent: I have successfully located the account! Please help me with the security PIN for authentication.

[00:23:34] Agent: It is a 6 digit security PIN.

[00:23:57] Customer: 197806

[00:24:07] Customer: the file you are getting back is the index.php. Instead of executing this file it is downloading. reasons could be: php handler not installed properly apache not properly configured half way done update/upgrade of php version your system is running: EasyApache/cPanel apache is running You should check in your cPanel: php Manager on the domain btssn.co.uk to set to LSAPI. Your issues root is based on the server configuration. It is not a Dolibarr specific thing. If your not familar with cPanel settings you should find someone that can fix it.

[00:26:15] Customer: Urgent help dolibarr stopped working - #13 by sajeel

[00:27:20] Agent: Thank you for the information. Authentication was successful.

[00:27:22] Agent: \Please be on hold for a few minutes while I check on your account.

[00:28:16] Customer: sure

[00:30:10] Agent: I’ve noticed you’ve reached out to us regarding your Reseller services, and I want to ensure your concern is addressed promptly. Allow me to connect you with our Advanced Hosting team, who are best equipped to resolve your issue without delay. Please hold for a moment while I transfer you directly to them.

[00:30:46] Agent: Hi, Sajeel! Welcome to Chat Support! I’m Mubassir and I will be assisting you today.

[00:31:23] Agent: I recognize how important it is to get this website issue fixed. I’ll look into the reason right away!

[00:31:24] Agent: To stay connected throughout our conversation, please enable sound on your device. Let’s get started.

[00:32:31] Customer: sure

[00:33:46] Agent: I just checked the website and it is not downloading any files. It is showing forbidden error because there is no index file is uploaded

[00:34:41] Customer: how to fix ?

[00:35:10] Customer: http://www.btssn.co.uk/crm/htdocs/

[00:35:25] Customer: stopped working all of sudden

[00:36:05] Agent: May I know was there any recent changes?

[00:36:15] Agent: What is the PHP version required for the site to work?

[00:36:29] Customer: not that i know of

[00:36:43] Customer: unless i did by mistake

[00:37:09] Agent: Without any changes, the website should not stop working. There might be some changes done to the website. This is the reason it stopped working. What is the PHP version required for the site to work?

[00:37:40] Customer: php can 7.1 to 8.4

[00:43:02] Agent: Let me check on that

[00:43:57] Customer: ok thanks

[00:48:01] Agent: I’m still with you, it’s taking some more time. I’ll be back soon.

[00:48:38] Customer: ok

[00:54:42] Agent: Thank you for helping us with your patience. I have tried to use alternate PHP versions and it is still same. May I know what was the changes done recently?

[00:54:48] Agent: Do you have any idea on that?

[00:56:40] Customer: no was working fine then stopped

[00:59:39] Customer: Urgent help dolibarr stopped working - #13 by sajeel

[01:00:51] Agent: https://www.btssn.co.uk/crm/htdocs/ please check the site now. The test php file works fine. It seems the scripting is causing the issue. The file download issue has been fixed, it was from php code in htaccess

[01:01:45] Agent: You will need to check with developer for the issue to check further.

[01:03:15] Customer: ok will go back to them thanks

[01:03:23] Agent: My pleasure!

[01:03:25] Agent: Is there anything else I can assist you with?

[01:03:34] Customer: thats all

[01:03:41] Agent: Thank you for being a valuable customer today

[01:03:42] Agent: Have a great day! Take care!

[01:03:44] Agent: Wishing you a Happy New Year filled with joy, success, and endless possibilities!

[01:03:51] Customer: you too

| Kind Regards,
Customer Support
|
|----|
| |
undefined|----|

@sajeel find out why it returns 500, read the webservers error log