lindsayanng Posted July 23, 2008 Share Posted July 23, 2008 I THOUGHT i was running on PHP5, but i guess not. I was getting weird errors (you can see my post in general chit-chat) and when i contacted my host, they told me it might help if i upgraded to php5 (it doesnt really make sense to me why though) So basically my host gives me a few options.. This is what their php configure upgrade page looks like: If you are not familiar with these options, do NOT change them.This can cause all PHP scripts on your site to stop functioning if misconfigured. NOTES: # Since it is being deprecated, PHP4 is no longer available with FastCGI Support. # If you have custom handlers specified in ~/public_html/.htaccess, changing these settings can overwrite them. If you are not sure, make a backup of ~/public_html/.htaccess before changing settings. PHP4 All files with the extension .php will be handled by the PHP4 engine. This version of PHP will be deprecated soon, and it is suggested to only use it until you can safely migrate your scripts to PHP5. Here is a migration guide to help you upgrade to PHP5: # Migration Guide PHP5 All files with the extension .php will be handled by the PHP5 engine. Current, most reliable and best performing version of PHP PHP5 (FastCGI) All files with the extension .php will be handled by PHP5 FastCGI processes. FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_suphp. This eliminates the overhead of loading the PHP interpretor on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster. NO MODIFICATIONS to your existing PHP applications will be performed so you can easily enable and disable it at will. # Questions? click question for more info What are the benefits of using FastCGI for PHP with your hosting account? # What are the potential problems with FastCGI and why I might want to disable it for PHP? Does oscommerce work with the PHPCGI or should i just upgrade to the regular PHP5? Also, how difficult is it to patch up all the errors that i will have when i switch over?? All my host says is this: Migrating Configuration Files Since the ISAPI modules changed their names, from php4xxx to php5xxx, you need to make some changes in the configuration files. There were also changes in the CLI and CGI filenames. Please refer to the corresponding section for more information. Migrating the Apache configuration is extremely easy. See the example below to check the change you need to do: Example #1 Migrating Apache configuration files for PHP 5 # change this line: LoadModule php4_module /php/sapi/php4apache2.dll # with this one: LoadModule php5_module /php/php5apache2.dll If your web server is running PHP in CGI mode, you should note that the CGI version has changed its name from php.exe to php-cgi.exe. In Apache, you should do something like this: Example #2 Migrating Apache configuration files for PHP 5, CGI mode # change this line: Action application/x-httpd-php "/php/php.exe" # with this one: Action application/x-httpd-php "/php/php-cgi.exe" In other web servers you need to change either the CGI or the ISAPI module filenames. please be patient.> I am VERY new at all this, and just want to make sure my site is fully functional, up to date, and SAFE from hackers.. this is what my host told me to do.. THANKS FOR YOU HELP!!! A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!! Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.