Set WeberTrivia.com to be my default homepage.   Suggest a Question                                               

Suggest A Question : :  Frequently Asked Questions : :  Search : :  Relevant Manuals : : 
PHP Questions : :  Linux Questions : :  MySQL Questions : : 
home  [ Login ] 

Manual installation

Installing packages manually is no recommended way, but a lot of people run into problems using the automated ways, when their sites are located in web hosting environments with no shell access.

In the following paragraphs, we will demonstrate how to install packages manually on a site with the following path scheme: The document root of the site is /var/www/www.example.com/htdocs/. On the same level than htdocs there is another directory called includes. This directory can not be accessed via HTTP but via FTP or WebDAV.

The installation consists of some easy to follow steps:

  1. Download the package:

    You can download the package from the PEAR homepage with your web browser. If you do not know the URL of the package information page for the package, you can use the package browser to view the currently available packages.

  2. Upload the package source code

    After having downloaded the .tgz file of the package, you have to extract the contents of the archive file to a temporary directory on your local machine. After that you must upload the source code via FTP, WebDAV or another method to the directory /var/www/www.example.com/includes/, so that the source code for Mail_Mime now e.g. resides in /var/www/www.example.com/includes/Mail/.

  3. Adjust your include_path directive.

    Now you have to adjust PHP's include_path directive so that it contains the location where you just uploaded the source code. If you have access to the php.ini configuration file for your site, you have to add /var/www/www.example.com/includes/ to the directive there. If you do not have access to the configuration, you have to set the include_path in each script where you want to use the package:

    ini_set("include_path", '/var/www/www.example.com/includes/' . PATH_SEPARATOR . ini_get("include_path"));

  4. After having finished the installation, you can now make use of the package:

    require_once "Mail/Mime.php";  $mime = ...

If you have more questions concerning manual installation, you can ask on the user mailing list.

Who's Online
Guest Users: 8
Google
Web
WeberTrivia
WeberDev
WeberForums
 Free Sample Chapters  Free Sample Chapters
  Deliver First Class Web Sites: 101 Essential Checklists
Want to learn how to make your web sites usable and accessible? Want to ensure that your sites meet current best practice, without spending hours trawling through incomprehensible specifications and recommendations from dozens of different books, research papers, and web sites? Want to make sure that the sites you build are "right the first time," requiring no costly redevelopments?

More Sample Chapters

PHP General