• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Server Error 403 Forbidden You do not have permission to access this document.

elandrian

New Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.59 #2
Hello everyone. Help me with this problem, I imported the site. Returns an error.
Скриншот 28-03-2024 081102.jpg

Error log

Скриншот 28-03-2024 081458.jpg

The site size is not displayed. Although the files are being filled in. And php is not displayed. What kind of permission to put. If this is a problem.
Скриншот 28-03-2024 082005.jpg
 
Make sure that your httpdocs folder has permissions 0750 and that it is owned by <your subscription user>:psaserv.
 
Last edited:
Have you also checked the permissions and ownership of your .htaccess file? It should be at least 0644 and <your subsription user>:psacln.
 
Yes, of course I checked it out. Everything is fine.


1 Most likely the problem is here. I can't open it through the interface. And it turns out the system too. Tell me how to fix it?

Скриншот 29-03-2024 095021.jpg
 
Can you read the file on the console, like
# cat /var/www/vhosts/<your subscription domain>/httpdocs/config.ini
?
What permissions and ownership does it have?
 
This means that the file is good. It's just the online file viewer who doesn't like the ".ini" ending I guess.
 
After entering the command, the file opened in the console.
Hi.

"Unsupported file format" most possibly means that file doesn't recognized as test file. Could you please show the output of next command:
# file /var/www/vhosts/<your subscription domain>/httpdocs/config.ini
For usual ini file, there should be something like "myfile.ini: ASCII text". If you see something else (not text) - may be your file contains some strange symbols or something like that. In that case, you can try to cope visible content of file using cat and past it to new file using Plesk File Manager. And then just rename old file to config_bak.ini, and new file to config.ini
 
Hi.

"Unsupported file format" most possibly means that file doesn't recognized as test file. Could you please show the output of next command:
# file /var/www/vhosts/<your subscription domain>/httpdocs/config.ini
For usual ini file, there should be something like "myfile.ini: ASCII text". If you see something else (not text) - may be your file contains some strange symbols or something like that. In that case, you can try to cope visible content of file using cat and past it to new file using Plesk File Manager. And then just rename old file to config_bak.ini, and new file to config.ini
22.jpg
I did as I was told, nothing helped. We also do not read the file. Uploaded the file to the hosting is readable.
 
The file appears corrupted, it is not detected as a text file, possibly due to the encoding

Try to make a backup of file
delete the file
create the file from plesk, then copy the content from plesk file manager

Or

Open Your file config.ini

Search for [SETTINGS]

And remove last character \015 > Difference between \015 & \012 and \r & \n


You can also try solve this issue with iconv
 
Hi.

"Unsupported file format" most possibly means that file doesn't recognized as test file. Could you please show the output of next command:
# file /var/www/vhosts/<your subscription domain>/httpdocs/config.ini
For usual ini file, there should be something like "myfile.ini: ASCII text". If you see something else (not text) - may be your file contains some strange symbols or something like that. In that case, you can try to cope visible content of file using cat and past it to new file using Plesk File Manager. And then just rename old file to config_bak.ini, and new file to config.ini
Can you tell me how to make a copy of the entire customization server, along with sites and and databases?
 
Back
Top