GNU/Linux >> Linux Esercitazione >  >> Panels >> Panels

Installa Prosper202 con Nginx, MySQL e PHP-FPM su Ubuntu

In questo tutorial ti mostreremo come installare Prosper202. Realizzato da Tracking202, Prosper202 è un'applicazione self-hosted che ti consente di monitorare e ottimizzare tutte le tue campagne di marketing. È open source e facile da installare su un VPS Linux. Segui i passaggi seguenti per installare Prosper202 su Ubuntu 14.04 .

Di seguito sono riportati i requisiti minimi di sistema per Prosper202:

– PHP versione 5.4 o successiva.
– MySQL versione 5.6 o successiva.
– Estensione MySQLi abilitata in PHP

Vai avanti e connettiti al tuo server tramite SSH. La prima cosa che devi fare è aggiornare tutto il software di sistema all'ultima versione disponibile:esegui il comando seguente:

# apt-get update && apt-get -y upgrade

Useremo Nginx come server web in questo tutorial. Una volta completato il processo di aggiornamento, puoi installare Nginx sul tuo Ubuntu VPS usando il seguente comando:

# apt-get install nginx

Avvia Nginx e abilitalo all'avvio del sistema:

# service nginx start
# update-rc.d nginx enable

La prossima cosa che devi fare è installare MySQL 5.6 sul tuo server. Usa il seguente comando:

# apt-get install mysql-server-5.6 mysql-client-5.6

Procedi con l'installazione sicura di MySQL:

# mysql_secure_installation

Segui i messaggi sullo schermo per configurare MySQL:

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!

Remove anonymous users? [Y/n] y
 ... Success!

Disallow root login remotely? [Y/n] y
 ... Success!

Remove test database and access to it? [Y/n] y
 - Dropping test database...
ERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist
 ... Failed!  Not critical, keep moving...
 - Removing privileges on test database...
 ... Success!

Reload privilege tables now? [Y/n] y
 ... Success!

Avvia il servizio MySQL e abilitalo all'avvio del sistema:

# service mysql start
# update-rc.d mysql enable

Se hai già installato il server MySQL sul tuo server, puoi verificarne la versione usando il seguente comando:

# mysql --version

Dovresti vedere qualcosa di simile al seguente sullo schermo:

# mysql --version
mysql  Ver 14.14 Distrib 5.6.28, for debian-linux-gnu (x86_64) using  EditLine wrapper

Il prossimo componente che deve essere installato è PHP-FPM. Installa PHP-FPM utilizzando il comando seguente:

# apt-get install php5-fpm php5-mysql

Crea una directory per Prosper202:

# mkdir /var/www/prosper202

Ora, scarica l'ultima versione di Prosper202 da http://prosper.tracking202.com/download e decomprimi il file scaricato nella directory '/var/www/prosper202/' sul tuo server. Oppure usa il comando seguente per scaricare e decomprimere l'installazione di Prosper202 nella directory '/var/www/prosper202/':

# cd /var/www/prosper202/ && wget http://my.tracking202.com/clickserver/download/latest && unzip latest

Una volta fatto, cambia la proprietà dei file:

# chown www-data: -R /var/www/prosper202

Crea un file di configurazione Nginx per Prosper202:

nano /etc/nginx/sites-available/yourdomain.com

Inserisci il seguente contenuto:

server {
    #listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default ipv6only=on; ## listen for ipv6

    root /var/www/prosper202;
    index index.php index.html;

    # Make site accessible from http://localhost/
    server_name www.yourdomain.com yourdomain.com;

    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to index.html
        try_files $uri $uri/ /index.html;
    }

    error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root /usr/share/nginx/www;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

        # With php5-cgi alone:
        # fastcgi_pass 127.0.0.1:9000;
        # With php5-fpm:
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }
}

Assicurati di sostituire tuodominio.com con il tuo nome di dominio effettivo.
Abilita la configurazione e riavvia il servizio Nginx:

# ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/yourdomain.com
# service nginx restart

Poiché Prosper202 memorizza i suoi dati in un database MySQL, è necessario creare un database per esso. Accedi a MySQL come root:

# mysql -u root -p

Crea un nuovo database per Prosper202, un utente del database e imposta una password utilizzando i comandi seguenti:

mysql> CREATE DATABASE prosper202DB;
mysql> GRANT ALL PRIVILEGES ON prosper202DB.* TO 'prosper202'@'localhost' IDENTIFIED BY 'YoUrPaSsWoRd';
mysql> FLUSH PRIVILEGES;
mysql> \q

Il passaggio finale è aprire il tuo browser web preferito e inserire il tuo nome di dominio nella barra di ricerca. Dovresti seguire le istruzioni sullo schermo per completare l'installazione di Prosper202.

Ovviamente non devi fare nulla di tutto ciò se utilizzi uno dei nostri servizi di hosting VPS Linux, nel qual caso puoi semplicemente chiedere ai nostri esperti amministratori Linux di installare Prosper202 per te. Sono disponibili 24 ore su 24, 7 giorni su 7 e si prenderanno immediatamente cura della tua richiesta.

PS. Se questo post ti è piaciuto condividilo con i tuoi amici sui social network utilizzando i pulsanti a sinistra o semplicemente lascia una risposta qui sotto. Grazie.


Panels
  1. Come installare Nginx con PHP-FPM e MySQL su Fedora 16 "Verne"

  2. Come installare Nginx con PHP5 e MySQL su Ubuntu 11.10

  3. Installa October CMS su Ubuntu, con Nginx e MariaDB

  4. Installa Fuel CMS su un VPS Ubuntu 14.04 con Nginx, PHP-FPM e MySQL

  5. Installa Concrete5 su un VPS Ubuntu 14.04 con Nginx, PHP-FPM e MySQL

Come installare OpenCart 2 con Nginx e SSL su Ubuntu 15.10

Come installare Drupal 8.1 con Nginx, PHP-FPM e SSL su Ubuntu 16.04

Come installare Nginx con PHP e MySQL (stack LEMP) su Ubuntu 18.04

Come installare Lighttpd con PHP-FPM 7 e MySQL 5.7 su Ubuntu 18.04 LTS

Come installare Lighttpd con PHP-FPM e MySQL su Ubuntu 20.04 LTS

Installazione di Nginx con PHP5 (e PHP-FPM) e supporto MySQL (LEMP) su Ubuntu 13.04