Informatica/Servicios/phplist

De 33system wiki
Saltar a: navegación, buscar

<< Informatica

PHPlist

Teoría

Práctica

# instalamos los paquetes necesarios
apt-get install ssh vim apache2 mysql-server-5.0 php5 php5-mysql php5-curl php5-gd php5-xmlrpc php5-intl php5-imap

# Instalar un mailserver
SquirrelMail.txt

# Creamos un vhost para phplist
vim /etc/apache2/sites-available/phplist

=========
NameVirtualHost 192.168.0.35:80

<VirtualHost 192.168.0.35:80>

    ServerName saracostas.com
    ServerAdmin admin@saracostas.com
    DocumentRoot /var/www/www/web

    LogLevel warn
    ErrorLog /var/log/apache2/www_error.log
    CustomLog /var/log/apache2/www_access.log combined

</VirtualHost>
=========


# Creamos la raiz para vhost
mkdir -p /var/www/www/web/

# Hablitamos vhost y reiniciamos webserver
a2ensite phplist
/etc/init.d/apache2 restart

# creamos la estructura para la base de datos
mysql -u root -proot
CREATE DATABASE phplist;
CREATE USER phplist IDENTIFIED BY 'phplist';
GRANT CREATE, ALTER, INDEX, DROP, CREATE TEMPORARY TABLES, SELECT, INSERT, UPDATE, DELETE ON phplist.* TO 'phplist'@'localhost' IDENTIFIED BY 'phplist';
GRANT CREATE, ALTER, INDEX, DROP, CREATE TEMPORARY TABLES, SELECT, INSERT, UPDATE, DELETE ON phplist.* TO 'phplist'@'localhost.localdomain' IDENTIFIED BY 'phplist';
FLUSH PRIVILEGES;
quit;

# Descargar phplist
cd /tmp/
wget http://sourceforge.net/projects/phplist/files/phplist/2.10.18/phplist-2.10.18.tgz
tar xvfz phplist-2.10.18.tgz
cp -R /tmp/phplist-2.10.18/public_html/* /var/www/www/web/

# configuracion basica config.php
vim /var/www/www/web/lists/config/config.php
======
Database Settings
$database_name = "phplist";//phplistdb
$database_user = "phplist";
$database_password = "phplist";
Bounces
$message_envelope = "listbounces@saracostas.com";//#
$bounce_mailbox_user = "listbounces@saracostas.com";//popuser
$bounce_mailbox_password = "phplist";//password
Security
$check_for_host = 1;
Debug
define("TEST",0);
==========

# reiniciamos el servidor web
/etc/init.d/apache2 restart

# Abrir navegador
http://192.168.0.35/lists/admin

# Se accede por primera vez con 
usr:admin 
pwd:phplist

Documentacion