tkalfaoglu
Silver Pleskian
I have a second confirmed case that when the main FTP username is changed, the web site becomes unreachable.
I first noticed the problem when PLESK said it could not re-generate the httpd conf files.
It was still looking for the old username on the system and getting a no such user.
When I manually rebuilt it with plesk repair web option, it still fails to show the site.
It just shows TESTING 1..2..3 apache test page even though all files exist including index.html at /var/www/vhosts/sitename
Upon examination, I noticed that the user had not renamed the FTP user but created a SECOND user that pointed to the / of the site. All files and folders contained this new username. However some permissions were way off, I noticed chmod 000'd files for example for the 'logs' subdirectory.
Followup: It had to do with `run as user` configuration settings in Apache & Nginx Settings..
The username mentioned there was the OLD username that was not updated.
I manually updated it to the new username and the problem went away.
Where you see below as 'username xyz' were the old ones.. I manually fixed them:
# === BEGIN Run PHP as User -==- Domain xyz.gen.tr: on ===
# === The following lines are processed by "Run PHP as User" software. Please do not touch lines from BEGIN to END tags! ===
<IfModule itk.c>
AssignUserId xyz psacln
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RGroups apache psaserv
RMinUidGid apache apache
<Directory ~ "^(/var/www/vhosts/xyz.gen.tr/http*docs/(?!cgi-bin/)|/usr/local/helixdev/rau/)">
RUidGid xyz psacln
RGroups psacln
</Directory>
</IfModule>
# === END Run PHP as User ===
I first noticed the problem when PLESK said it could not re-generate the httpd conf files.
It was still looking for the old username on the system and getting a no such user.
When I manually rebuilt it with plesk repair web option, it still fails to show the site.
It just shows TESTING 1..2..3 apache test page even though all files exist including index.html at /var/www/vhosts/sitename
Upon examination, I noticed that the user had not renamed the FTP user but created a SECOND user that pointed to the / of the site. All files and folders contained this new username. However some permissions were way off, I noticed chmod 000'd files for example for the 'logs' subdirectory.
Followup: It had to do with `run as user` configuration settings in Apache & Nginx Settings..
The username mentioned there was the OLD username that was not updated.
I manually updated it to the new username and the problem went away.
Where you see below as 'username xyz' were the old ones.. I manually fixed them:
# === BEGIN Run PHP as User -==- Domain xyz.gen.tr: on ===
# === The following lines are processed by "Run PHP as User" software. Please do not touch lines from BEGIN to END tags! ===
<IfModule itk.c>
AssignUserId xyz psacln
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid apache apache
RGroups apache psaserv
RMinUidGid apache apache
<Directory ~ "^(/var/www/vhosts/xyz.gen.tr/http*docs/(?!cgi-bin/)|/usr/local/helixdev/rau/)">
RUidGid xyz psacln
RGroups psacln
</Directory>
</IfModule>
# === END Run PHP as User ===
Last edited: