Install phpMyAdmin with Apache and Nginx in FreeBSD 10.2

You may also like...

  • piraisudan

    could you post “install lighttpd and php with mysql in free bsd 10.3″……

    • SK

      I have added this to my to-do list. I will try and post soon. Stay tuned.

  • Paweł Prusiński

    for nginx

    server {

    listen 446;

    ssl on;

    ssl_certificate /usr/local/etc/nginx/cert/file.crt;
    ssl_certificate_key /usr/local/etc/nginx/cert/file.key;

    server_name XXXXXXXX.XXXX;

    root /usr/local/www/phpMyAdmin;
    index index.php;

    # set expiration of assets to MAX for caching

    location ~* .(ico|css|js)(?[0-9]+)?$ {

    expires max;

    log_not_found off;

    }

    location ~* .php$ {

    fastcgi_pass unix:/var/run/php-fpm.sock;

    fastcgi_index index.php;

    fastcgi_split_path_info ^(.+.php)(.*)$;

    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    }