AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Phpmyadmin nginx mariadb12/31/2023 ![]() ![]() Generate a strong SSL key and a CSR to send for signing by a CA:.Setup the Diffie-Hellman Key Exchange Parameters.Server_name ssl_certificate ssl_certificate_key. The basic SSL server block should be look similar to the following:.First add the ssl directive in the server listen option, then add the SSL certificate and key paths. Root /usr/local/access_log /var/log/ Įrror_log /var/log/Įnabling SSL in Nginx is simple. Passenger_root /usr/local/lib/ruby/gems/2.1/gems/passenger-5.0.6 And add the Passenger config parameters:.NOTE: Ruby capabilities can be further extended by using rubygem packages, to search for more packages run: ![]() NOTE: Make sure to enable PASSENGER when running make config on nginx NOTE: Make sure to enable NGINX when running make config-recursive on rubygem-passenger Include fastcgi_params # include extra FCGI params # For all PHP requests, pass them on to PHP-FPM via FastCGIįastcgi_param SCRIPT_FILENAME /usr/local/fastcgi_param PATH_INFO $fastcgi_script_name Root /usr/local/access_log /var/log/ Įrror_log /var/log/ Create a directory for the web application:.NOTE: PHP capabilities can be further extended by using PECL packages, to search for more PECL packages run:Ĭp /usr/local/etc/php.ini-production /usr/local/etc/php.iniĮcho 'php_fpm_enable="YES"' > /etc/rc.conf NOTE: There are many more PHP modules, to search for more PHP modules run: Portmaster lang/php5-extensions databases/php5-mysql databases/php5-mysqli databases/php5-pdo_mysql www/php5-session Install PHP extensions and a few modules:.Install PHP5 and other supporting packages:.Alternatively, individual extensions can be installed using the appropriate port. This port provides a menu driven interface to PHP extension installation. It is very easy to add support using the lang/php5-extensions port. The PHP support in FreeBSD is extremely modular so the base install is very limited. # redirect server error pages to the static page /50x.html Root /usr/local/index index.html index.htm Start by setting up a simple static website, no server-side stuff PHP or Ruby just plain HTML, CSS, JavaScript, etc. Include /usr/local/etc/nginx/conf.d/*.conf # Load config files from the /etc/nginx/conf.d directory And strip down the config file and add the include statement at the end to make it easier to handle various server blocks:.Create a configuration directory to make managing individual server blocks easier.Before installation of the components, make sure everything is up to date using the following command:Įcho 'nginx_enable="YES"' > /etc/rc.conf.If any version of the packages needs to be changed, replace the versions in the commands accordingly. Here is a procedure to install a FreeBSD with Nginx, MariaDB and PHP server stack. ![]()
0 Comments
Read More
Leave a Reply. |