Arguably The Best African American Blog, Socio-economic, Justice, Politics, Fashion, Book Review, and Black Artists Blog
Tuesday February 9th 2010

How to setup PHP5 with a Linux host or 1and1.com

PHP is a web scripting language used to create dynamic web pages and interactive features on websites. PHP scripts can be executable scripts or they can also be embedded in an HTML document enclosed within special PHP tags.

This is often done to allow the author of the website to jump between HTML and PHP instead of having to rely on heavy amounts of code to output HTML.

Like most Linux hosting, 1&1 has activated support for PHP for all Linux-based hosting packages, as well as, root and managed servers.

If you have a Managed server or a Linux-based Hosting package, you can create .php files and save them to your web directory. The server will automatically parse them for you. You will not need to compile anything or install any extra tools.

All files ending in .php3 are currently being handled by PHP4*. All files ending in .php4 and .php are handled by PHP4. All files ending in .php5 are handled by PHP 5.

1. New object model and 2. XML and SOAP Web Services are two new components in PHP5.

The new object model in PHP 5 makes programming easier and more efficient. Methods can be restricted to specified user groups. Through exceptions, the handling of errors become simpler.

XML support in PHP 5 has been updated and improved. LibXML2 has been implemented as an XML-Parser. Now, in addition to SimpleXML, PHP 5 provides a faster and easier way to manipulate XML. The support of SOAP web services is a new addition to PHP 5. How to run PHP5 on 1and1.com in 1 easy step…

With 1&1 Linux hosting packages you have the choice between PHP 3, PHP 4 and PHP 5. To distinguish a script as PHP 5, simply name the script with the file
extension .php5.

Please note that in contrast to PHP 4, the default for the variable RegisterGlobals
is "off". By default Apache uses PHP 4 for .php extension. If you don’t want to rename all your scripts to .php5 you can do the following:

Update your .htaccess file and add the following lines:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php


This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.

 

If the above information was helpful, please register and let us know.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Reader Feedback

One Response to “How to setup PHP5 with a Linux host or 1and1.com”

  1. Dave Foster says:

    Thanks for the information.

    I installed Buddypress on a working Wordpress MU and got: Error 500 – Internal server error.

    After several frustrating hours, a google keyword search brought up your site. After following your instruction, I was able to resolved my problem.

    I’m willing to offer couple of $’s but I don’t see a PayPal donation button.

    Thanks,
    Dave

Leave a Reply

Anti-Spam Protection by WP-SpamFree

Categories

Visitors Online

Recent Visitor

Our Store

Random Quote

Well the time for bickering is over. The time for games has passed. Now is the season for action. Now is when we must bring the best ideas of both parties together, and show the American people that we can still do what we were sent here to do. Now is the time to deliver on health care. — President Barack H. Obama

Get Adobe Flash playerPlugin by wpburn.com wordpress themes