Freebsd + nginx + mysql + php

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.