Author Archives: Alexia Pamelov

ByAlexia Pamelov

Cheap Windows ASP.NET Hosting Tutorial – FluentFilters for ASP.NET Core

CheapWindowsHosting.com | Best and cheap ASP.NET hosting. In this post we will a library for ASP.NET Core, that will add support of criteria for global action filters. ASP.NET Core have ability to register filters globally. It’s works great, but sometimes it would be nice to specify conditions for filter execution and FluentFlters will help with this task.

asp

Project on GitHub: https://github.com/banguit/fluentfilters

What should you do ?

First Install package

For ASP.NET Core Web Application you should use FluentFilter version 0.3.* and higher. Currently latest version 0.3.0-beta.
To install the latest package you can use Nuget Package Manager in Visual Studio or specify dependency in project.json file as shown below and call for package restore.

{
    //...
    "dependencies": {
        //...
        "fluentfilters": "0.3.0-beta"
    },
    //...
}

Configuration:

After installing the package to your ASP.NET Core Web Application you should replace default filter provider by custom from library. Your Startup class should looks like shown below:

// Startup.cs
using FluentFilters;  
using FluentFilters.Criteria;

namespace DotNetCoreWebApp  
{
  public class Startup
  {
    //...
    public void ConfigureServices(IServiceCollection services)
    {
      //...
      services.AddMvc(option =>
      {
        option.Filters.Add(new AddHeaderAttribute("Hello", "World"), c =>
        {
          // Example of using predefined FluentFilters criteria
          c.Require(new ActionFilterCriteria("About"))
            .Or(new ControllerFilterCriteria("Account"))
            .And(new ActionFilterCriteria("Login"));
        });
      });

      // Replace default filter provider by custom from FluentFilters library
      Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensions.Replace(services, ServiceDescriptor.Singleton<IFilterProvider, FluentFilterFilterProvider>());
      //...
    }
    //...
  }
}

Registering filters

To register filters with criteria, you need do it in usual way but calling extended methods Add or AddService. Below you can see signature of these methods.

// Register filter by instance
void Add(this FilterCollection collection, IFilterMetadata filter, Action<IFilterCriteriaBuilder> criteria);

// Register filter by type
IFilterMetadata Add(this FilterCollection collection, Type filterType, Action<IFilterCriteriaBuilder> criteria)  
IFilterMetadata Add(this FilterCollection collection, Type filterType, int order, Action<IFilterCriteriaBuilder> criteria)  
IFilterMetadata AddService(this FilterCollection collection, Type filterType, Action<IFilterCriteriaBuilder> criteria)  
IFilterMetadata AddService(this FilterCollection collection, Type filterType, int order, Action<IFilterCriteriaBuilder> criteria)

Specify conditions

To specify the conditions, you should set the chain of criteria for the filter at registration. Using criteria, you can set whether to execute a filter or not. The library already provides three criteria for use:

  • ActionFilterCriteria – filter by specified action
  • AreaFilterCriteria – filter by specified area
  • ControllerFilterCriteria – filter by specified controller

For one filter, you can only specify two chains of criteria. These are the chains of criteria that are required and which should be excluded.

option.Filters.Add(typeof(CheckAuthenticationAttribute), c =>  
{
    // Execute if current area "Blog"
    c.Require(new AreaFilterCriteria("Blog"));
    // But ignore if current controller "Account"
    c.Exclude(new ControllerFilterCriteria("Account"));
});

Chains of criteria are constructed by using the methods And(IFilterCriteria criteria) and Or(IFilterCriteria criteria), which work as conditional logical operators && and ||.

option.Filters.Add(typeof(DisplayTopBannerFilterAttribute), c =>  
{
    c.Require(new IsFreeAccountFilterCriteria())
        .Or(new AreaFilterCriteria("Blog"))
        .Or(new AreaFilterCriteria("Forum"))
            .And(new IsMemberFilterCriteria());

    c.Exclude(new AreaFilterCriteria("Administrator"))
        .Or(new ControllerFilterCriteria("Account"))
            .And(new ActionFilterCriteria("LogOn"));
});

If using the C# language, then the code above can be understood as (like pseudocode):

if( IsFreeAccountFilterCriteria() || area == "Blog" ||  
    (area == "Forum" && IsMemberFilterCriteria()) ) 
{
    if(area != "Administrator")
    {
        DisplayTopBannerFilter();
    }
    else if(controller != "Account" && action != "LogOn")
    {
        DisplayTopBannerFilter();
    }
}

Implementation of custom criteria

To create a custom criterion you should inherit your class from the FluentFilters.IFilterCriteria interface and implement only one method Match with logic to making decision about filter execution. As example, look to the source code for ActionFilterCriteria:

public class ActionFilterCriteria : IFilterCriteria  
{
    #region Fields

    private readonly string _actionName;

    #endregion

    #region Constructor

    /// <summary>
    /// Filter by specified action
    /// </summary>
    /// <param name="actionName">Name of the action</param>
    public ActionFilterCriteria(string actionName)
    {
        _actionName = actionName;
    }

    #endregion

    #region Implementation of IActionFilterCriteria

    public bool Match(FilterProviderContext context)
    {
        return string.Equals(_actionName, context.ActionContext.RouteData.GetRequiredString("action"), StringComparison.OrdinalIgnoreCase);
    }

    #endregion
}

 

ByAlexia Pamelov

Cheap Windows Hosting – How To Enable ASP.NET 4.5 On Windows 10 or Windows 8/8.1

CheapWindowsHosting.com | Best and Cheap windows Hosting. By default IIS and ASP.NET aren’t configured as part of a Windows setup (for obvious reasons) so developers are used to having to register IIS manually before being able to run and develop ASP.NET web sites on their desktops.

429944-best-hosted-platforms-for-small-business

This no longer works and requires a different command. Depending on what you already have enabled this may work

dism /online /enable-feature /featurename:IIS-ASPNET45

If you haven’t enabled anything related to IIS yet you can do that at the same time with:

dism /online /enable-feature /all /featurename:IIS-ASPNET45

However!  That might not appear to solve the problem even when it has!  A post from Microsoft makes a bug apparent:

After the installation of the Microsoft .NET Framework 4.6, users may experience the following dialog box displayed in Microsoft Visual Studio when either creating new Web Site or Windows Azure project or when opening existing projects.

Configuring Web http://localhost:64886/ for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.

NOTE: Microsoft .NET Framework 4.6 may also be referred to as Microsoft .NET Framework 4.5.3

This issue may impact the following Microsoft Visual Studio versions: Visual Studio 2013, Visual Studio 2012, Visual Studio 2010 SP1

Workaround:

Select “OK” when the dialog is presented. This dialog box is benign and there will be no impact to the project once the dialog box is cleared. This dialog will continue to be displayed when Web Site Project or Windows Azure Projects are created or opened until the fix has been installed on the machine.

Resolution:

Microsoft has published a fix for all impacted versions of Microsoft Visual Studio.

Visual Studio 2013 –

  • Download Visual Studio 2013 Update 4
  • For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article

Visual Studio 2012

  • An update to address this issue for Microsoft Visual Studio 2012 has been published: KB3002339
  • To install this update directly from the Microsoft Download Center, here

Visual Studio 2010 SP1

  • An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340
  • This update is available from Windows Update
ByAlexia Pamelov

Cheap Cloud Hosting Server

CheapWindowsHosting.com | Best and cheap cloud hosting server plan. In some respects cloud servers work in the same way as physical servers but the functions they provide can be very different. When opting for cloud hosting, clients are renting virtual server space rather than renting or purchasing physical servers. They are often paid for by the hour depending on the capacity required at any particular time.

windows-cloud-server

Traditionally there are two main options for hosting: shared hosting and dedicated hosting. Shared hosting is the cheaper option whereby servers are shared between the hosting provider’s clients. One client’s website will be hosted on the same server as websites belonging to other clients. This has several disadvantages including the fact that the setup is inflexible and cannot cope with a large amount of traffic. Dedicated hosting is a much more advanced form of hosting, whereby clients purchase whole physical servers. This means that the entire server is dedicated to them with no other clients sharing it. In some instances the client may utilise multiple servers which are all dedicated to their use. Dedicated servers allow for full control over hosting. The downside is that the required capacity needs to be predicted, with enough resource and processing power to cope with expected traffic levels. If this is underestimated then it can lead to a lack of necessary resource during busy periods, while overestimating it will mean paying for unnecessary capacity.

Below are the key benefits of cloud servers:

  • Flexibility and scalability; extra resource can be accessed as and when required
  • Cost-effectiveness; whilst being available when needed, clients only pay for what they are using at a particular time
  • Ease of set up; Cloud servers do not require much initial setup
  • Reliability; due to the number of available servers, if there are problems with some, the resource will be shifted so that clients are unaffected. 

What’s Cloud Hosting ?

Cloud hosting services provide hosting for websites on virtual servers which pull their computing resource from extensive underlying networks of physical web servers. It follows the utility model of computing in that it is available as a service rather than a product and is therefore comparable with traditional utilities such as electricity and gas. Broadly speaking the client can tap into their service as much as they need, depending on the demands of their website, and they will only pay for what they use.

It exists as an alternative to hosting websites on single servers (either dedicated or shared servers) and can be considered as an extension of the concept of clustered hosting where websites are hosted on multiple servers. With cloud hosting however, the network of servers that are used is vast and often pulled from different data centres in different locations. 

Practical examples of cloud hosting can fall under both the Infrastructure as a Service (IaaS) and Platform as a Service (PaaS) classifications. Under IaaS offerings the client is simply provided with the virtualised hardware resource on which they can install their own choice of software environment before building their web application. On a PaaS service, however, the client is also provided with this software environment, for example, as a solution stack (operating system, database support, web server software, and programming support), on which they can go straight to installing and developing their web application. Businesses with complex IT infrastructures and experienced IT professionals may wish to opt for the more customisable IaaS model but others may prefer the ease of a PaaS option.

A development of the concept of cloud hosting for enterprise customers is the Virtual Data Centre (VDC). This employs a virtualised network of servers in the cloud which can be used to host all of a business’s IT operations including its websites.

The more obvious examples of cloud hosting involve the use of public cloud models – that is hosting on virtual servers which pull resource from the same pool as other publicly available virtual servers and use the same public networks to transmit the data; data which is physically stored on the underlying shared servers which form the cloud resource. These public clouds will include some security measures to ensure that data is kept private and would suffice for most website installations. However, where security and privacy is more of a concern, businesses can turn towards cloud hosting in private clouds as an alternative – that is clouds which use ring-fenced resources (servers, networks etc), whether located on site or with the cloud provider.

A typical cloud hosting offering can deliver the following features and benefits:

  • Reliability; rather than being hosted on one single instance of a physical server the website is hosted on a virtual partition which draws its resources, such as disk space, from an extensive network of underlying physical servers. If one server goes offline, it dilutes the level of resource available to the cloud a little but will have no effect on the availability of the website whose virtual server will continue to pull resource from the remaining network of servers. Some cloud platforms could even survive an entire data centre going offline as the pooled cloud resource is drawn from multiple data centres in different locations to spread the risk.
  • Physical Security; the underlying physical servers are still housed within data centers and so benefit from the security measures that those facilities implement to prevent people accessing or disrupting them on-site
  • Scalability and Flexibility; resource is available in real time on demand and not limited to the physical constraints/capacity of one server. If a client’s site demands extra resource from its hosting platform due to a spike in visitor traffic or the implementation of new functionality, the resource is accessed seamlessly. Even when using a private cloud model the service can often be allowed to ‘burst’ to access resources from the public cloud for non-sensitive processing if there are surges in activity on the site.
  • Utility style costing; the client only pays for what they actually use. The resource is available for spikes in demand but there is no wasted capacity remaining unused when demand is lower.
  • Responsive load balancing; load balancing is software based and therefore can be instantly scalable to respond to changing demands

Cheap Cloud Hosting Server Recommendation

HFL

HostForLIFE.eu is one of the most famous and best cloud hosting server out there to start a blog without spending a single extra penny. They have more than 2 million domains hosted on their servers. HostForLIFE.eu offers unlimited space, unlimited bandwidth. HostForLIFE claims 99.99% uptime with 24/7 technical support and 30 days back guarantee

ByAlexia Pamelov

Cheap Windows Magento 2.1.2 Hosting Recommendation

CheapWindowsHosting.com | Best and cheap magento 2.1.2 hosting. Magento Community Edition 2.1.2 includes security enhancements, functional fixes, and important enhancements to the Sales API. It is compatible with MySQL 5.7, and introduces support for PHP 7.0.4 and 5.6.5. 

What’s Magento ?

Magento is an ecommerce platform built on open source technology which provides online merchants with a flexible shopping cart system, as well as control over the look, content and functionality of their online store. Magento offers powerful marketing, search engine optimization, and catalog-management tools.

Highlights

Magento 2.1.2 contains multiple bug fixes and enhancements, including

  • Support for PHP 7.0.4 and 5.6.5. (This release supports PHP 5.6.5 and above instead of 5.6.x.)
  • Compatible with MySQL 5.7.
  • Two new web APIs (or service contracts) for the Sales module that incorporate functionality into the Sales API that is currently available in the Admin interface. After you install this patch, you’ll be able to use the Sales API ShipOrder and InvoiceOrder methods to capture payment and ship product. See Module Reference Guide for information on using the ShipOrder and InvoiceOrder interfaces.

Security enhancements

This release includes enhancements to improve the security of your Magento software. While there are no confirmed attacks related to these issues to date, certain vulnerabilities can potentially be exploited to access customer information or take over administrator sessions. We recommend that you upgrade your existing Magento software to the latest version as soon as possible.

The following list provides an overview of the security issues fixed in this release. We describe each issue in greater detail in the Magento Security Center.

General security

  • Fixed issue with using the Magento Enterprise Edition invitations feature to insert malicious JavaScript and subsequently execute it in the Admin context.
  • You can no longer change or fake a product price from the Magento storefront and then complete an order with that faked price.
  • Fixed issue with arbitrary PHP code execution during checkout.
  • Fixed issue with retrieving potentially sensitive information through the use of backend media.
  • Fixed issue with running cron jobs less frequently than specified by the application cron setting.
  • Sessions now expire as expected after logout.
  • Removed potential for exploitation of guest order view feature to harvest order information.
  • Kount and 3D Secure now work as expected for Braintree Vault.
  • You can no longer delete a currently logged-in user.
  • A user with lesser privileges can no longer force an Admin user to add his private or public key using a JSON call.

Cheap Windows Magento 2.1.2 Hosting Recommendation

[su_box title=”ASPHostPortal – Best Magento 2.1.2 Hosting ” style=”glass”]

asphostportal-icon-e1421832425840-120x120-e1424663413602Founded in 2008, it is a fast growing web hosting company operated in New York, NY, US, offering the comprehensive web hosting solutions on Windows Hosting and they have a brilliant reputation in the Magento 2.1.2 development community for their budget and developer-friendly hosting which supports almost all the latest cutting-edge Microsoft technology. ASPHostPortal have various shared hosting plan which start from Host Intro until Host Seven. But, there are only 4 favorite plans which start from Host One, Host Two, Host Three, and Host Four. Host One plan start with $5.00/month. Host Two start with $9.00/month, Host Three is the most favorite plan start from $14.00/month and Host Four start with $23.00/month. All of their hosting plan allows user host unlimited domains, unlimited email accounts, at least 1 MSSQL and 1 MySQL database. ASPHostPortal is the best Node.js Hosting, check further information at http://www.asphostportal.com

[/su_box]

[su_box title=”HostForLIFE – A Superior Magento 2.1.2 Hosting Provider” style=”glass”]

hostforlife-icon-e1421832276583-120x120-e1424663388212HostForLIFE, specializing in offering affordable and manageable Magento 2.1.2 hosting services, releases three plans for the clients – Classic Plan, Budget Plan, Economy Plan and Business Plan regularly starting at €3.00/mo, €5.50/mo, €8.00/mo and €11.00/mo separately. And also, the 30-day money back guarantee is offered to the clients who wish to cancel their accounts and get a refund. HostForLIFE supports Windows 2012/2008, ASP.NET 2.0/3.5SP1/4.0/4.5.1/5 as well as IIS8.5/ IIS8. It offers various versions of Microsoft SQL Databases, including MS SQL 2014, MS SQL 2012, MS SQL 2012R2 and MS SQL 2008. Each database comes with at least 500MB disk space. Furthermore, the webmasters can install the software by using one-click app installer. Besides, it is worth mentioning that the webmasters can get a full control of their websites through the users-friendly ASP.NET control panel of HostForLIFE. By using the top-level data center HostForLIFE delivers average 99.99% uptime to each hosted website.

[/su_box]

[su_box title=”DiscountService.biz –Premium Magento 2.1.2 Hosting Service Provider” style=”glass”]

discountservice-icon-e1421396726386-120x120-e1424663401956DiscountService.biz is Microsoft Gold Partner, which means they are the first one to know the latest Microsoft technology and test Microsoft product before being released to the public. The engineers from DiscountService fully understand the needs of Microsoft developer, when signing up their service, their customer could choose the version of platform to better support their application. IIS ASP.NET MVC security from DiscountService is also at FULL Trust level. The price of DiscountService is at $7.00/month.

[/su_box]

Summary

Under the overall consideration, ASPHostPortal, HostForLIFE and DiscountService.biz are 3 first-rank cheap GitMagento 2.1.2 hosting providers because of their affordable price, rich features, excellent performance and reliable support. Another piece of good news is that they have been listed as the cheap Magento 2.1.2 Hosting companies 2016

ByAlexia Pamelov

Cheap Windows ASP.NET Hosting Recommendation

CheapWindowsHosting.com | Best and Cheap ASP.NET Hosting. When you’re ready to take your data into your own hands and run your own blog, own your own photos, and host your own apps, it’s time to find a good web host that can put it all on the web for you, give you the tools, bandwidth, and storage you need, and support you when you need help. Thankfully, there are dozens of great companies looking for your business, and this week we’re going to look at three of the best, based on your nominations.

Are you looking for the cheap ASP.NET Hosting Comparison ?

Your Best Hosting search is over!

Do not Lose Money and Time and find the best Windows Hosting for you in our cheap ASP.NET Hosting Providers recommended list!

Cheap Windows ASP.NET  Hosting Comparison

ASPHostPortal  Cheap Windows ASP.NET Hosting

Why we choose ASPHostPortal for the cheap ASP.NET hosting ?

ASPHostPortal.com, a Microsoft Golden hosting partner has been offering well priced Windows and ASP.NET hosting plans for many years. Founded in 2008 and operated in New York, US. ASPHostPortal.com has become an important resource for cutting-edge, high-value hosting solutions. The company also offers low priced enterprise-level hosting plans by focusing their resources on needs by ASP.NET Windows’s developers.

This company supports almost all the latest ASP.NET technology and provides plenty of server resources for every hosting account. Below are the list of key features, but definitely it provides more:

aspportalASPHostPortal.com | The cheap ASP.NET  Hosting Provider. Cheap and affordable Hosting features including:

[su_button url=”http://asphostportal.com/Entity-Framework-Core-1-0-Hosting” background=”#0b9dde” color=”#ffffff” radius=”round” icon=”icon: hand-o-up” text_shadow=”0px 0px 0px #6479d0″]ASPHostPortal.com[/su_button]


  1. Unlimited Sites, 5 GB Disk Space,  60 GB Bandwidth only $ 5.00/Mo
  2. IIS 8.5 with URL-Rewrite, ASP.NET MVC Framework.
  3. Compatible with nopCommerce, DNN, Magento and more other ASP.NET web applications.
  4. 100% Satisfaction Promise with 30 Days Money Back Guarantee!

HostForLIFE  Affordable ASP.NET  Hosting

hflHostForLIFE.eu | Professional ASP.NET Provider & fully ASP.NET support. Customers can easily deploy the most popular ASP.NET, CMS & Blog system such as BlogEngine, DotNetNuke. The best ASP.NET hosting feature including :

[su_button url=”http://hostforlife.eu/European-ASPNET-Core-1-Hosting” background=”#0b9dde” color=”#ffffff” radius=”round” icon=”icon: hand-o-up” text_shadow=”0px 0px 0px #6479d0″]HostForLIFE.eu[/su_button]


  1. Unlimited Domain, Unlimited Disk Space, Unlimited Bandwidth only €3.00/Mo
  2. IIS 8.5 with URL-Rewrite, ASP.NET MVC Framework.
  3. 100% Satisfaction Promise with 30 Days Money Back Guarantee!

 UKWindowsHostASP.NET Best ASP.NET  Hosting

ukwinhostUKWindowsHostASP.NET | The best ASP.NET Provider & fully ASP.NET support. One of top and recommended ASP.NET Hosting Providers ! ASP.NET Hosting feature plan including:
 
[su_button url=”http://ukwindowshostasp.net/UK-ASP-NET-Core-1-Hosting” background=”#0b9dde” color=”#ffffff” radius=”round” icon=”icon: hand-o-up” text_shadow=”0px 0px 0px #6479d0″]UKWindowsHostASP.NET[/su_button]

  1. Unlimited Domains
  2. Dedicated Pool
  3. 99.99% Uptime Guarantee & 24/7 Live Support
  4. Support WordPress, Drupal and etc
  5. FREE Instant Setup

What makes them as the Cheap and Affordable ASP.NET  Hosting?

[su_service title=” Trust Level” icon=”icon: check-square-o” icon_color=”#63dee6″ size=”36″]

It’s the configuration in IIS for your websites. The best flexible option is Full Trust that you don’t worry the websites cannot run successfully in the shared web host. And the balanced option between security and flexibility is Medium if you’re experienced on joomla debugging, deployment and you’re sensitive on the security and server reliability.[/su_service]

[su_service title=”Powerful Control panel” icon=”icon: check-square-o” icon_color=”#63dee6″ size=”36″]

The control panel should be easy to configure asp.net stuff such as .net versions switch, trust level management and script map etc.

[/su_service]

[su_service title=”Database ” icon=”icon: check-square-o” icon_color=”#63dee6″ size=”36″]

They are consider more about the supported SQL Server version and limitation. The preferred SQL Server is 2008 however most of web hosts support Express edition only. Actually it’s completely enough for websites hosted with shared web hosting. [/su_service]

[su_service title=”Customer support ” icon=”icon: check-square-o” icon_color=”#63dee6″ size=”36″]

No matter if you’re asp.net newbie or developer, you can’t avoid bothering the hosting support. 24 x 7 live support is always expected.[/su_service]

Save

ByAlexia Pamelov

Tips to Speed Up a Joomla Site

CheapWindowsHosting.com | Best and cheap Joomla hosting. Today in this article we will introduce you 10 best tips to speed up a Joomla site. Actually, this is not a new topic but we really hope that it can help. Let’s choose the most suitable ones for yourself.

1. Choose a good hosting

It’s crucial for you to choose the right host for your site. This is the decisive factor to slow or speed up your site no matter how well you have optimized your Joomla site.

Therefore, before choosing a hosting, you should find more information in the forum. Let’s find a web hosting that is best suitable with your site demand: web space, monthly traffic, data transfer, backup, database type support, CDN, etc.

[su_button url=”http://asphostportal.com/Joomla-3-6-2-Hosting” style=”3d” background=”#ef362d” size=”6″ text_shadow=”0px 0px 0px #ffffff”]Best OFFER Cheap Joomla Hosting ! Click Here[/su_button]

2. Enable Joomla Cache

If you enable the cache in your site, it will be more responsive. Luckily, Joomla is capable of serving 3 types of cache: Component views, Module views and Page views.

The first 2 settings are determined by one setting in your Systems > Global Configuration and set it as Conservative. Optionally you can also set the time different than the default of 15 minutes.

1111

If globally, cache is switched on, you can switch it off again for specific modules from the Advanced tab in selected modules. Page views are only cached if you switch on the System – Cache plugin in the Extensions> Plugin. Just set it to Enabled, and leave default parameters.

22

3. Use G-Zip

In Systems > Global Configuration, on the Server tab, you will find the setting to turn on Gzip:

By this way, your pages are compressed in a zip-file, sent to the browser on your PC, and unpacked there. Except for really ancient versions of IE, it is supported in all browsers, and should be safe to turn on.

To use this function, please make sure that your host supports mod_gzip.

4. Remove unnecessary extensions

It’s true that any Joomla site needs extensions. However it’s really important for us to choose the good ones. Some extensions need additional Javascripts, connect to the remote network, or take time to be loaded can surely slow you down terribly.

Also, any unneeded extensions should be removed even they are not in use.

5. Browser caching in .htaccess

After renaming your htaccess.txt file into .htaccess, you can add some code to prevent browser to request specific image types from the server if they are already present on your PC.

By this way, you can reduce the loading time.

6. Optimize your images

We can’t deny the important role of the images in a website. However, images account for for more KB’s than the rest of your web page and that’s why they need optimizing.

Firstly, you should use the image with correct size. Secondly, you can use the compression tools to further reduce the size by stripping the unnecessary data.

7. Use a CDN

CND or Content Delivery Network is the one that can serve your static files from the global network of the CND provider. By this way, the user far from the server can receive the files faster from the nearest location.

This tip is not only good for sites operating globally, but also specially for sites in large countries.

8. Optimize CSS + Javascript

Most Joomla sites now have many CSS and Javascript files which will all add up in size AND number of HTTP-requests. Also they will take lots of time for loading the site while they are executing.

Luckily, you can over this issue by:

  • Compressing these files.
  • Combining multiple files into one.
  • Using a defer or a sync attribute in the scripts to execution.

9. Use speed optimization extensions

One of the easiest ways to optimize your site is to use the speed up extensions. Just after installation and some configuration steps, your site will be significantly speeded up!

10. Optimize for mobile devices

“Mobile device” is one essential point that decides the rank of your site on search engine. Your site may not perform well on mobile device even though it works great on desktops.

Therefore, we need to optimize the site for mobile devices too. The key here is to load only what is really needed in the site. You can use user-agent detection to check if you are on a mobile device, not just on a resized browser window and then you can then selectively disable module positions.

ByAlexia Pamelov

Joomla Hosting with Docker and Memcached

CheapWindowsHosting.com | In this post I’ll show you how you can quickly and easily setup a fast Joomla! site running in Docker, and using Memcached for caching. We’ll also be using Docker Compose to make managing the relationships between containers easier. Docker Compose makes the task of managing multiple Docker containers much easier than doing them individually. It also makes it easier if you want to develop this site on your local environment and later push it to a remote server with docker — although that’s a topic for another tutorial.

docker

Install Docker and Docker Compose

If you haven’t installed Docker on your machine yet, follow these instructions.  The instructions for Ubuntu 14.04 (LTS) are below. Be sure to run them as root! If you already have Docker skip on to installing Docker Compose if you don’t already have it.

Install Docker on Ubuntu 14.04 LTS
apt-get update
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install linux-image-extra-$(uname -r) apparmor docker-engine
service docker start

 Next install docker compose:

curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` >> /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose -v

You should see docker-compose output its version information. Something like: docker-compose version 1.6.2, build 4d72027.

Prepare Joomla and Docker files

Next up we need to create the docker compose files and get the Joomla files ready to use:

Create Project Directory

mkdir -p ./mysite/website_source ./mysite/mysql
cd mysite

Create a Dockerfile

Next create a Dockerfile (e.g. vim Dockerfile) that tells Docker to base your webserver code off of a PHP5 image, and include your source code.

Dockerfile
FROM php:5-fpm
 
# Install dependencies
RUN apt-get update -y && apt-get install -y php5-json php5-xmlrpc libxml2-dev php5-common zlib1g-dev libmemcached-dev
 
# Install mysqli extension
RUN docker-php-ext-install mysqli
 
# Install memcache extension
RUN pecl install memcache && docker-php-ext-enable memcache
 
# Add sources to image
ADD ./website_source /site

Create the Docker Compose config file

And then create the docker-compose.yml file (e.g. vim docker-compose.yml). The docker-compose file lays out how your website is structured. It says that your site is composed of three services: web which is an Apache/PHP image with your source code baked in, db which is the MySQL database, and cache which is the memcached image. It also tells docker how to connect these docker containers so that they can communicate with each other. Lastly, it tells docker to bind port 80 to the web container. Lastly, the mysql container will mount the mysql directory on the host and place the database files there. This way if the container is removed or anything you don’t lose your database.

docker-compose.yml
version: '2'
services:
  web:
    build: .
    command: php -S 0.0.0.0:80 -t /site
    ports:
      - "80:80"
    depends_on:
      - db
      - cache
    volumes:
      - ./website_source:/site
  db:
    image: orchardup/mysql
    environment:
      MYSQL_DATABASE: joomla
      MYSQL_ROOT_PASSWORD: my_secret_pass
    volumes:
      - ./mysql:/var/lib/mysql
  cache:
    image: memcached

 

By sure to replace my_secret_pass with a secure password for the mysql user!

Get Joomla! Sources

Now that you have a Dockerfile and docker-compose.yml you just need to get the sources for Joomla and install them:

Download and Install Joomla!

wget https://github.com/joomla/joomla-cms/releases/download/3.4.8/Joomla_3.4.8-Stable-Full_Package.zip
unzip Joomla*.zip -d ./website_source
mv ./website_source/htaccess.txt ./website_source/.htaccess
mv ./website_source/robots.txt.dist ./website_source/robots.txt

Note that if you don’t have unzip installed you can install it by running apt-get install unzip.

Build and Run Docker Containers

Now that you have everything setup its time to test everything by building and running the docker containers. This is accomplished with docker-compose:

docker-compose build
docker-compose up

 This will run the whole application in the foreground of your terminal. Go to http://localhost:80 and complete the Joomla Installer! You’ll use the mysql username and password you specified in your docker-compose.yml file. The mysql host is also specified in the docker-compose.yml file as the name of the database service. In our case, this is db. Once you’re finished you can use CTRL+C to stop the containers.

Configuring Joomla for Memcached

Now that your Joomla site is running under docker it’s time to connect it to the memcached server to make sure that things stay speedy!

To enable memcached edit

website_sources/configuration.php and replace

public $caching = '0';
public $cache_handler = 'file';

 with this

public $caching = '2';
public $cache_handler = 'memcache';
public $memcache_server_host = 'cache';
public $memcache_server_port = '11211'

 Add your changes to the container image with docker-compose build and then run docker-compose up, log into the Joomla administration page and go to “Global Configuration” -> “System”. You can tweak the settings under “Cache Settings” or leave them as they are.

Running on Server Start

The last step in setting up a web application with docker is to have the web server started when the server starts.

Create the file /etc/init/mydockersite.conf with the contents:

/etc/init/mydockersite.conf
  
description "Website Docker Compose"
author "MichaelBlouin"
start on filesystem and started docker
stop on runlevel [!2345]
respawn
script
  /usr/local/bin/docker-compose -f /var/www/mysite/docker-compose.yml up
end script

Be sure to replace /var/www/mysite/docker-compose.yml with the full path to your docker-compose.yml!

Save the file and run the following to register the service, and to start it:

initctl reload-configuration
service mydockersite start

 And there you go! You can view logs for your service by running docker-compose logs while in the same directory as your docker-compose.yml or by reading the logfile at /var/log/upstart/mydockersite.log.

ByAlexia Pamelov

Cheap Windows PrestaShop v1.6.1.8 Hosting

CheapWindowsHosting.com | Best and Cheap windows PrestaShop v1.6.1.8 Hosting. PrestaShop is an open source e-commerce solution that is used freely by more than 120,000 online stores worldwide. It comes with over 275 features being carefully developed in order to increase business owners’ sales with minimal efforts required. All the software features are absolutely free.

PrestaShop is free software as it’s specified in the GNU General Public License and officially started in August 2007 for small and medium-size businesses. The software, based on the Smartly template engine, nowadays is used by more than 100,000 shops all over the world.

prestashop

PrestaShop has a good record and even was awarded the title of the Best Open Source E-Commerce Application in the Packt 2010 Open Source Awards and the Best Open Source Business Application in the 2011 Open Source Awards.
It supports various payment systems such as PayPal, Google Checkout, Payments Pro via API, Authorize.net and Skrill. It is used on Apache web server 1.3 or later, with PHP 5 or later and MySQL 5 running on it.

Cheap Windows PrestaShop v1.6.1.8 Hosting Company

[su_box title=”ASPHostPortal – Best PrestaShop v1.6.1.8 Hosting ” style=”glass”]

asphostportal-icon-e1421832425840-120x120-e1424663413602Founded in 2008, it is a fast growing web hosting company operated in New York, NY, US, offering the comprehensive web hosting solutions on Windows Hosting and they have a brilliant reputation in the PrestaShop v1.6.1.8 development community for their budget and developer-friendly hosting which supports almost all the latest cutting-edge Microsoft technology. ASPHostPortal have various shared hosting plan which start from Host Intro until Host Seven. But, there are only 4 favorite plans which start from Host One, Host Two, Host Three, and Host Four. Host One plan start with $5.00/month. Host Two start with $9.00/month, Host Three is the most favorite plan start from $14.00/month and Host Four start with $23.00/month. All of their hosting plan allows user host unlimited domains, unlimited email accounts, at least 1 MSSQL and 1 MySQL database. ASPHostPortal is the best PrestaShop v1.6.1.8 Hosting, check further information at http://www.asphostportal.com

[/su_box]

[su_box title=”HostForLIFE – A Superior PrestaShop v1.6.1.8 Hosting Provider” style=”glass”]

hostforlife-icon-e1421832276583-120x120-e1424663388212HostForLIFE, specializing in offering affordable and manageable PrestaShop v1.6.1.8 hosting services, releases three plans for the clients – Classic Plan, Budget Plan, Economy Plan and Business Plan regularly starting at €3.00/mo, €5.50/mo, €8.00/mo and €11.00/mo separately. And also, the 30-day money back guarantee is offered to the clients who wish to cancel their accounts and get a refund. HostForLIFE supports Windows 2012/2008, ASP.NET 2.0/3.5SP1/4.0/4.5.1/5 as well as IIS8.5/ IIS8. It offers various versions of Microsoft SQL Databases, including MS SQL 2014, MS SQL 2012, MS SQL 2012R2 and MS SQL 2008. Each database comes with at least 500MB disk space. Furthermore, the webmasters can install the software by using one-click app installer. Besides, it is worth mentioning that the webmasters can get a full control of their websites through the users-friendly ASP.NET control panel of HostForLIFE. By using the top-level data center HostForLIFE delivers average 99.99% uptime to each hosted website.

[/su_box]

[su_box title=”DiscountService.biz –Premium PrestaShop v1.6.1.8 Hosting Service Provider” style=”glass”]

discountservice-icon-e1421396726386-120x120-e1424663401956DiscountService.biz is Microsoft Gold Partner, which means they are the first one to know the latest Microsoft technology and test Microsoft product before being released to the public. The engineers from DiscountService fully understand the needs of Microsoft developer, when signing up their service, their customer could choose the version of platform to better support their application. IIS ASP.NET MVC security from DiscountService is also at FULL Trust level. The price of DiscountService is at $7.00/month.

[/su_box]

Summary

Under the overall consideration, ASPHostPortal, HostForLIFE and DiscountService.biz are 3 first-rank cheap PrestaShop v1.6.1.8 hosting providers because of their affordable price, rich features, excellent performance and reliable support. Another piece of good news is that they have been listed as the cheap PrestaShop v1.6.1.8  Hosting companies 2016

ByAlexia Pamelov

Cheap Docker Hosting Recommendation

CheapWindowsHosting.com | Best and cheap Docker hosting. Docker’s commercial solutions provide an out of the box CaaS environment that gives IT Ops teams security and control over their environment, while enabling developers to build applications in a self service way. With a clear separation of concerns and robust tooling, organizations are able to innovate faster, reduce costs and ensure security.

docker_survey_3_v2-3-01

Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.

  • LIGHTWEIGHT

    Containers running on a single machine share the same operating system kernel; they start instantly and use less RAM. Images are constructed from layered filesystems and share common files, making disk usage and image downloads much more efficient.

  • OPEN

    Docker containers are based on open standards, enabling containers to run on all major Linux distributions and on Microsoft Windows — and on top of any infrastructure.

  • SECURE BY DEFAULT

    Containers isolate applications from one another and the underlying infrastructure, while providing an added layer of protection for the application.


     

Cheap Docker Hosting Recommendation

[su_box title=”ASPHostPortal – Best Docker Hosting ” style=”glass”]

asphostportal-icon-e1421832425840-120x120-e1424663413602Founded in 2008, it is a fast growing web hosting company operated in New York, NY, US, offering the comprehensive web hosting solutions on Windows Hosting and they have a brilliant reputation in the Node.js development community for their budget and developer-friendly hosting which supports almost all the latest cutting-edge Microsoft technology. ASPHostPortal have various shared hosting plan which start from Host Intro until Host Seven. But, there are only 4 favorite plans which start from Host One, Host Two, Host Three, and Host Four. Host One plan start with $5.00/month. Host Two start with $9.00/month, Host Three is the most favorite plan start from $14.00/month and Host Four start with $23.00/month. All of their hosting plan allows user host unlimited domains, unlimited email accounts, at least 1 MSSQL and 1 MySQL database. ASPHostPortal is the best Node.js Hosting, check further information at http://www.asphostportal.com

[/su_box]

[su_box title=”HostForLIFE – A Superior Docker Hosting Provider” style=”glass”]

hostforlife-icon-e1421832276583-120x120-e1424663388212HostForLIFE, specializing in offering affordable and manageable Docker hosting services, releases three plans for the clients – Classic Plan, Budget Plan, Economy Plan and Business Plan regularly starting at €3.00/mo, €5.50/mo, €8.00/mo and €11.00/mo separately. And also, the 30-day money back guarantee is offered to the clients who wish to cancel their accounts and get a refund. HostForLIFE supports Windows 2012/2008, ASP.NET 2.0/3.5SP1/4.0/4.5.1/5 as well as IIS8.5/ IIS8. It offers various versions of Microsoft SQL Databases, including MS SQL 2014, MS SQL 2012, MS SQL 2012R2 and MS SQL 2008. Each database comes with at least 500MB disk space. Furthermore, the webmasters can install the software by using one-click app installer. Besides, it is worth mentioning that the webmasters can get a full control of their websites through the users-friendly ASP.NET control panel of HostForLIFE. By using the top-level data center HostForLIFE delivers average 99.99% uptime to each hosted website.

[/su_box]

[su_box title=”DiscountService.biz –Premium Docker Hosting Service Provider” style=”glass”]

discountservice-icon-e1421396726386-120x120-e1424663401956DiscountService.biz is Microsoft Gold Partner, which means they are the first one to know the latest Microsoft technology and test Microsoft product before being released to the public. The engineers from DiscountService fully understand the needs of Microsoft developer, when signing up their service, their customer could choose the version of platform to better support their application. IIS ASP.NET MVC security from DiscountService is also at FULL Trust level. The price of DiscountService is at $7.00/month.

[/su_box]

Summary

[su_note note_color=”#d34539″ text_color=”#ffffff”]

Under the overall consideration, ASPHostPortal, HostForLIFE and DiscountService.biz are 3 first-rank cheap Docker hosting providers because of their affordable price, rich features, excellent performance and reliable support. Another piece of good news is that they have been listed as the cheap Docker Hosting companies 2016

[/su_note]

ByAlexia Pamelov

How to Fix ASP.NET Core cannot find runtime for Framework ‘.NETCoreApp’

CheapWindowsHosting.com | Best and cheap  ASP.NET Core hosting. Today I upgrade my ASP.NET Core application from version 1.0 to version 1.0.1 because of a bug in Entity Framework. Right after updating to the latest ASP.NET Core version, I built the project but ended up with the following error in Visual Studio:

aspnettext

Can not find runtime target for framework '.NETFramework,Version=v4.5.1' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
The project has not been restored or restore failed - run dotnet restore
You may be trying to publish a library, which is not supported. Use dotnet pack to distribute libraries

Fix – Update project.json

After searching around for a few minutes I found issue #2442 on GitHub. This the issue states that you need to update your project.json and you have two options:

(1). Include the platforms you want to build for explicitly:

"runtimes": {
    "win10-x64": {},
    "win8-x64": {} 
},

 (2). Update the reference Microsoft.NETCore.App to include the type as platform:

"Microsoft.NETCore.App": {
    "version": "1.0.1",
    "type": "platform"
}

Conclusion

For more information on .NET Core Application Deployment you can read the docs. This is again another reason I love that all this work is being done out in the open. It really makes finding issues and bugs of this type easier. Hope that Helps!

[su_button url=”http://asphostportal.com/ASPNET-5-Hosting.aspx” style=”3d” background=”#ef362d” size=”6″ text_shadow=”0px 0px 0px #ffffff”]Best OFFER Cheap ASP.NET 5 Hosting ! Click Here[/su_button]