INSTALL
上传用户:xuanqunsh
上传日期:2007-01-04
资源大小:58k
文件大小:4k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. ----------------------------------------------------------------------
  2. phpop
  3. A WWW based POP email management tool 
  4. Copyright (C) 1998-2000  Padraic Renaghan
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. Padraic Renaghan
  17. e-mail <padraic@renaghan.com>
  18. phpop home <http://renaghan.com/pcr/phpop.html>
  19. personal home <http://renaghan.com/pcr/>
  20. ----------------------------------------------------------------------
  21. These instructions assume that you have the following working
  22. together: Web Server, PHP, and database. I recommend the
  23. following configuration:
  24. - Apache Web Server (http://www.apache.org/). I recommend downloading
  25. the source and compiling it yourself so that you can compile PHP as
  26. an Apache module. NOTE: The RPM or other binary version should work
  27. as well.
  28. - PHP (http://www.php.net/). Again I recommend downloading the source
  29. and compiling it yourself so that you can compile PHP as an Apache
  30. module. NOTE: phpop should also work using PHP as a CGI
  31. executable either compiled yourself or from a binary distribution of
  32. PHP.
  33. - MySQL (http://www.mysql.net/). You can either compile the source,
  34. or in my case I downloaded the binary RPMs from the MySQL website.
  35. Either should work.
  36. --
  37. phpop installation
  38. (after untar/unzip the distribution file to a temporary location...)
  39. 1. Move the phpop directory that was created by the un-tar/un-zip to
  40. a location under your webserver's document root - so that the
  41. web server will serve the phpop directory and pages.
  42. 2. There is more than one method for setting up the PHP include
  43. path. My prefferred method is to use the .htaccess file in 
  44. phpop/ to set the PHP include path to ".:./lib:./lib/phplib".
  45. This lets me keep all phpop files under a single directory structure.
  46. 3. Tell your webserver NOT TO SERVE pages in the phpop/lib directory.
  47. These pages contain the user ID and password to your database and
  48. you don't want folks seeing them. I have included an .htaccess
  49. file in this directory for use by Apache that will stop browsing
  50. of the lib directory. Make sure and test this after the installation
  51. by trying to get to http://your-domain.com/phpop/lib/poplocal.inc
  52. You should NOT be able to get to this URL.
  53. 4. Create a database for phpop (e.g., "phpop"), then 
  54. create the tables in the database used by phpop
  55. using the phpop.sql definition. In MySQL this can be done
  56. (assuming you have created a database named "phpop") with the
  57. following command:
  58.   mysql phpop <create_db.mysql
  59. 5. Update the poplocal.inc file with the name of your phpop
  60. database and the user ID and password used to connect to it. I use
  61. "phpop" as the name of my phpop database. Review the
  62. contents of this file and update to support the database you are
  63. using.
  64. 6. Update the phpop.inc file with the configuration settings
  65. for your environment.
  66. 7. OPTIONAL: 
  67.   Full customization is available with the FastTemplate support in phpop.
  68. Update the files in the phpop/lib/templates directory to create the 
  69. look & feel and language that you desire for your installation of phpop.
  70. 8. If you are running on a Windows platform, edit the
  71. class.FastTemplate.inc file in the phpop/lib directory and change the
  72. WIN32 variable in the class section at the top to "true"
  73. 9. To give phpop full control over character handling,
  74. especially quotes, you must turn magic_quotes_gpc, magic_quotes_sybase 
  75. and magic_quotes_runtime off. You can do this in the php3.ini file
  76. or if supported by your webserver in the .htaccess file. These settings
  77. are already set in the sample .htaccess file from the distribution.
  78. 12. Open the index.php3 page in your browser, enter your POP user ID
  79. in the user ID field (normally your email user), enter your POP password
  80. in the password field, click "Login" button, and enjoy!