From the WHM main panel click on “Change Hostname” and enter the desired value in the “New Hostname” field:
The server hostname has to use a registered domain name and has to point to your server IP address.
Since Ubuntu 8.04 is no longer supported, the original repositories no longer work.
Ubuntu users will get an error like:
Err http://mirrors.xx.com hardy/universe mc 1:4.6.1-8ubuntu1
404 Not Found [IP: xx.xx.xx.xx]
Failed to fetch http://mirrors.xx.com/ubuntu/pool/universe/m/mc/mc_4.6.1-8ubuntu1_amd64.deb 404 Not Found [IP: xx.xx.xx.xx 80]
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
Or from Plesk:
Failed to fetch http://mirrors.xxx.com//ubuntu/dists/hardy/main/binary-amd64/Packages 404 Not Found [IP: xx…
Ubuntu 8.04 users should upgrade to the latest version but in case that for whatever reason, this is not an option for them, they can try these:
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
#deb http://old-releases.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
To change these, access your server via SSH and:
1) backup the current sources list
# cp /etc/apt/sources.list /etc/apt/sources.list.backup
2) # vi /etc/apt/sources.list
3) Hit “i” and delete the current lines
4) copy the new repositories at the beginning of the article and paste them by right clicking into the file
5) hit “Esc” key, type “:wq!” and hit “Return” key to save the file and exit the vi editor.
That’s it, good luck!
I will try to explain in this article how to set up the FTP connection to your hosting space in Adobe Dreamweaver in order to start building your website or edit your existing one’s files.
1) From the main menu, click on “Site”:
2) Select “New Site”:
3) Set the name of your website as you want it to appear later in the “Manage Sites” section:
4) From the same section, go to “Servers”:
5) Set up the FTP connection using the details received from your hosting provider or the ones set up by you if you’re on a self managed server:
Use the “Test” button to check if the details are correct.
Most connections issues are caused by the incorrect path to the root directory, in our example, there is no specific one set so there is only a slash “/” as in this case, we are using a 123-reg Linux based hosting package which has “public_html” as default root for FTP.
If we were to be using a Windows package from the same provider, then the root directory would have had to be defined as “/web/content/”.
If using only the slash “/” you should encounter any issues, contact your hosting provider to ask in what folder on your hosting space should the website files be placed in and what this path should be.
6) Once the settings saved, click on the “Connect” button to access the server and view the hosting space contents.
That’s it folks :), good luck with your new website!
If Ubuntu try:
On a server running Plesk:
#mysql -uadmin -p`cat /etc/psa/.psa.shadow`
On a server running WHM/cPanel:
There comes a time when the website you’ve built has grown to big or you’ve added some features to it that a shared type of hosting package simply cannot cope with.
The next step in these situations is to have the website moved over to a more powerful platform, in most cases this would be a VPS.
We will try to cover in this article all the aspects related to such a task and we will use as example a website hosted by 123-reg on their shared hosting platform which we will be moving to one of their VPSs.
We will be moving the website files, the database, the mailboxes and finally have the domain name pointed to the VPS IP address via its DNS settings.
If everything is done right, there will be absolutely no downtime for the website or the e-mail services.
1) FTP access to your current hosting package;
2) Access to your current database;
3) The VPS to be up and running;
5) FTP access to the above subscription/account
Each hosting provider provides some type of automation for creating backups, both for the website files and the database, however, we will describe how to do this manually which we consider to be the safest way.
1) Copy all the website files onto your computer using an FTP client such as FileZilla (check: https://www.youtube.com/watch?v=Ag3tC1eYU6M)
2) Create a database backup using the tools your hosting provider offers for this purpose, most of them offer PhpMyAdmin and this is what we will be using in this example:
a) Once you’ve accessed/logged in to phpMyAdmin select the database your website uses:
b) Select “Export” from the top menu:
c) Configure the export (use the default settings if unsure):
d) Hit the “Go” button to create the .sql file:
123-reg specific shortcuts:
Once you have the website files and the database dump on your computer we can move over to the VPS.
If you’ve chosen Plesk as control panel for your VPS and your subscription has already been created we can get to work:
1) Upload your website files via FTP:
When creating the subscription, you have been asked to chose an username and a password. These are also the FTP details you will be using to upload your website.
Use any FTP client to access your VPS and upload the files into the httpdocs folder. I would recommend removing the existing files/folders you will find there.
5) Alter the wp-config.php file to match the new database connection details
After all these, you’re almost done. Use the Plesk website preview feature to check on your website or have the IP address of your VPS set as the default one for your website (if not already set this way) to simply access the website like this: http://ipaddress (eg http://192.168.1.15)
Fix the 404 errors
If while trying to browse your website almost all links are returning a 404 Not found error, go to your WordPress dashboard -> Settings -> Permalinks -> Save Changes (without actually changing anything).
What this will do is to have the .htaccess file regenerated.
Have a look at the Plesk settings for the preferred domain name: Subscriptions -> select subscription -> Open in control panel -> Hosting settings -> Preferred domain: select ‘none’.
Have you just moved a WordPress based website onto your VPS running Plesk and can’t get rid of the redirect loop even after changing everything you can think of both in your WordPress settings and .htaccess?
Well worry not my friend because this simple solution will most likely fix your website.
1) From your Plesk Panel select “Subscriptions”:
2) Select the domain you’re currently using and click on “Open in control panel”:
3)Go to “Hosting settings”:
4) Look for “Preferred domain” and select ‘none’:
That should do it, save your settings and reload your website (hit CTRL+R a couple of times to make sure the website is not loaded from cache).
Most CMSs such as WordPress or Joomla store the database details in their default configuration files.
The WordPress configuration file is called wp-config.php and can be found in your website root folder. This is usually called public_html or httpdocs however, if your website is located in a subfolder (http://domain.tld/wordpress for example) then the root folder for the website will be /public_html/wordpress or /httpdocs/wordpress.
Open the wp-config.php to check or alter the database connection details, they look like this:
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
One of the main reasons that can cause upgrades to fail is “named” (the DNS Bind program), having its permissions changed so it cannot run. Check this and correct as below:
[root@vps16505916 ~]# ls -la /etc/init.d/named
-rwxr-xr-x 1 root root 7478 Jan 7 12:17 /etc/init.d/named
[root@vps16505916 ~]# chmod 755 /etc/init.d/named
Once done, try and run the update process again. This can be done by selecting ‘Updates and Upgrades’ from the ‘panel’ menu that is on the ‘Server’ tab or the Tools & Settings page if you are logged in as full administrator.
Once you select the Upgrade link this will open another tab. On this page select the option to ‘Upgrade the Components’.
If the problem still persists:
A utility of the Parallels Plesk control panel, “bootstrapper.sh” is a SSH command which can repair a failed Plesk upgrade. To begin, change directory into “/usr/local/psa/bootstrapper/” and then run a directory list command:
The directory listing will present you with a list of folders, the number varying between how many upgrades of Plesk have been applied in the past:
drwxr-xr-x 3 root root 4096 Apr 22 2011 pp10.10.1-bootstrapper
drwxr-xr-x 3 root root 4096 Jul 30 20:24 pp10.12.0-bootstrapper
drwxr-xr-x 3 root root 4096 Dec 08 06:39 pp10.13.4-bootstrapper
In this example, the failed upgrade was for Plesk 10.4, so the newest folder “pp10.13.4-bootstrapper” would be used. Change in that directory, and again perform a directory listing:
-rwxr-xr-x 1 root root 269303 Dec 08 05:00 bootstrapper.sh
drwxr-xr-x 3 root root 4096 Dec 08 06:39 db
rw-r–r– 1 root root 2515 Dec 08 04:35 psa.conf.default
The “bootstrapper.sh” file will repair the Plesk databases, and reapply the patches as part of repairing the failed Plesk upgrade. To kick off the repair, simply run the following command:
Wait a few moments while the repair takes place, and once it is done you should be able to log into Plesk with your newest upgrade successfully applied!
Parallels Plesk Panel 11.5 for Linux
/etc/httpd/conf.d/zz010_psa_httpd.conf(includes generated configuration files with the rest of vhosts’ and server configuration)
/var/log/apache2and the path to configs is
/etc/nginx/conf.d/zz010_psa_nginx.conf(includes generated configuration files with the rest of the vhosts’ and server configuration)
/etc/xinetd.d/*(files with “.” in the name are ignored)