hi,
i made a big mistake.
I would like to clone my git repository in a domain on plesk, so, via SSH i made a git clone...
ok it works, then i saw a permission problem, user 0 et group 0 were affected to files and directory, so i launch this command:
in folder httpdocs:
chown –R 10003 :1003 /
YES with the "/" at the end, i don't know why i did that.
Since then i can't access to my website, neither to FTP and can't connect to the plesk dashboard: 502 bad gateway.
I tried to connect to my database with HeidiSQL bu i receive the message:
SHOW DATABASES;
/* Erreur SQL (1018) : Can't read dir of '.' (errno: 13)
Permission denied */
SELECT `SCHEMA_NAME` FROM `information_schema`.`SCHEMATA` ORDER BY `SCHEMA_NAME`;
/* Erreur SQL (1018) : Can't read dir of '.' (errno: 13)
Permission denied */
i NEED my database and i'm sure that's not a big deal, i just have to reinit permissions but i don't know Linux's commands.
Please help, how can i retore permissions. I found this but i'm afraid to launch this command:
/usr/local/psa/bin/repair --restore-vhosts-permission
or this
How to restore default permissions in the virtual host directory on Linux?
i made a big mistake.
I would like to clone my git repository in a domain on plesk, so, via SSH i made a git clone...
ok it works, then i saw a permission problem, user 0 et group 0 were affected to files and directory, so i launch this command:
in folder httpdocs:
chown –R 10003 :1003 /
YES with the "/" at the end, i don't know why i did that.
Since then i can't access to my website, neither to FTP and can't connect to the plesk dashboard: 502 bad gateway.
I tried to connect to my database with HeidiSQL bu i receive the message:
SHOW DATABASES;
/* Erreur SQL (1018) : Can't read dir of '.' (errno: 13)
Permission denied */
SELECT `SCHEMA_NAME` FROM `information_schema`.`SCHEMATA` ORDER BY `SCHEMA_NAME`;
/* Erreur SQL (1018) : Can't read dir of '.' (errno: 13)
Permission denied */
i NEED my database and i'm sure that's not a big deal, i just have to reinit permissions but i don't know Linux's commands.
Please help, how can i retore permissions. I found this but i'm afraid to launch this command:
/usr/local/psa/bin/repair --restore-vhosts-permission
or this
How to restore default permissions in the virtual host directory on Linux?