![]() Saving debug log to /var/log/letsencrypt/letsencrypt.log $ certbot certonly -manual -preferred-challenges dns -d # create a blog directory under /usr/local/www/Īnd create a test.php file under /usr/local/www/nginx/blog/ : If php is working correctly, create a blog directory under : You can use service stop php-fpm to stop php-fpm. Make the php-fpm service starts when FreeBSD boots , $ nano /usr/local/etc/php/secure-phi.iniĭisable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source Next edit /usr/local/etc/php-fpm.d/www.conf : $ ln -s /usr/local/etc/php.ini-development /usr/local/etc/php.ini $ ln -s /usr/local/etc/php.ini-production /usr/local/etc/php.ini php-fpm pid isĬonfigure php on freebsd, first create a php.ini link : php-fpm configuration filesĪre located under /usr/local/etc/nfĪnd /usr/local/etc/php-fpm.d/. Php configuration files are located under /usr/local/etc/php.iniĪnd /usr/local/etc/php/. $ pkg install php74-bcmath php74-bz2 php74-curl php74-dom php74-exif php74-fileinfo php74-filter php74-gd php74-gettext php74-intl php74-json php74-mbstring php74-session php74-soap php74-pecl-mcrypt php74-openssl php74-xmlrpc php74-zip php74-zlib php74-pdo_mysql php74-pdo_pgsql php74-pdo_sqlite php74-pdo_firebird php74-sqlite3 php74-pgsql php74-mysqli php74-pecl-mongodb-1.7.4 # replace 74 with your installed php version If you are running you website locally, make your server name resolve locallyīy adding the following line to /etc/hosts : Performing sanity check on nginx configuration: You can check if nginx is running, stop it, restart it, and reload its configuration using : Nginx: configuration file /usr/local/etc/nginx/nf test is successful Nginx: the configuration file /usr/local/etc/nginx/nf syntax is ok Test the configurations for any errors using : Try_files $uri $uri/ /blog/index.php?$args įastcgi_pass unix:/var/run/php-74-fpm.sock įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name $ mkdir Īnd create a configuration file for you website : Now create a directory in /usr/local/etc/nginx/ , ![]() Ssl_protocols TLSv1 TLSv1.1 TLSv1.2 # Dropping SSLv3, ref: POODLE The pid is found under /var/run/nginx.pid and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |