Customer wanted to have a dedicated IP, but once I change the IP from the plesk control panel, I couldn’t get the website when accessed using IP. Instead, it was giving me the plesk control panel’s default page. Reason ? Default Website was having the IP as “All Unassigned”. Set that to the main IP address. But after that I was getting a new error.
What I could get was “Bad Request (Invalid Hostname)” in bold letters. Here is what I did to fix the same.
Start -> Run -> inetmgr -> Expand the (+) -> Websites -> Right click on the domain name -> Take Properties -> Website -> IP Address (make sure that it has the dedicated IP assigned there) and then click “Advanced”
Add/Edit Web Site Identification
IP Address : Choose the dedicated IP from drop down list
TCP/IP Port : 80
Host Header Value : Leave it blank (Important)
Leaving the Host Header Value should fix the issue and fetch the website when accessing it using the IP.
Continue Reading cat /etc/psa/.psa.shadowTo Recover your plesk password on a windows dedicated or VPS server
cd %plesk_bin%plesksrvclient.exe -getUsually this happens in a suPHP environment. There could be few reasons why this could happen. We list here a few. The solution is intended for those with shell access.
chown your_username.your_username path_of_your_php_file
If that fixes only that file and not your entire php files, use the below command to change all the php files.
find . -type f -name “*.php” -exec chown username.username {} \;
find . -type d -exec chown username.username {} \;
Ignore “*.php” in the above command if it still errors out for a php file. If it still don’t fix, move on to other solutions below.
find . -name “*.php” -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
Often, you can do the above command without the -name “*.php” in the command.
cat /dev/null > /usr/local/apache/logs/error_log
If you know any other cases which require another solution for this, please comment here or edit the blog.
This is common issue, but solutions varies based on situations. It could be one or a combination of a solutions listed below. If you had to go through another solution to solve it, please add it over here for others.
cd %plesk_bin%
websrvmng –update-anon-password –domain-name=domainname.com
Okay those are my current solutions.
Continue ReadingOperating System was Linux
No one was able to login to Plesk’s default webmail, horde. Enabled error reporting in php.ini and got the error message as below in the “/etc/httpd/logs/error_log” and/or “/var/log/psa-horde/psa-horde.log”
PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/psa/admin/sessions) in Unknown on line 0, referer: http://webmail.supportsages.com/test.php?mode=unregister
Here the solution was to edit the php.ini to use /tmp as the session.save_path or even “/var/lib/php/session”
Other solution, for similar issue (not this exact error though) is to set,
session.auto_start = 0 in php.ini
Making sure that localhost entry is in /etc/hosts and resolves. For that do a telnet localhost 143 and if you get “Connected to” message, its not that issue
check /etc/hosts file. It must have permissions -rw-r–r– (644) on a ls -l
Whatever be the session.save_path setting in the php.ini, it should have the permission of 1777
Run IMP test to check the problem at: http://webmail.DOMAIN.COM/horde/imp/test.php and make sure that you get the green words for all the tests.
This problem may occur if the domain’s web content is hosted on another server and the MX DNS record doesn’t exist or points not to the Plesk server. IMP tries to check mail on whatever server the domain name resolves to. In order to prevent this from happening the domain name or MX record (if it exists) must be resolved locally to the server.
References : http://kb.parallels.com/article_41_260_en.html
Continue Reading