Pages

Friday, December 18, 2009

How to fix application/x-httpd-php – Trouble in getting php to parse

Do you ever faced the problem in opening your website? What if your server have trouble in parsing the php files? What if you open your blog and your browser ask to download a php file instead of opening the page? You may arrest into illusionist array of problem whenever your server messed up or have any critical troubles.

Php parsing is a common problem that is occurred due to misconfiguration in the server side, can be resists by accurate .htaccess rules. In case you are still confused on what we are going to discuss then have a look over this screenshot.(as a result of configured server files )htaccess issues

How to resolve this issue when .php wouldn’t execute by your server?

  1. Open your .htaccess file and take its backup
  2. Delete the old .htaccess file
  3. Create a new .htaccess file with CHMOD = 777 and upload the new file in ascii mode.
  4. Add the following handler in the blank .htaccess
    AddType application/x-httpd-php .php .htm .html AddHandler x-httpd-php .php .htm .html

Alternative Way: You cal also try to add following code in the blank .htaccess

AddType application/x-httpd-php php html

After creating the new .htaccess file try to open your site, it will work perfectly fine. Note: In case you still have any issues with the server then feel free to comment here. If your hosting support is quick enough like that of Hostgator then you may contact your support team, they will easily resolve your issues.

Technorati Tags: , , , ,

Similar Posts:

By Honey Singh on websites

cssed thumb How to change CSS for converting text to upper case, lower case, or to capitalizeIn menus, sidebars or in heading we often require to change the text properties from uppercase to lowercase. Changing the whole contents is not possible on different pages and the best solution is the transform the texts from CSS controls. The CSS property used to defined the change is “text-transform: value”.

The various possibilities of the transforms are uppercase, lowercase, capitalize , inherit or none.

    text-transform: none;     text-transform: uppercase;     text-transform: lowercase;     text-transform: capitalize;     text-transform: inherit;
  • text-transform: none – It is the default property where is takes the default value of text.
  • text-transform: uppercase – It convert the whole set of text into uppercase i.e output will be “TRANSFORMED TO UPPERCASE”.
  • text-transform: lowercase – It convert the whole set of text into lowercase i.e output will be “transformed to lowercase”.
  • text-transform: capitalize – It transform the first letter of every word into capital letter i.e output will be “Transformed To Capitalize”.

No comments:

Related Posts Plugin for WordPress, Blogger...