Lädt...
HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo
Neuigkeiten:
Welcome to Hope Valley!
Deutsch
  • العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • 0
    Registrieren Konto
    ExtendReduce
    Kundencenter Home
    Shop
    Alle anzeigen ----- Shared Hosting Domain registrieren Domain transferieren
    Ankündigungen Wissensdatenbank Netzwerkstatus Partner Kontaktieren Sie uns
    Kundenlogin
    Wissensdatenbank
    1. Support
    2. Wissensdatenbank
    3. cPanel - Control Panel
    4. How to Set the PHP Version per Directory in cPanel
    Kategorien
    • Backup/Restore
      4
    • Cloudflare (cPanel)
      9
    • CloudLinux (cPanel)
      10
    • cPanel - Control Panel
      24
    • Databases
      11
    • DirectAdmin
      48
    • DNS - Nameservers
      6
    • Domain Management
      10
    • Email
      17
    • FTP
      9
    • Installing a Control Panel
      6
    • Mail Filters & SPAM
      8
    • Mobile
      11
    • Others
      3
    • PayPal
      7
    • Plesk
      47
    • Security
      10
    • SiteWorx (Control Panel)
      58
    • Softaculous
      69
    • SolusVM
      18
    • SSL
      5
    • Virtualizor
      19
    • WHM
      18
    • WordPress
      17
    Support
    • Supporttickets
    • Ankündigungen
    • Wissensdatenbank
    • Downloads
    • Netzwerkstatus
    • Ticket öffnen
    How to Set the PHP Version per Directory in cPanel
    Drucken

    Do you want to use different PHP versions per directory? You can do this using cPanel and the dot htaccess file.


    1. Log in to your cPanel account.


    2. In the Software section, click on MultiPHP Manager.


    3. The first thing we need to do is to get the code generated by cPanel.

    4. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply.


    5. First, open the /public_html/.htaccess file in the cPanel File Manager, and you will find the code generated by cPanel.



    6. After you copy the code, should you wish to set the PHP to version 8 in the directory forums, create a .htaccess file in the directory /forums/ and paste the code generated in the previous step.


    7. Congratulations, now your directory forums is using PHP 8. Should you wish to set any other directory to use the same version of PHP as well, you would only need to copy the code from the .htaccess file and paste it into that directory.


    Now, reset your PHP version from your primary domain. Should you wish to use a different PHP version on any directory, follow steps five and six, generate the code, copy that code from /public_html/.htaccess and paste it into the directory where you want to set the selected PHP version.

    War diese Antwort hilfreich?

    0 Benutzer fanden dies hilfreich (0 Stimmen)

    Verwandte Artikel

    Populärste

    How to Reset cPanel's Account Password

    If you have access to your cPanel account, follow these steps to reset your password:1. Log in to...

    How to Change cPanel's Style/Theme

    Switching over to another cPanel theme with a different style is easy.1. Log in to your cPanel...

    How to Upload Files via the cPanel File Manager

    You can use cPanel's inbuilt file manager instead of an FTP program. 1. Log in to your cPanel...

    How to Edit (Dot)htaccess File in the cPanel File Manager

    1. Log in to your cPanel account. 2. In the Files section, click on File Manager.  3. Navigate...

    How to Check the Disk Usage and the Bandwidth Usage of Directories

    If you are getting a disk space usage warning from cPanel and don't know which directory is using...

    Copyright © 2025 HOPE VALLEY CLOUD. All Rights Reserved.
    Lädt...
    Lädt...
    Sprachwahl
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Währung wählen

    $ USD
    € EUR

    Generate Password

    Please enter a number between 8 and 64 for the password length