Log in to your GoDaddy account. Click on the “Site Settings” link. Click on “General Settings.” Change the “PHP” setting to “On." Select the PHP version you want to use. Click "Save Changes." Go to your CPanel. Select PHP version. Click "Switch to PHP Options." Edit your configuration. Click save.
Creating and Uploading a Custom PHP.ini File
You can’t edit the php.ini file of GoDaddy server, but you can upload your own php.ini file with your new settings. Go to your CPanel. Select PHP version. Click "Switch to PHP Options." Edit your configuration. Click save.
To increase the PHP memory limit in GoDaddy: In the cPanel PHP Selector | Options page, increase the upload_max_filesize and post_max_size values. Click Apply. You need to create your own php5.ini file and upload it to your root directory if using GoDaddy. Be sure to name it php5.ini or php.ini. Upload it, restart your page, and check phpinfo() to see the new php.ini path.
Updating Your GoDaddy Account Profile
To update your GoDaddy account profile:
- Go to your GoDaddy My Profile page.
- Select Edit.
- Update your information.
- Select Save.
Your changes will be saved. You should update your PHP version if needed for compatibility.
Where to Find PHP in GoDaddy?
GoDaddy servers use a special PHP configuration file that can’t be edited directly. You’ll need to access your Godaddy hosting panel and restart the system processes to load a custom php5.ini or php.ini file.
Creating a Custom PHP.ini File
To create a custom PHP configuration file in GoDaddy:
- Login to your hosting cpanel and open the file manager.
- Go to the root directory outside your document root.
- Create a text file named php5.ini or php.ini with your desired PHP settings.
- Upload this file to your root directory.
- Restart system processes in your GoDaddy administration tool to load the new php.ini file.
Check phpinfo() to confirm your php.ini file path and settings are updated. If still pointing to the default GoDaddy php.ini path, double check you named the file correctly and uploaded it to the root directory.
Increasing PHP Memory Limit
To increase PHP memory limit in GoDaddy:
- Login to your hosting cpanel and open the PHP version options.
- Increase the upload_max_filesize, post_max_size, and memory_limit values.
- Click apply to save changes.
Updating Personal Information
To update your GoDaddy account profile:
- Go to your account dashboard and select My Profile.
- Edit your personal information and contact details.
- Select Save to update your profile.
You may need to switch your PHP version for compatibility. GoDaddy provides options to change versions in your hosting cpanel.