I recently created a php5.ini file to run my PHP contact form on godaddy.com but when I added it, it broke WordPress. Now the godaddy techs say I need to make a full php5.ini file to run WordPress. I am not sure how to do this. I am currently on a Windows server running IIS7. Here is what is in my .ini file.
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = ”EGPCS”
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = ”a=href,area=href,frame=src,input=src,form=,fieldset=”
Could someone please help me with what I need to add to run not only my contact form but WordPress. Just to let you know when I go to http://foxdenwebsolutions.com/blog I get an error –
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I tried to do a upgrade to WP 2.9.2 but also get an error.
Here is what the tech said –
After looking into your account, and the issues that you are experiencing with connecting to your database using php, we have found that the php5.ini file that you have uploaded is causing these problems. By default, the php_mysql extension is available within your shared hosting environment. It is only when you add your own php5.ini to the account that you see the errors. Furthermore, you will need a full php5.ini with a IIS7 Hosting account. You should be able to find more information about full php.ini files online by using your favorite search engine.
Currently, In troubleshooting this issue, we have found that the extension needed for php connections with MySQL databases is not loaded with a custom php5.ini file. You will need to add the following extension to your php5.ini file so that MySQL connections with php are available:
Also, please note that you will need to load it from the server extensions directory, which will also need to be updated within your php5.ini file:
extension_dir = C:php5ext
As with any change to your php.ini file, you will need to recycle your application pool from within the IIS Settings of your Hosting Control Center before any modifications are updated.
To Recycle the Application Pool
on Windows Shared Hosting Accounts
Log in to your Account
In the My Products section, select Hosting.
Next to the hosting account you want to modify, click Manage
In the Content section of the Hosting Control
Center, click the IIS Management icon.
Click Recycle App Pool
and follow any prompts.
Once you have correct the issue with your php5.ini file, you should Rollback the Installation through the Hosting connections and reapply the update.
Please contact us if you have any further issues.
Sorry this is so long but I do not know exactly how to do this. The contact form is in HTML and links to a php handler page.
I do have the option of switching to a Linux account, but I am afraid that if I do this my contact form will be broken as well. I know that most of you will tell me to get away from godaddy but I recently paid for a year of hosting and cannot afford to switch hosting companies at this time.