
You may need to set up apache appropriately, at the least be sure php5 is enabled. If you want to be sure about MySQL and PHP do this apt-get install php5-mysql libapache2-mod-php5 mysql-server Log in the server and access the super user account by issuing This install procedures where tested successfully in Hardy Heron and in Debian Lenny. # Enable PHP $_SERVER variable (will equal TLSv1, not "on")Įdit the website definition file.Installing FreePBX and Asterisk on Ubuntu Server Intrepid # PHP only, required if PHP was built with -enable-force-cgi-redirect Here is /etc/nginx/fastcgi_params: fastcgi_param QUERY_STRING $query_string įastcgi_param REQUEST_METHOD $request_method įastcgi_param CONTENT_TYPE $content_type įastcgi_param CONTENT_LENGTH $content_length įastcgi_param SCRIPT_NAME $fastcgi_script_name įastcgi_param DOCUMENT_URI $document_uri įastcgi_param DOCUMENT_ROOT $document_root įastcgi_param SERVER_PROTOCOL $server_protocol įastcgi_param SERVER_SOFTWARE nginx/$nginx_version Sendfile on # Send static files with nginx.Įdit the fastcgi_params file. '"$http_user_agent" "$http_x_forwarded_for"' Log_format main '$remote_addr - $remote_user $status ' Worker_connections 8000 # provide (8000 * cpu_cores) connections Worker_rlimit_nofile 8192 # file descriptors are > than worker_connections Worker_processes 4 # max_clients = worker_processes * worker_connections

Here is /etc/nginx/nf: # There are many more options to tweak nginx. The config files obviously can be quite different, for example, if you are using a framework like CodeIgniter but I don't think FreePBX uses a framework.



First make sure you are up to date, install nginx, php-cli, and then php-fpm/cgi.Īfterward, edit config files.
