You get this error:

Service Unavailable

HTTP Error 503. The service is unavailable.

The application pools were failing to start as they were not able to login using the proper account. Here is the error:

Application pool plesk(default)(2.0)(pool) has been disabled. Windows Process Activation Service (WAS) did not create a worker process to serve the application pool because the application pool identity is invalid.

Reset the password on the two accounts:

IWAM_plesk(default)
IWPD_11(unique)

Then reset the login creditendials for the two application pools. The application pools started and the sites are working again.

Connect a drive from My Network Places

Click Start, click My Network Places, click Entire Network, and then double-click Microsoft Windows Network.
Double-click the domain that you want to open.
Double-click the computer that has the shared resource you want to map. All the shared resources for that computer automatically appear in the window.
Right-click the shared drive or folder that you want to map, and then click Map Network Drive.
Click the drive letter that you want to use, and then specify whether you want to reconnect every time that you log on to your computer.

Note Network drives are mapped by using letters starting from the letter Z. This is the default drive letter for the first mapped drive you create. However, you can select another letter if you want to use a letter other than Z.
Click Finish.

A windows opens that displays the contents of the resource you mapped.

Connect a drive from My Computer or Windows Explorer

To connect a drive from My Computer, click Start, right-click My Computer, and then click Explore.

To connect a drive from Windows Explorer, right-click Start, and then click Explore.
On the Tools menu, click Map Network Drive.
In the Drive box, click a drive letter.
In the Folder box, type the UNC path for the server and shared resource in the following format: \\server name\share name. You can also click Browse to find the computer and shared resource.
You can map shared drives and shared folders. When you access a shared drive or folder you can also access subfolders if you have the appropriate permissions. However, you cannot map a drive for a subfolder that is not explicitly configured as a shared resource.

Use the Net Use command to map or disconnect a drive

You can use the net use command for batch files and scripts. To use the net use command to map or disconnect a drive:
To map a network drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: \\computer name\share name, where x: is the drive letter you want to assign to the shared resource.
To disconnect a mapped drive:
Click Start, and then click Run.
In the Open box, type cmd.
Type net use x: /delete, where x: is the drive letter of the shared resource.

Disconnect from a mapped network drive

Click Start, and then click My Computer.
Right-click the icon for the mapped drive.
Click Disconnect.

Horde not working after PHP 5.4.33 update
Article ID: 123027, created on Sep 29, 2014, last review on Dec 7, 2014
APPLIES TO:
Parallels Plesk 12.0 for Linux
Parallels Plesk 11.5 for Linux
Symptoms
Horde webmail is not working after the PHP 5.4.33 update:
The login process is slow
Emails are not displayed and sometimes login fails with the error: “Mail server closed the connection unexpectedly”
Once logged in and clicking the “Email” link, the page does not load. Instead, after a long delay, users are sent back to the login screen with an error message. The web server’s error_log file contains:
Call to a member function getUid() on a non-object in /usr/share/psa-pear/pear/php/Horde/Imap/Client/Socket.php on line 1506
Cause
The root cause of this issue is a PHP bug: https://bugs.php.net/bug.php?id=41631
The affected PHP version is built by Atomic and installed from this repository. PHP builds from other repositories could also be affected.
Resolution
You can use one of the following methods to work around the issue:
Downgrade to PHP 5.4.32
yum downgrade $(rpm -qa –qf “%{NAME}\n” | grep -v ioncube | grep ^php | awk ‘{print $1″-5.4.32″}’) -y
Temporarily change the IMAP configuration in Horde webmail:
Edit ‘/usr/share/psa-horde/imp/config/backends.php’
Change ‘secure’ => ‘tls’ to ‘secure’ => ‘none’ (see below):
// IMAP server
$servers[‘imap’] = array(
// ENABLED by default; will connect to IMAP port on local server
‘disabled’ => false,
‘name’ => ‘IMAP Server’,
‘hostspec’ => ‘localhost’,
‘hordeauth’ => false,
‘protocol’ => ‘imap’,
‘port’ => 143,
// Plaintext logins are disabled by default on IMAP servers (see RFC 3501
// [6.2.3]), so TLS is the only guaranteed authentication available by
// default.
‘secure’ => ‘none’, // <------ this one was changed from 'tls' to 'none' );

To find the my.conf file location use the following command:

]# mysql --help | grep "Default options" -A 1
Default options are read from the following files in the given order:
/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf

Enable the firewall within Plesk then add the needed rules to Windows Firewall (set the IP’s can connect on tcp/1433). Plesk does not have the ability to set the IP’s or IP range.

Resources
http://www.rackspace.com/knowledge_center/article/configuring-ms-sql-server-for-remote-access
http://www.rackspace.com/knowledge_center/article/creating-an-inbound-custom-allow-rule-for-windows-firewall-windows-2008

Go to cpanel > cron jobs > standard.
At the top is an email field
Change to an alternate email

Or

FThe way to change the email account WHMCS sends the daily cron reports to…

1. Log in to WHMCS.
2. Click on Configuration -> Administrators.
3. Click on the little edit-button for the full administrator.
4. Change the email address.

Alternatively, if you want to prevent these emails being sent out altogether, go to ..
1. Configuration -> Administrator Roles -> Full Administrator.
2. Uncheck the box right at the bottom that says ‘System Emails’.

There are 2 different limits for MYSQL. Max Connections and Max user connections. By default, the limit is 151 for max connections and 0 or unlimited for user connections.

MySQL server has a default limit of 151 simultaneous connections. Most connections to the SQL server run very quickly so even a large amount of queries should not cause a server to hit this limit. This problem usually occurs when a query takes too long to execute or locks a table preventing other queries from executing (and building up the number of simultaneous connections).

Once the server hits the limit of connections, it will refuse to accept new queries and return error 1203: Too many connections.

If the server is currently at the limit of connections, it will still accept one more connection from a MySQL account with super user privileges (like user root). You can use this connection to view the currently running queries or try to kill the queries that are running for too long.

Check for the settings. Log into the mysql server. Run the following:
Max Connections

MariaDB [(none)]> SHOW VARIABLES LIKE "max_connections";
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 151   |
+-----------------+-------+
1 row in set (0.00 sec)

Max Use
MariaDB [(none)]> SHOW GLOBAL VARIABLES LIKE ‘max_use%’;
+———————-+——-+
| Variable_name | Value |
+———————-+——-+
| max_user_connections | 0 |
+———————-+——-+
1 row in set (0.00 sec)
How to update max_connections Value

Before increasing this value, make sure your server has enough resources to handle more queries. Now execute below query in mysql terminal to set this value temporarily. Remember that this value will reset on next mysql reboot.


MariaDB [(none)]> SET GLOBAL max_connections = 250;
Query OK, 0 rows affected (0.00 sec)

To set this value permanently, edit mysql configuration file on your server and set following variable. The configuration file location may change as per your operating system. By default you can find this at /etc/my.cnf on CentOS and RHEL based system and /etc/mysql/my.cnf on Debian based system. Under [mysqld]:

max_connections = 250

Now restart mysql service and check value again with above given command. This time you will see that value is set to 250.

MariaDB [(none)]> SHOW VARIABLES LIKE "max_connections";
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 250   |
+-----------------+-------+
1 row in set (0.00 sec)

Another simple way to temporarily resolve this issue is to restart the MySQL server. On CentOS/RHEL:

 # systemctl restart mariadb.service

You can also enable the slow query log which will record queries that take longer than a specified amount of time (two seconds by default) for later review and optimization.

nano /etc/my.cnf
slow_query_log = 1
slow_query_log_file = /var/log/mariadb/slow-query.log

Restart

 # systemctl restart mariadb.service

How to reset the mysql password on a linux server.

CentOS

First, stop the MySQL service/daemon. On Centos/RHEL you would run:

# service mysqld stop

Next, edit the MySQL config file (/etc/my.cnf on CentOS/RHEL) and add the following to the [mysqld] section.

# skip-grant-tables

Start MySQL back up

# service mysqld start 

You will now be able to connect as user root without any password.

Run the following SQL queries:

mysql&gt; UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; 
FLUSH PRIVILEGES;

Remove the skip-grant-tables line from the MYSQL config file, and restart MySQL one final time.

Ubuntu 16

First off stop mySQL

# sudo service mysql stop

Now manually create the socket directory for MySQLD to be able to start up and give mysql permissions to it. (THIS is the most important step that all guides fail to mention leading people into doing very stupid thing when they cannot get mysqld to start)

# sudo mkdir /var/run/mysqld; sudo chown mysql /var/run/mysqld

Now start mysql with the –skip-grant-tables option because you are not checking user privs at this point

# sudo mysqld_safe --skip-grant-tables &amp;

Now log into mysql as root

# sudo mysql -u root

Now run the following commands in the mysql console

mysql&gt; use mysql;
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; SET PASSWORD FOR root@'localhost' = PASSWORD('yournewpassword');
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit

Now stop mySQL and Restart it

# sudo service mysql stop
# sudo service mysql start

or

# sudo /etc/init.d/mysql stop
# sudo /etc/init.d/mysql start

Check if mySQL started properly by running

# sudo service mysql status

Now to make sure everything is OK reboot your server and after reboot run

# sudo service mysql status

Now you can test logging into mySQL with your new password by running

# mysql -u root -p

The screen program is a powerful terminal multiplexer for Unix-like operating systems such as Linux. It allows you to create multiple virtual terminals within a single terminal window or remote session, which can be detached and reattached as needed, even if the original terminal session is disconnected.

Read More