Joomla Hosting BLOG

Blog about Joomla, Technologies and Hosting Service

Joomla Hosting - ASPHostPortal.com :: Customize your Browser Caching for Faster Performance

clock June 28, 2013 07:36 by author Mike

Joomla! is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications. In the race to the top of Search Engine result pages - ultimately higher SERP (Search Engine Ranking Points) the site speed is an important factor. There are lots of tricks to increase a Joomla site's speed, here is one wich does not need additional code to be installed and executed, but yet is powerful an let you fine-tune your site's performance.

Enter the Browser Caching arena. No, is not new or revolutionary, it's there for long - and often overlooked. Better, the best Joomla fine-tuning tools are ignoring it, or have a simple switch to turn it on or off, you basically can't fine-tune it. But it's a powerhouse, and you should fine-tune it. You can very easily assign different cache times for your visitor's browsers for different kind of files composing your page. And this is the honey-pot all other optimization tactics are missing. There are parts of the site which can be very persistent, but there can be others, which need to be frequently updated.

So go ahead, and boost your site's performance by simply adding the code below to your .htaccess file. Feel free to alter the code to change the cache timing of files until you match your site's specifics. For example if you have a site with imagery which is frequently updated, you might want to set the settings for images to a lower value. same is applying if you use some trickery which outputs updated Java Script files based on user actions. In contrary, if you have a static content, a brochure type of site, you might want to increase the cache time for your textual content.

ExpiresActive On
ExpiresByType text/html  "access plus 1 seconds"
ExpiresByType image/gif  "access plus 1 years"
ExpiresByType image/jpeg  "access plus 1 months"
ExpiresByType image/png  "access plus 1 months"
ExpiresByType text/css "access plus 1 months"
ExpiresByType text/javascript  "access plus 1 months"
ExpiresByType application/x-javascript  "access plus 1 months"
ExpiresByType image/ico  "access plus 1 months"


Joomla 3.0 Hosting - Discover The New Joomla 3.0 Features

clock March 21, 2013 11:47 by author andy_yo

The new Joomla version 3.0 will provide the new markup and UI, based on the Bootstrap HTML/CSS/JS framework from Twitter. These changes will create a great overall User Experience for Joomla site administrators, thereby giving site users the same. Also, beside Mootools, jQuery will be included to Joomla 3.0, give developers more strength to create friendlier back-end user interface. Many new features are implemented which provides a impressive improvement versus current 2.5 version. I will introduce some main new features as follow:

Joomla 3.0 – New installer

Using the words “Short and simple” to describe about Joomla 3.0 installation process is truly right, since there are only 3 steps to install a Joomla 3.0 package.

 

New installer interface

Twitter Bootstrap

Bootstrap is a free collection of tools for creating websites and applications. It contains simple and flexible HTML, JavaScript and CSS-based design templates for typography, forms, buttons, charts, navigation and other interface components.

Twitter Bootstrap – will be included in Joomla 3.0

Also, Bootstrap provides the basic common CSS for developers. They can use common user interface elements like buttons, layouts, alert messages, modal boxes, dropdown menus, tooltips, icons, tables, form elements and more from Bootstrap framework.

Great User Experience

The Joomla 3.0 is known as friendly User Experience (UX) since it is based on Bootstrap. That means the template and extension developers can  build the products which base on the same set of markup standards or consistent markup. You know, controlling your website would be much easier when all extensions look and work in a unified fashion. So you don’t have to get to be familiar with new interface on each extension.

Mobile Responsive Design

You might know the “responsive” feature from some Joomla templates. Now, it is included in Joomla 3.0, too. With the responsive design, you can control your Joomla site with mobile devices with ease. A responsive site will resize to the screen it is presented on any browsers or devices. Moreover, since it is responsive, it presented beautifully on mobile not only front-end, but also the back-end. This helps users manage the administrator easily on the mobile. For example, all the lists are put in one page that makes it more simply to control. 

Drag and Drop

The drag and drop feature is applied to make the item management more easily. All the old arrows on the ordering column have been removed, now you can drag-and-drop item freely in its categories to change the ordering of item list.

To use Drag & Drop feature, you must click on the 1st combo box at top right of table list, choose Ordering for “Sort table by”. Now you can see the “drag” icon at top right column of each item, move over to drag item and drop on position that you want.

The drag and drop feature

Tooltip

The tooltip in Joomla 3.0 is Boostrap based and provides a very easy way to use it in 3rd-extension.

The Tooltip display in Joomla 3.0

Context menu

Lists in Joomla 3.0 will have the “context menu” for each item, which helps you to access quickly to basic functions such as Edit, Publish/ Unpublish, Delete, Set default etc.

 

The Context menu in Joomla 3.0



Joomla 2.5 Hosting - Smart Search in Joomla 2.5

clock February 27, 2013 07:16 by author andy_yo

Joomla 2.5 shipped with many new features including multi-database support and much improved one-click upgrades.

One the most important of those features was a brand new search extension: Smart Search. Smart Search is destined to be the replacement for com_search which has been around since 2005 at least.

Smart Search is disabled by default but it's easy to enable and is a big improvement.

About ASPHostPortal.com

ASPHostPortal.com is Microsoft No #1 Recommended Windows and ASP.NET Spotlight Hosting Partner in United States. Microsoft presents this award to ASPHostPortal.com for ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2012, ASP.NET 4.5, ASP.NET MVC 4.0, Silverlight 5 and Visual Studio Lightswitch. Click here for more information

 

How to Enable Smart Search

Go to Extensions > Plug-in Manager and enable the Smart Search plugin.

Go to Components > Smart Search and click Index in the toolbar.

You'll see a progress bar as Joomla indexes your site. This is the first and last time you'll need to run this indexer.

When you're finished, you'll see all of the indexed content as in the image below:

Now that your content is in Smart Search, go to Extensions > Module Manager and place your Smart Search module live on your site.

The Smart Search module will look exactly the same as the normal Search module.

However, when you use the module, the Smart Search results will look very different:

There is also an Advanced Search feature to allow people to drill down more accurately:

Click on the Advanced Search and you'll be presented with the ability to filter your search by Author, Category, Country, Language, Region and Type.

 

 



Joomla 1.5 Hosting - ASPHostPortal :: How To Structure Content In Joomla 1.5

clock December 24, 2010 05:48 by author Jervis

Here are the steps:

1.
First we want to create a Section since they are at the top of the tree. You can access the “Section Manager” either by clicking the “Section Manager” Icon on the Admin Home Page (This is the page you see when you first login). Or you can select “Content” from the top horizontal menu and click on “Section Manager”.



2. You will now see a list of Sections, if you installed the sample data when you installed Joomla there will be a small list already here. For now we just want to create a new Section, so click the “New” Icon from the top right.



3. Now you will need to enter the “Title” for the new section and an “Alias”. The Alias is the text that will be used in the URL, no spaces allowed and if left blank it will simply use the Tile and replace spaces with hyphens. You want to set Published to yes and for now it is best to leave the Access Level set to Public.



4. For the Description just enter a basic description about this Section for now, it can be changed later if you decide you need it.

5. Click “Save” from the top right.



Add however many sections you want/need, you can always edit/add/delete these later.

6. Now we want to create some categories for those sections. From the top horizontal menu select “Content” and then click “Category Manager”.



7. We want to make a new Category so click the “New” icon from the top right.



8. This is basically Step 4 and 5 again, so repeat those steps here. No point in me saying the exact same steps again.

9. When done click “Save”



Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla 1.5 Hosting - ASPHostPortal :: Different layout for every page in Joomla 1.5.x

clock December 15, 2010 06:07 by author Jervis

The good thing is control layout of pages by administrator panel.
The solution is create different templates. But keeping the same things like header, footer and menu in every template is bad and if we are going to change something in future (who knows?) it will be a big problem.

So we need to have one main template with basic layout and another (inherited) templates with layout for each page.

Solution


First of all we need to create main template which will be wrapper for all the next templates.


Creating global template, named it “_global”. Files that we need:

- /templates/_global/index.php
- /templates/_global/layout.php
- /templates/_global/templateDetails.xml
- /templates/_global/helper.php


1. Index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
  <head>
    <jdoc:include type="head" />
    <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/framework/stylesheets/application.css" type="text/css" charset="utf-8">
  </head>
<body>
  <div class="header">
    Header of page
  </div>
  <div class="layout">
    <jdoc:file name="layout.php" />
  </div>
  <div class="footer">
    &copy; Egor Hmelyoff
  </div>
</body>
</html>

Here we’ve written the new construction <jdoc:file name=”layout.php” />. Which means that you include layout.php from the current template. After that, we will create this file in each new template and insert there our layout.

2. layout.php (for _global template):

<div class="content">basic layout</div>

Here we can write whatever we need.

3. templateDetails.xml


<?xml version="1.0" encoding="utf-8"?> 
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" 
 "http://dev.joomla.org/xml/1.5/template-install.dtd"> 
<install version="1.5.9" type="template"> 
  <name>_global template</name> 
  <creationDate>23 April 2009</creationDate> 
  <author>hmelyoff</author> 
  <authorEmail>[email protected]</authorEmail> 
  <authorUrl>http://blog.evershow.me</authorUrl> 
  <copyright>Life Fm, 2009</copyright> 
  <license>GNU/GPL</license> 
  <version>1.5.0</version> 
  <description>Global template with basic html layout</description> 
  <files> 
    <filename>index.php</filename>
    <filename>templateDetails.xml</filename> 
    <filename>helper.php</filename>
    <filename>layout.php</filename> 
  </files>          

  <positions>
  </positions>   

</install>

4. helper.php: (updated)

<?php
  defined('_JEXEC') or die('Restricted access'); 

  function global_render($_params = null)
  {
    global $mainframe; 

    // Base instances
    $document =& JFactory::getDocument();
    $user     =& JFactory::getUser(); 

    // Define global template
    $_template    = "_global";
    $_template_dir      = JPATH_THEMES.DS.$_template; 

    // Define _global params
    if (is_readable( $_template_dir.DS.'params.ini' ))
    {
      $_content = file_get_contents($_template_dir.DS.'params.ini');
      $_global_params = new JParameter($_content);
    } 

    // Define empty params if not exist
    if(!$_params){
      $_params = new JParameter('');
    } 

    // example includes/application.php "render" function
    $file   = JRequest::getCmd( 'tmpl', 'index' );
    if ( JSite::getCfg('offline') && $user->get('gid') < '23' ) {
      $file = 'offline';
    }
    if ( !is_dir( $_template_dir ) && !JSite::getCfg( 'offline' ) ) {
      $file = 'component';
    } 

    $params = array(
      'template' => $_template,
      'file'            => $file.'.php',
      'directory' => JPATH_THEMES
    ); 

    // Catch current template
    $template = $mainframe->getTemplate();
    $template_dir = JPATH_THEMES.DS.$template; 

    // Set global template as current and render document
    $mainframe->setTemplate( $_template );
    $data = $document->render( JSite::getCfg('caching'), $params ); 

    // Set back current template
    $mainframe->setTemplate( $template ); 

    $replace = array();
    $matches = array(); 

    // Catch own construction for include files
    // (example /libraties/joomla/document/html/html.php "_parseTemplate" function)
    if( preg_match_all( '#<jdoc:file\ name="([^"]+)".*\/>#iU', $data, $matches ) ){
      $matches[0] = array_reverse( $matches[0] );
      $matches[1] = array_reverse( $matches[1] ); 

      $count = count( $matches[1] ); 

      for( $i = 0; $i < $count; $i++ ){
        $inc = $matches[1][$i];
        $tpl_dir = $template_dir; 

        // if file does not exist in current template,
        // looking for it in "_global" teamplate dir
        if( !file_exists( $template_dir.DS.$inc ) ){
          $tpl_dir = $_template_dir;
        } 

        $document->params = $_params;
        $document->global_params = $_global_params; 

        $tpl = $document->_loadTemplate( $tpl_dir, $inc );
        $tpl = $document->_parseTemplate( $tpl ); 

        $replace[$i] = $tpl; 

      } 

      $data = str_replace( $matches[0], $replace, $data ); 

    } 

    return $data;

  } 

?>

This is the main function to render new inherited templates.
So, we’ve created “_global” template, but remeber: this template not for assign it.


Inherited templates

Next step: we will create new inherited template for home page (for example).


Files that we need:

- /templates/home/index.php
- /templates/home/layout.php
- /templates/home/templateDetails.php


home” here for example, we can give any name to inherited templates.

1. Index.php: (updated)

<?php
  defined('_JEXEC') or die('Restricted access');
  include JPATH_THEMES.DS.'_global/helper.php';
  echo global_render($this->params);
?>

2. layout.php:

<div class="content">

  <div class="left">new left column in home template</div>
  <div class="center">content part</div>
</div>

3. templateDetails.php:

That’s all. Now we can assign this template by Joomla administrator panel.
Also, in inherited template we have access to params of _global template by $this->global_params->get(…)


Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: Fix 755 permission issues with running PHP as FastCGI

clock December 12, 2010 05:14 by author Jervis

I know there is a lot of talk about security involving any CMS these days. Especially between Joomla, Drupal and Wordpress. Everyone keeps saying 777 is bad, you should never use it because it is a security risk and your site will get hacked. Well that may be true, but most of these people never provide a solution. All they say is your directories should be 755. On many php installs this means only apache can wright to these folders. So if you try to upload a theme, component, module or plugin from your CMS it will fail. That is why so many people have to set directories to 777 in order for things to work properly. Before doing any of the below create a backup first!

If you are using Plesk there is an easy but not well documented solution. Apache suEXEC must be installed for this to work properly, but if you are using plesk it most likely is already running. http://httpd.apache.org/docs/1.3/suexec.html
Go to Domains > yourdomain.com > Web Hosting Settings. Scroll down to PHP support. Make sure ‘safe_mode’ is unchecked then select FastCGI application. This FastCGI is much different and faster than CGI. Also this should be much quicker than using suPHP which would be the other option to fixing permissions issues.




You may have to restart Apache before everything works correctly. After turning this on my site had errors and would not run. Turns out I had some ownership issues. I ran a chown from the command line which returned ownership to the ftp user. Everything worked great after this. You can now change your 777 directories to 755.

If you have SSH shell access the following commands can be run from the command line to reset all files and directories back to the server defaults of 755 and 644. Change directories to the top directory (" / ") of your Joomla! installation, then run:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

For more infomation on Joomla and permissions: http://docs.joomla.org/How_do_UNIX_file_permissions_work%3F

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: Add New Module Position to Joomla 1.5 Template

clock November 24, 2010 17:00 by author Jervis

Here are the steps:

1. open the index.php with the HTML editor and go to the line where you want to add the new module
2. insert the following code: <?php if ($this->countModules('newmodule)) : ?><div id="newmodule" ><jdoc:include type="modules" name="newmodule" style="xhtml" /></div><?php endif; ?>
3. save the file, go to the module manager and place the module on the "newmodule" position.
4. this new position will not be available in the position selector, but you just need to type in and save the module

Style the new module with CSS (style="xhtml")

1. #newmodule .moduletable {}
2. #newmodule .moduletable h3 {}
3. #newmodule .moduletable_menu {}

Add these codes to the template css file, and customize them as you want.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: Creating a Hello World Module for Joomla 1.5

clock November 24, 2010 16:54 by author Jervis

A module is a lightweight and flexible extension that is used for page rendering. They are used for small bits of the page that are generally less complex and are able to be seen across different components.

You can see many examples of modules in the standard Joomla! install: - menus - Latest News - Login form - and many more.

This tutorial will explain how to go about creating a simple Hello World module. Through this tutorial you will learn the basic file structure of a module. This basic structure can then be expanded to produce more elaborate modules.

File Structure

There are four basic files that are used in the standard pattern of module development:
-
mod_helloworld.php
- This file is the main entry point for the module. It will perform any necessary initialization routines, call helper routines to collect any necessary data, and include the template which will display the module output.
-
mod_helloworld.xml
- This file contains information about the module. It defines the files that need to be installed by the Joomla! installer and specifies configuration parameters for the module.
-
helper.php
- This file contains the helper class which is used to do the actual work in retrieving the information to be displayed in the module (usually from the database or some other source).
-
tmpl/default.php - This is the module template. This file will take the data collected by mod_helloworld.php and generate the HTML to be displayed on the page.

Creating mod_helloworld.php

The mod_helloworld.php file will perform three tasks:
- include the helper.php file which contains the class to be used to collect the necessary data
- invoke the appropriate helper class method to retrieve the data
- include the template to display the output.

The helper class is defined in our helper.php file. This file is included with a require_once statement:

require_once( dirname(__FILE__).DS.'helper.php' );

require_once is used because our helper functions are defined within a class, and we only want the class defined once.

Our helper class has not been defined yet, but when it is, it will contain one method: getHello(). For our basic example, it is not really necessary to do this - the “Hello, World” message that this method returns could simply be included in the template. We use a helper class here to demonstrate this basic technique.

Our module currently does not use any parameters, but we will pass them to the helper method anyway so that it can be used later if we decide to expand the functionality of our module.

The helper class method is invoked in the following way:

$hello = modHelloWorldHelper::getHello( $params );

Completed mod_helloworld.php file

The complete mod_helloworld.php file is as follows:

<?php
/**
 * Hello World! Module Entry Point
 *
 * @package    Joomla.Tutorials
 * @subpackage Modules
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:modules/
 * @license        GNU/GPL, see LICENSE.php
 * mod_helloworld is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Include the syndicate functions only once
require_once( dirname(__FILE__).DS.'helper.php' );

$hello = modHelloWorldHelper::getHello( $params );
require( JModuleHelper::getLayoutPath( 'mod_helloworld' ) );
?>

The one line that we haven’t explained so far is the first line. This line checks to make sure that this file is being included from the Joomla! application. This is necessary to prevent variable injection and other potential security concerns.

Creating helper.php

The helper.php file contains that helper class that is used to retrieve the data to be displayed in the module output. As stated earlier, our helper class will have one method: getHello(). This method will return the ‘Hello, World’ message.

Here is the code for the helper.php file:
<?php

/**
 * Helper class for Hello World! Module
 *
 * @package    Joomla.Tutorials
 * @subpackage Modules
 * @link http://dev.joomla.org/component/option,com_jd-wiki/Itemid,31/id,tutorials:modules/
 * @license        GNU/GPL, see LICENSE.php
 * mod_helloworld is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */
class modHelloWorldHelper
{
    /**
     * Retrieves the hello message
     *
     * @param array $params An object containing the module parameters
     * @access public
     */   
    function getHello( $params )
    {
        return 'Hello, World!';
    }
}
?>

There is no rule stating that we must name our helper class as we have, but it is helpful to do this so that it is easily identifiable and locateable.

More advanced modules might include database requests or other functionality in the helper class method.

Creating tmpl/default.php

The default.php file is the template which displays the module output.

The code for the default.php file is as follows:

<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php echo $hello; ?>

An important point to note is that the template file has the same scope as the mod_helloworld.php file. What this means is that the variable $hello can be defined in the mod_helloworld.php file and then used in the $hello file without any extra declarations or function calls.

Creating mod_helloworld.xml

The mod_helloworld.xml is used to specify which files the installer needs to copy and is used by the Module Manager to determine which parameters are used to configure the module. Other information about the module is also specified in this file.

The code for mod_helloworld.xml is as follows:

<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
    <name>Hello, World!</name>
    <author>Jervis</author>
    <version>1.5.0</version>
    <description>A simple Hello, World! module.</description>
    <files>
        <filename>mod_helloworld.xml</filename>
        <filename module="mod_helloworld">mod_helloworld.php</filename>
        <filename>index.html</filename>
        <filename>helper.php</filename>
        <filename>tmpl/default.php</filename>
        <filename>tmpl/index.html</filename>
    </files>
    <params>
    </params>
</install>

You will notice that there are two additional files that we have not yet mentioned: index.html and tmpl/index.html. These files are included so that these directories cannot be browsed. If a user attempts to point their browser to these folders, the index.html file will be displayed. These files can be left empty or can contain the simple line:

<html><body bgcolor="#FFFFFF"></body></html>

which will display an empty page.

Since our module does not use any parameters, this section is empty.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



Joomla Hosting - ASPHostPortal :: How to Setup Joomla Ubuntu

clock November 13, 2010 04:21 by author Jervis

This is a tutorial on how to set up Joomla in Ubuntu. The set up examples based on Linux Ubuntu desktop 8.04.

Set up LAMP server in Ubuntu desktop

Open command terminal by clicking 'Applications - Accessories - Terminal'. Change to root environments using 'sudo su' command. See step by step example below:

[email protected]:~$ sudo su
[sudo] password for kucing:
[email protected]:/home/kucing# tasksel

Choose LAMP server and OK to install. See screenshot example below:

 

When LAMP server installation is finished, we can start Apache web server using '/etc/init.d/apache2 start' command. Then, we can start configure Apache web server.

Change directory to /etc/apache2.

[email protected]:/home/kucing# cd /etc/apache2/
[email protected]:/etc/apache2# ls
apache2.conf  envvars     mods-available  ports.conf       sites-enabled
conf.d        httpd.conf  mods-enabled    sites-available

Copy 'sites-available/default' file configuration for Joomla virtual host.

[email protected]:/home/kucing# cp sites-available/default sites-available/joomla-basic

Run 'a2ensite' to enable site:

[email protected]:/etc/apache2/sites-available# a2ensite joomla-basic
Enabling site joomla-basic.
Run '/etc/init.d/apache2 reload' to activate new configuration!
[email protected]:/etc/apache2/sites-available# /etc/init.d/apache2 reload
 * Reloading web server config apache2                                         
apache2: Could not reliably determine the server's fully qualified domain
name,
using 127.0.1.1 for ServerName
                                                                         [ OK ]
[email protected]:/etc/apache2/sites-available# cd ..
[email protected]:/etc/apache2# ls sites-enabled/
000-default  joomla-basic
[email protected]:/etc/apache2#

Set up MYSQL database for Joomla cms

Create a database for Joomla. See example steps below:

[email protected]:/home/kucing# mysql -u root –p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 66
Server version: 5.0.67-0ubuntu6 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Create a new database:

mysql> create database joomladb;
Query OK, 1 row affected (0.07 sec)

mysql>\q

Quit mysql and we can begin the Joomla installation.

Install Joomla in Ubuntu

1. Download latest joomla 1.5.x from official Joomla website:

http://www.joomla.org/download.html

2. Extract joomla 1.5.x and move it to web server home directory. Here is an example on how to transfer Joomla to web server root directory in Ubuntu desktop:

[email protected]:/home/kucing# cd /var/www/
[email protected]:/var/www# mkdir joomla-basic
[email protected]:/var/www# cd joomla-basic/
[email protected]:/var/www/joomla-basic# cp -R /home/kucing/Documents/kursus-joomla/Joomla_1.5.14-Stable-Full_Package/* .
[email protected]:/var/www/joomla-basic# cd ..
[email protected]:/var/www# chown -R www-data.www-data joomla-basic/

3. Open web browser and key in “localhost/joomla-basic” in the url.

4. Follow joomla installation steps.












5. Remove “installation” directory.

[email protected]:/var/www# rm -r /var/www/joomla-basic/installation

Test Your Joomla Site

Open your new website's administration page by entering the address such as 'localhost/joomla15/administrator' in the web browser url. Replace the 'joomla15' with the name of your joomla's directory name.
Enter your username and password.

Done!!

If you have any problem with Joomla, you can trust us to host your Joomla site. We are always ready to help you. You can start from only $5.00/month to get Joomla hosting.

Reasons why you must trust ASPHostPortal.com

Every provider will tell you how they treat their support, uptime, expertise, guarantees, etc., are. Take a close look. What they’re really offering you is nothing close to what ASPHostPortal does. You will be treated with respect and provided the courtesy and service you would expect from a world-class web hosting business.

You’ll have highly trained, skilled professional technical support people ready, willing, and wanting to help you 24 hours a day. Your web hosting account servers are monitored from three monitoring points, with two alert points, every minute, 24 hours a day, 7 days a week, 365 days a year. The followings are the list of other added- benefits you can find when hosting with us:

- DELL Hardware
Dell hardware is engineered to keep critical enterprise applications running around the clock with clustered solutions fully tested and certified by Dell and other leading operating system and application providers.
- Recovery Systems
Recovery becomes easy and seamless with our fully managed backup services. We monitor your server to ensure your data is properly backed up and recoverable so when the time comes, you can easily repair or recover your data.
- Control Panel
We provide one of the most comprehensive customer control panels available. Providing maximum control and ease of use, our Control Panel serves as the central management point for your ASPHostPortal account. You’ll use a flexible, powerful hosting control panel that will give you direct control over your web hosting account. Our control panel and systems configuration is fully automated and this means your settings are configured automatically and instantly.
- Excellent Expertise in Technology
The reason we can provide you with a great amount of power, flexibility, and simplicity at such a discounted price is due to incredible efficiencies within our business. We have not just been providing hosting for many clients for years, we have also been researching, developing, and innovating every aspect of our operations, systems, procedures, strategy, management, and teams. Our operations are based on a continual improvement program where we review thousands of systems, operational and management metrics in real-time, to fine-tune every aspect of our operation and activities. We continually train and retrain all people in our teams. We provide all people in our teams with the time, space, and inspiration to research, understand, and explore the Internet in search of greater knowledge. We do this while providing you with the best hosting services for the lowest possible price.
- Data Center
ASPHostPortal modular Tier-3 data center was specifically designed to be a world-class web hosting facility totally dedicated to uncompromised performance and security
- Monitoring Services
From the moment your server is connected to our network it is monitored for connectivity, disk, memory and CPU utilization – as well as hardware failures. Our engineers are alerted to potential issues before they become critical.
- Network
ASPHostPortal has architected its network like no other hosting company. Every facet of our network infrastructure scales to gigabit speeds with no single point of failure.
- Security
Network security and the security of your server are ASPHostPortal’s top priorities. Our security team is constantly monitoring the entire network for unusual or suspicious behavior so that when it is detected we can address the issue before our network or your server is affected.
- Support Services
Engineers staff our data center 24 hours a day, 7 days a week, 365 days a year to manage the network infrastructure and oversee top-of-the-line servers that host our clients’ critical sites and services.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Sign in