Phi 9 Official Blog

Web Hosting Phenomenon

Archive for the ‘Tutorials’ Category

WordPress editor and its font

comments

You have to admit, WordPress is a pretty damn serious blogging tool. From start to end it’s just designed for you to make you write. Take a look at its editor, for instance. It goes in full screen mode and hides its tool bar. Though this editor, TinyMCE has everything you need to begin but the default font *Georgia* in it is just hard coded and cannot be easily changed. It’s inherited from a file called content.css in tinymce directory but overriding it directly in that file may not be a good idea, because:

  • WordPress system updates will revert the changes, and
  • Even if you directly edit the content.css file, you’ll still see Georgia font when you’ll use the editor in full screen

Because this blog uses a different web font, Open Sans, so the best I would like to see when writing a post is that the editor carries the same font as well.

STEP # 1:

Look for functions.php in root of your themes directory inside /wp-content/themes/yourtheme/, open it up and add one line after php tag.

add_editor_style('custom-editor-style.css');

STEP # 2:

In the same directory, create a file called custom-editor-style.css with below lines in it

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
* { font-family: 'Open Sans', sans-serif, Arial, Helvetica;}

Go ahead, clear your browsers cache and this is what you’ll see. Note the title font, it’s set to sans-serif, taken from my browser settings  (I’m using Firefox on Linux).

Written by Phi 9 World

October 13th, 2012 at 10:38 am

Install, publish DNN or other web applications from WebMatrix

comments

Earlier we wrote a tutorial on how to install and deploy DNN (DotNetNuke) manually via an FTP client. But since WebMatrix is becoming more of a standard for web deployment, it’s the right time to let you guys know how to publish your existing DNN site from WebMatrix to your Phi 9 account. The process being straight-forward is still almost the same but this is a step-by-step tutorial for people who are still starting to use WebMatrix and our control panel.

To sum up the overall process, all you  need to do is:

  • Download WebMatrix profile from our control panel, add connection string to it and import it to WebMatrix
  • Publish
  • Complete post-publish installation wizard, if any

So, this process is same if you want to publishing any other applications from WebMatrix except there’ll be different post-setup wizard depending upon the web app you’ll be using!

This tutorial assumes that you just have downloaded the DNN on your local system in WebMatrix; which in most cases does require post-setup.
Below are the detailed steps.

1. This tutorial assumes that you’ve a working installation of WebMatrix and DNN from it’s gallery on your computer. If not open up WebMatrix and install DNN or any other web application you want. We’ll use DNN for this example.

2. Login to your Windows control panel (usually at secure.phi9.com, yours may be different; consult emails from Phi 9). Go to Web Sites > Click on your website name > Under Home Folder tab, make sure that “Enable Write Permissions” checkbox is enabled.

3. From Databases section in control panel, create an SQL Server 2008 database, also its db user and assign the db user to your database. Simply click the mentioned buttons.

4. From Web Sites section > your website > Web Publishing tab > Enter your control panel username and password > Click Enable.

5. From the same screen, click on Rebuild Publishing Profile link. Select the database you  just created, its db user, leave FTP field to default and click on OK button.

6. Finally click on “Download Publish Profile” on the same screen. Save the file on your computer.

7. Open WebMatrix, open your web application site or DNN site in it, go to “Remote” tab, click “Publish” and “Import Publish Settings”.

8. Finally publish the site making sure to select checkbox saying, “Delete files on the remote server that are not on my computer” .

9. It’ll take a few minutes to complete. Then click on your site URL.

10. Complete the post-deployment installation steps. In case of DNN, just keep clicking “Next” until you are asked to set up your account with a username and password.



11. Set up completes with a success message and your DNN site is published!

Written by Phi 9 World

September 29th, 2012 at 1:27 am

Install WordPress in just 5 clicks!

comments

WordPress started as a blogging engine but has rapidly evolved more than that, over out the years. It is now one of the easiest and quickest content management system. Every fifth or so website on the internet uses WordPress — and it doesn’t stop there! It keeps growing every day with thousands of addons and tons of functionality.

At Phi 9, you can actually install and deploy as many WordPress instances as you want, with just a few clicks each.

Just follow these steps.

1. Login to your Windows control panel, go to your website under Websites menu and click on it. Once there, all you need to do is to enable ‘write’ permissions.

2. Then go to Microsoft Web App Gallery within the control panel, select Blog from category drop down menu on top of the page and then go to page 3. Then click install for application “WordPress” as shown in the below screenshot.

3. Click ‘Next’ to proceed.

4. Now you’ll have to setup WordPress installation. Simply select the site, leave application name to blank, choose ‘create a new MySQL5 database’ and then input the database name and database user name. These must be unique so always try different names. Then select a password and click next.

5. Now, you’ll see a screen like below. Just click on ‘Launch Worpdress’ link to proceed.

6. Give WordPress your desired information and click ‘Install Worpdress’ button.

7. Success, now login!!

8. Now is the time to make your WordPress up-to-date. Simply click on ‘Update WordPress’ link on the top to proceed.

 

9. Congratulations. That was pretty easy? Isn’t it? Welcome to The Web Hosting Phenomenon!

How to configure and publish apps from Visual Studio with Web Deploy on Phi 9?

comments

Whether you just discovered the Web Deploy or if you an experienced developer wanting to publish your application directly to your website without fuss of manual uploads, you likely need to have access to your Web Publishing profile. It’s easier, if you want to deploy from WebMatrix – because all you need to do is to download the profile from your Phi 9 Windows control panel and import it in WebMatrix or Visual Studio Pro. However if you are using Visual Studio Express or Visual Web Developer, you’ll have to input the settings manually because Visual Studio doesn’t support importing of your publish profiles.

Just follow the following steps.

1. Login to your Phi 9 Windows control panel

2. Go to ‘Web > Websites’ under your default hosting space (your plan name).

3. Click on your desired website name.

4. Click on ‘Web Publishing’ tab

5. Choose, enter your username, password and click on ‘Enable’.

6. Click on ‘Download Publishing Profile’ link.

7. Open up the downloaded profile in any text editor or in Notepad.

8. Open up Visual Studio, the version you have. Go to Build > Publish. Choose Publish Method as Web Deploy.
Copy the value of ‘publishUrl’ from the file you just opened in text editor and paste ‘Service URL’ in Visual Studio.  Do the same for ‘msdeploySite’ and paste it into ‘Site/application’ field of Visual Studio publish settings.
Check ‘Allow untrustred certificate’ checkbox. Enter your username and password. And that’s it. You can now publish your app through Visual Studio.

 

Welcome to the world of ϕ.
Welcome to The Web Hosting Phenomenon ™

Written by Phi 9 World

June 14th, 2012 at 5:43 pm

How do I install DNN?

comments

So the time comes when you have played with the ASP.net, you need a content management system and you are interested in the DotNetNuke — the infamous ‘DNN’.
At Phi9, you can install DNN by one of the three methods. Either through WebMatrix, one-click installer or manually.
To demonstrate the full process, let’s go with the last method and install our DNN.

The steps involved are pretty simple.
– Configure databases
– Get special permissions setup
– Download latest installation package
– Upload the contents of package
– Complete the web based installation process

Details 

  1. Make sure that there are no remains of previous installations in your domain or databases. Delete everything in public_html of the domain and recreate your databases from control panel. If this is your first attempt of installation, then you don’t need to worry about this step.
  2. Now the second step is really important. You need “special” permissions for your DNN before you proceed with the installation. This can only be done from server side. Have a system engineer assign these permissions for your domain(s). Simply email support@phi9.com or ask through live chat.
  3. Login to your Windows control panel, go to your hosting space menu, choose Databases section and create an MSSQL database. You see the ‘Create database’ button in below screenshot, just click on it.
    create-db
  4.  Create create a database user and assign it to the database you just created. Do it as follows.
    create-db-user
  5. Go to DotNetNuke’s official website, click on Download link from top navigation and then download the “Install Package” shown here.
  6. Extract the zip package you just downloaded, login to your FTP account (through FileZilla) and upload the contents of zip package to public_html directory of your desired domain. You can see the login credentials in the account information email sent to you when you signed up.
  7. Now open web browser, go to yourdomain.com/install/, wait for a few moments before the DNN wizard starts up. Choose ‘Typical’ and hit the next button.
  8.  Click on ‘Next’ again.
  9.  Choose “SQL Server 2005 / 2008 Database”, enter SQL Server address (this is also sent you in account information email), enter your database name you created in step 3 above, uncheck “Integrated Security” check box, enter the db user name and password you created earlier and finally hit the button ‘Next’.
  10. The installation process will start. Hold your breath and make sure that you don’t get any errors.
  11. This is the final step of installation. Enter your user details and website information. You can then select the default template for your DNN. It can be either ‘Blank Website’ or ‘Default Website’. If this is a test deployment, you can choose the second option so you can play and learn.
  12. There you go. You brand new DNN blank website is ready.

Congratulations! You can now download DNN’s official beginners’ guide and start cooking the DNN.

Written by Phi 9 World

May 11th, 2012 at 9:21 pm