One of the most widely used scripting languages for web development is PHP. Many websites on the internet, including WordPress, Joomla, and Drupal, are powered by it. Knowing which PHP version your website is using is crucial if you’re a web developer or website owner. We’ll go over how to check your PHP version and make adjustments without CPanel in this tutorial. The PHP Version You’re Using You can make a phpinfo.php file and upload it to the root directory of your website to determine your PHP version. The steps to creating a phpinfo.php file are as follows:
1. Launch a text editor, such as Sublime Text or Notepad.
2. Enter the code: “?php phpinfo();?>”
3. Rename the document to phpinfo.php.
4. Utilize an FTP program like FileZilla to upload the file to the root directory of your website.
You can access the file by going to http://yourdomain.com/phpinfo.php in your web browser after you’ve submitted it. The version number and other details about your PHP installation are displayed on the website. Without CPanel, upgrade your PHP version
1. Use a text editor to access the.htaccess file on your website.
2. Add the next line of code to the file’s header: Application/x-httpd-phpX.XX.php AddHandler
Substitute the PHP version number you want to use for X.XX. For instance, the code to utilize PHP 7.4 is AddHandler application/x-httpd-php7.4.php 3. Utilizing an FTP program, save the file and upload it to the root directory of your website. Using the phpinfo.php file we previously prepared, you can recheck your PHP version after making the modifications. The most recent version of PHP is PHP 8.0.10 is the most recent stable version as of September 2021. It was introduced on August 19, 2021, and differs from the previous edition in a number of ways.
The steps listed below make it simple to change your PHP ini file if you have access to GoDaddy CPanel:
1. Access your hosting dashboard by logging into your GoDaddy account. 2. Next to the hosting account you want to manage, click the CPanel icon. 3. Click on Select PHP Version in the Software section by scrolling down.
Step 4: Select the button labeled Switch To PHP Options. 5. Select the settings you want to enable or disable here to edit your PHP ini file. To make the changes, press the Save button in step 6. PHP Update for Managed WordPress by GoDaddy The procedures below can be used to update your PHP version if you use Managed WordPress by GoDaddy.
1. Access your WordPress dashboard by logging into your GoDaddy account. 2. Select PHP Version from the Tools menu by clicking on it. 3. From the drop-down option here, choose the version of PHP that you want to use. 4. To make the changes, click the Update button.
Web developers and website owners need to be aware of their PHP version. Create a phpinfo.php file or add a line of code to your.htaccess file to determine your PHP version. You can quickly alter your PHP version or make changes to your PHP ini file if you have access to CPanel or Managed WordPress GoDaddy. As of September 2021, PHP 8.0.10 is the most recent stable version, and it comes with a number of enhancements and additional features over its predecessor.
The php.ini file and the.htaccess file in the root directory of your website both allow you to modify PHP settings. You will need to have access to your web server in order to access and alter the php.ini file. You can change PHP settings via the.htaccess file if you don’t have access to the php.ini file. You should check with your web host before making any modifications because not all of them support the use of.htaccess files.