• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Problems started this morning with plesk 12.0.18 Update #63

Tor Jörgensborg

New Pleskian
Hello,

I have one server and 5 domains and everyone was working perfectly until this morning. Now I can´t get connection to one of the sites. 4 sites working flawlessly but one site not working (oceanictech.se). If I am trying to preview the site I got some problem as if I try to connect from "outside). server can not be found.

If I put the site in suspend mode, booth the preview and www. is working.

Can anyone please tell me whats wrong.

Best,

Tor
 
Hi Tor Jörgensborg

did you see the thread Plesk 12.0.18 MU#63 and possible issues/probelms and depending resolutions posted by the users?


If yes ( and you already activated nginx as well ), could you please confirm, that apache2 and nginx are running ( and NOT firewalled! ) ?

Apache2:

CentOS/RHEL - based systems:
/etc/init.d/httpd status

Debian/Ubuntu - based systems:
/etc/init.d/apache2 status

NGINX:

/etc/init.d/nginx status


If you still experience issues/problems while apache2 and nginx are running, please consider to post errors from your logs, so that investigations can be done.

 
Hello,
Yes the are booth running. I don't have any problems with giving you the logs but which log are interesting in this case?.

I have four domains working perfectly on this server and one domain the I can't get connection to when is "live" not thru outside computer or preview. When the domain is suspend I can reach the domain thru outside and preview. Its only one out of 5 domains that is not working. Is like nginx is not working on this specific domain.

/Tor
 
Hi Tor Jörgensborg,

to investigate issues from a specific domain, you find error - logs for this domain at:

Apache
  • Logs
    • Global Access and Error logs: /var/log/httpd/
    • Domain logs: /var/www/vhosts/<domain>/logs
  • Services
    • Stop: /etc/init.d/httpd stop
    • Start: /etc/init.d/httpd start
    • Restart: /etc/init.d/httpd restart
  • Configuration
    • /etc/httpd/conf/httpd.conf
    • /etc/httpd/conf.d/zz010_psa_httpd.conf (includes generated configuration files with the rest of the vhosts and server configuration)
  • NOTE: On SuSE, Debian, and Ubuntu, the service is called "apache2". The path to its logs is /var/log/apache2and the path to configs is /etc/apache2.
NGINX
  • Logs
    • Error log: /var/log/nginx/error.log
    • Access log: /var/log/nginx/access.log
    • Domain logs: /var/www/vhosts/<domain>/logs/proxy_access*_log
  • Services
    • Stop: /etc/init.d/nginx stop
    • Start: /etc/init.d/nginx start
    • Restart: /etc/init.d/nginx restart
    • NOTE: To disable nginx, go to "Tools & Settings > Services Management" and stop nginx from there.
  • Configuration
    • /etc/nginx/nginx.conf
    • /etc/nginx/conf.d/zz010_psa_nginx.conf (includes generated configuration files with the rest of the vhosts' and server configuration)

Please READ and bookmark the mentioned KB - article above, because you might find it usefull to learn, where the error - logs and configuration files are stored, when you use Plesk.


In addition to the thread "[IMPORTANT]: READ THIS FIRST TO FIND QUICK SOLUTION FOR THE EXISTING ISSUE/QUESTION", you might be interested in following commands:

Reconfigure webserver - configuration files for the whole server:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Reconfigure webserver - configuration files for a specific domain:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain YOURDOMAIN.COM
Help option, to list commands for the utility "httpdmng":
/usr/local/psa/admin/sbin/httpdmng --help

If you experience issue, while using the utility "httpdmng", please post possible errors or warnings from your command line for investigations.


Further, you might be interested, if a specific domain listens to the defined ports. In your case, the desired domain respond with "no response".

lsof -i tcp | grep domain.com

Does the output lists http and https as a "(LISTEN)" - state?

Did you setup and configure a firewall and/or did you check firewall and iptables for issues?
 
Hello,

I have done the reconfiguration on all the sites and oceanictech.se and no difference. Still no difference. I don't have any firewalls on the plesk server.

I can't get lsof -i tcp | grep domain.com to work. It does not give any result back. I have tried with all my domains and no one gives any result.

I also attach the logs as a zip file. The domain with the problem is oceanictech.se. I have tried to read everything :), and bookmark the important stuff.

/tor
 

Attachments

  • logs.zip
    69.4 KB · Views: 1
Hi Tor Jörgensborg,

/var/www/vhosts/oceanictech.se/html/

... is not the standard document root. Could you please explain, HOW you changed the document root path? Over the Plesk Control Panel? Manually, by editing configuration files? Which ones?
The standard structure is: "/var/www/vhosts/domain.com/httpdocs".
Please include in your next post the configuration files from "/var/www/vhosts/system/oceanictech.se/conf" and post the structure from apache and nginx at ".../plesk.conf.d/vhosts" and ".../plesk.conf.d/ip_default" ( ".../" should be replaced with your apache and nginx configuration - location on your server, as for example "/etc/nginx" ).


To get the "lsof" -command to work, you need to have this package installed. Please use apt-get or yum to install it.
 
Hello,

I changed thru the plesk control panel long time ago. I have changed on all the sites and it seems to be no problem with the other one. I have been using plesk with this config for 1 year.

I can get the isof to work but when I use the grep "command" its nothing without the grep a lot of info.

My setup is
VPS from FS data in Sweden
External DNS on working and non working domain
Cent os 6
Plex 12.0.18 update 63


/Tor
 

Attachments

  • htttpd_plesk.conf.d.zip
    29.4 KB · Views: 1
  • plesk.conf.d.zip
    14.1 KB · Views: 1
  • nginx conf oceanrescue working.zip
    8.1 KB · Views: 1
  • conf oceanictech.zip
    7.9 KB · Views: 1
  • lsof -i tcp .txt
    9.8 KB · Views: 1
Hi Tor Jörgensborg,

please make sure that your permissions are set correctly for "/var/www/vhosts/oceanictech.se/html/". They should be owned by your domainsystemuser_for_oceanictech.se : psaserv . Folders and files inside of "html" should be owned by domainsystemuser_for_oceanictech.se : psacln .

If you want to use PHP5-FPM as well, please make sure, that your settings are correct to this choice at "Start > Domains > oceanictech.se > Hosting settings". Choose another PHP - handler as well and set it back to the one of your choice afterwards, to let Plesk rebuild the configuration files.

If you use a open_base restrictions, please make sure that your DocumentRoot is included in the domain-specific PHP.ini. Please check the settings at "Start > Domains > oceanictech.se > PHP settings" or at "/var/www/vhosts/system/oceanictech.se/etc/php.ini". You might as well change any settings for PHP over the Plesk Control Panel, in order to let Plesk rewrite the new domain - specific PHP - setting.


At the moment, your apache and nginx doesn't find the files and folders in "/var/www/vhosts/oceanictech.se/html/" which points to permission issues, or to open_base restrictions. Your configuration files seem to be o.k. as far that I investigated.
 
Back
Top