Add backend to haproxy. The rule is host name iefreer.domain.com; cdusrportsmakesearchkey ^ nginx .... after installing all the software with ports: nginx, mysql, php-fpm (select the php-fpm option when php5.3.x or php5.4.x is installed), The phpmyadminfaq1. blank page appears or cannot be found
Add backend to haproxy. The rule is host name iefreer.domain.com; cd usr/ports make search key = ^ nginx .... after installing all the software with ports: nginx, mysql, and php-fpm (select the php-fpm option when php5.3.x or php5.4.x is installed), The phpmyadmin faq1. access page contains a blank page or cannot be found.
Add backend to haproxy. The rule is host name iefreer.domain.com;
Cd usr/ports
Make search key = ^ nginx
....
Install all the software above with ports: nginx, mysql, php-fpm (select the php-fpm option when installing php5.3.x or php5.4.x), phpmyadmin
Faq1. there is a blank page on the access page, or the file cannot be found, or the input file is not specified. If you confirm that the fastcgi9000 port is listening normally and there are access logs, but the PHP file is not executed at all,
This is mostly because of configuration file errors, especially the SCRIPT_NAME parameter settings.
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
Check whether the $ document_root parameter is correctly defined and whether it is defined. For example, if you define root in a location condition branch, this root does not work in other locations.
Faq2. phpmyadmin configuration using alias
# Phpmyadmin
Location/phpmyadmin {
Alias/usr/local/www/phpMyAdmin;
Index. php;
}
Location ~ /Phpmyadmin/. + \. php $ {
If ($ fastcgi_script_name ~ /Phpmyadmin/(. + \. php. *) $ ){
Set $ valid_fastcgi_script_name $1;
}
Include fastcgi_params;
Fastcgi_pass 127.0.0.1: 9000;
Fastcgi_index index. php;
Fastcgi_param SCRIPT_FILENAME/usr/local/www/phpMyAdmin/$ valid_fastcgi_script_name;
}
And make sure that the directory permission is correct for all users.
Faq3. access phpmyadmin and return mysqli extension Not Installed
The reason is that mysqli is used when phpmyadmin is installed, but this extension is not installed.
Cd/usr/ports
Make search key = mysqli
Install mysqli Extension
Restart related services (nginx, mysql_server)
Iefreer