Wednesday, 11 July 2012


             -:PHP List:-
Installation steps:-
First of all
->install Wamp server 2.2
in this section we will learn how to start, restart the WAMP server and test a simple php program. You will be familiarized with the WAMP server directories and the different configuration options it provides.After successful installation you can see a folder inside the C:\ drive named wamp. Inside the folder there will be many files and folders like: alias, apps, bin, lang, logs, scripts, tmp etc. We will develop PHP programs inside the www folder e.g C:\wamp\www. Now start the wamp server either by double click on the icon appear on the desktop or go to start option and then select wamp server. After selecting the wamp server you can see an icon will appear (which looks like a speedometer of vehicle) on the tray (extreme right side of the task bar) as shown in the figure below.

Initially the icon will be partially red, it means no service is currently running, click on it and a popup menu will appear, select the start all services option. Now the color of the icon should change to white that means all services are running, if the color of the icon appears half yellow then all services are not running then follow either of these steps:
  • Left click on the icon, select apache, go to service option, click start/resume service
  • Left click on the icon, select MySQL, go to service option, click start/resume service

Another option is left click on the icon and select restart all services.
To check whether the server is running or not again click on the icon of wamp server and select Localhost option. Home page of the server will be displayed in Internet Browser.  



Unpack the downloaded zip file, This will create a directory called phplist-x.y.x where x.y.z is the version you unpacked.
In this directory, there will be a directory public_html which contains the directory lists. Upload the "lists" directory into a directory that can be accessed via the web. The rest of the files are for reference only and are not needed for phplist to work.
Create a database for phpList to use. phpList needs the name of that database during the installation process.
Configure phpList by opening the config.php file in the lists/config directory in your preferred text editor

Begin with these settings: config.php file in the lists/config 
1.     $database_host: where is the mySQL database installed (on what server)? The most common (and simple) installation has the database on the same server (computer) as the web site's server. Therefore, the default value of "localhost" is probably ok.
2.     $database_name: on the host (above) what is the name of the database where phpList's tables have been installed?
3.     $database_user: what is the name of the database user that has Insert, Update, Delete privileges on the above database?
4.     $database_password: what is this user's password?
phpList gives you the option during installation of choosing a table prefix. This means that should more than one of your applications require a table named "user" the database will not be confused by an ambiguous name; there's only one "user" table. By default phpList prefixes all of its tables: phplist_
This also makes 
backups easier.

Note :- These are some important settings
define ("TEST",0);

define ("MANUALLY_PROCESS_QUEUE",1);

define("MAILQUEUE_BATCH_SIZE",0);

define("MAILQUEUE_BATCH_PERIOD",2700);
(note: I have found 2700 helps more than the default of 3600 to keep things running longer when you have a large batch)

define('MAILQUEUE_THROTTLE',0);

define("USE_LIST_EXCLUDE",0);

define('MAILQUEUE_AUTOTHROTTLE',0);

define("PHPMAILERHOST",'mail.yourdomain.com'); 
define ("MANUALLY_PROCESS_BOUNCES",1);
define('CLICKTRACK',1);
define('CLICKTRACK_SHOWDETAIL',1);
note
·         Make sure your php extensions can be loaded
o    Open your php.ini file.
o    Search for 'extension_dir'.
o    You should find something like : extension_dir = "C:/wamp/bin/php/php5.2.6/ext/"
o    If this line has been commented out (;extension_dir = "C:/wamp/bin/php/php5.2.6/ext/") , please uncomment the line by removing the semi-colon ';' from the beginning of the line.
o    If you don't find this line, please add this line with the path of your extension directory in there.
·         Load the IMAP Extension
o    Check your extension folder and make sure the php_imap.dll is there.
o    Open your php.ini file.
o    Search for 'extension=php_imap.dll'
o    If this line has been commented out (;extension=php_imap.dll), please uncomment the line by removing the semi-colon ';' from the beginning of the line.
o    If you don't find this line, please add it under the extension_dir line.
·         Restart your server

No comments:

Post a Comment