PhpStudy is suitable for local deployment, and Pagoda is suitable for server deployment.
Recommended deployment environment:
windows
、pagoda
、Apache
、PHP7.4
。
Reasons: 1. The Linux environment may encounter uppercase and lowercase anomalies; 2. Nginx also needs to be rewritten; 3. PHP versions above 8 may also need to configure the php.ini file.
Web Services
run.domain name
、Root directory
、Check PHP
, and fill in Pseudo-static
(In the website directory).
Note: Due to a bug in PhpStudy software, PhpStudy software will clear the contents of the .htaccess file in the root directory when creating the website, so the pseudo-static rule content must be filled in when creating the website.
Click the Site menu, click Add Site
localhost
.htaccess
File content], Nginx input content is [the root directory of the website nginx.htaccess
document content]php.ini
To turn on output buffering, the code is:output_buffering = on