• EN
    • FR
    • DE
    • IT
    • ES
  • Resellers
  • Membership
  • About us
  • Green hosting
  • Job 5
  • EUR
infomaniak infomaniak
    • Workspace

      Webmail, contacts, calendar

    • Manager

      Managing Infomaniak products

  • Domains
    • Order
      Register your domain at the best price with a free email address and web space.
    • Transfer
      Transfer your domain name to Infomaniak and take advantage of our excellent prices and services.
    • Domain Privacy
      Keep your private data in Whois confidential and block spam.
    • Prices
      Compare the prices of domain names and register your .COM .CH .FR etc. for the best price!
    • Whois
      Check the availability of a domain name or discover who the current owner is.
    • Renewal Warranty
      Protect your important domains against loss and theft by ensuring they are renewed.
    • Our tips
      Everything you need to know to choose the best domain name for your site.
  • Create a site
    • Creating a site with WordPress
      Create an attractive site which is easy to update with over 80 professional themes. WordPress is the most commonly used tool in the world to create professional websites.
    • Creating a site with a CMS
      Easily create an online store, a blog, a forum, a photo gallery, etc. using Joomla, Drupal, PrestaShop, Magento and over 120 CMS and web applications.
    • Finding a professional
      Launch a call for tenders to over 1000 professionals and find a recognised Webmaster in 48 hrs to create or improve your website. It's free and implies no commitment.
  • Hostings
    • Compare our hostings
      Choose the hosting which suits your needs: Web and Mail hosting, Cloud Server, etc.
    • Web+Email hosting
      Start with our leading offer to create professional websites with email addresses.
    • Mail Hosting
      Create your professional email addresses in Switzerland with the domain name of your choice.
    • Cloud Servers
      Move to higher speed with a Cloud Server and resources which are 100% dedicated to your websites.
    • Synology NAS
      Synchronise and back up your data in Switzerland in a remote and entirely secure place.
    • Very High Availability Hosting
      Use the same technology as the most visited sites in the world (100% uptime, SLA, etc.).
  • Pro tools
    • Housing
      Host your servers in our Tier 3+ datacentres and benefit from total redundancy.
    • WorkSpace
      Discover the Swiss webmail for SMEs which synchronises your emails, calendars and contacts.
    • Newsletter
      Send your email campaigns at very low prices and with no subscription.
    • VOD/AOD
      Host, broadcast and monetise your videos and podcasts with no restrictions or advertising.
    • Video and audio streaming
      Broadcast live and freely monetise your radio streams, webinars, TV streams and conferences.
    • Ticket shop
      Create an online ticket office to organise large scale events.
  • |
  • Support
    • Knowledge base
      Over 1000 guides and replies to exploit the full potential of your Infomaniak products.
    • Contact us
      Need help? We are there to help you 7 days a week by email and by chat and telephone during the week.
    • Paying an invoice
      Renew your Infomaniak products in one click (hostings, domains, VOD/AOD, etc.).
  • Blog
  • My profile

  • Customer account
  • Users
  • To be paid
  • Invoice history
  • Prepaid account
  • Reseller space

  • My client accounts

    • Log out
    • Subscription
    • Sign in
      • Workspace

        Webmail, contacts, calendar

      • Manager

        Managing Infomaniak products

    Knowledge base

    1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

    Knowledge base Configuring/changing the PHP version used

      Configuring/changing the PHP version used

      Changing the PHP version used on a website

      You can easily change the PHP version used throughout a website:

      1. open the Manager (manager.infomaniak.com)
      2. go to Hosting
      3. click on the hosting/domain name in question
      4. under Sites, click on the domain name of the site to be configured
      5. under PHP version, click on the version to be configured for the entire website
      6. click on Save to save the changes

      The change is effective immediately and permanently.

      You must have a recent hosting offer (Cloud or shared) and not an old hosting  format  (60 GB) - change the offer if necessary).



      Changing the PHP version used in a specific directory

      It is possible to use different PHP versions on the same website.

      For example, you can configure folder X with PHP 5.6 and folder Y with PHP 7.0. If necessary, you can even switch from one version of PHP to another without interrupting your website.

      The PHP version used by default is PHP 7.

      It is essential that you only specify PHP versions which are offered in your manager.infomaniak.com.

      To configure a folder and its subfolders with another version of PHP:

      1. if necessary, create a .htaccess file in the folder to be configured (help)
      2. insert this code in the .htaccess file and save your changes:
        • for PHP 5.5: SetEnv PHP_VERSION 5.5
        • for PHP 5.6: SetEnv PHP_VERSION 5.6
        • etc.

      The change is effective immediately.


      To configure / change the version of PHP used in SSH follow this guide.


      Link to this FAQ:
      Has this FAQ been helpful?
      Thank you for your opinion. Make improvements to this FAQ?
      Do not ask questions through this form, it is used only improve our FAQ.
      If you have a question please use our contact form.
      Your message has been sent. Thank you for suggesting an improvement to this FAQ.
      Display all FAQs for this product
      Assistance

      Useful guides

      No result.

        All guides
        Contact Support

        By email

        7/7 support

        +41 22 820 35 44

        From Monday to Friday from 6.00 to 17.50

        Infomaniak

        Blog About us Support Knowledge base Site map Terms and Conditions

        Swiss hosting provider

        Wordpress hosting Web Hosting Mail Hosting Cloud Server / VPS

        Domains

        Register a domain Transfer a domain Whois domain Renewal Warranty Domain Privacy Report an abuse

        Professional tools

        Synology NAS Newsletter tool Video streaming live Live Audio Streaming Housing and colocation

        Green hosting

        Certificates and rewards Environmental commitments Environmental projects
        • Infomaniak
        • Support
        • Knowledge base
        • Configuring/changing the PHP version used
        News
        About us
        Ecological charter
        Join us!
        Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.