


Non-integrated environment PHP operating environment (Apache configuration, Mysql) construction and installation graphic tutorial, _PHP tutorial
Non-integrated environment PHP operating environment (Apache configuration, Mysql) construction and installation graphic tutorial,
This article shares the PHP operating environment construction and installation graphic tutorial for everyone. For reference, the specific content is as follows
Install apache:
1. Do not install into a directory with Chinese characters:
2. Try to install apache, php, and mysql into a general directory for easy management.
3. Try to delete the previously installed amp integrated installation environment and delete the configured environment variables:
Here is the setting of the server name. You can enter it casually. After completion, you can use IP or localhost to access it.
Fill in the email address as you like and make sure the email format is correct
The default homepage (site) location of apache after installation is:
apache installation location/htdocs/
localhost: is a special domain name (site), which itself represents the "local server"
127.0.0.1 is a special IP address that represents "local server"
Enter localhost after completion,
Configure apache to run php web pages
After the initial apache installation, its configuration items cannot run php scripts (code).
We need to custom configure apache to accomplish this goal: run the php script.
The location of the apache configuration file:
apche installation directory/conf/
The main configuration file is: httpd.conf
The functions of apache are run in a "modular" manner, and there are many default function modules
So, php is actually just one of the functional modules of apache!
But we have to configure it ourselves (no default configuration code).
The code is as follows:
Find the icon file in the PHP installation directory.
After modifying the configuration file, you need to restart apache.
In the second step, there is another way: the file suffix can be set at will, such as .bc8, .phtml
Configure the basic operating environment of php
php configuration file is:
php language pack/php.ini
In fact, the PHP initial language package provides 2 recommended configuration files:
We only need to take one of them and modify its suffix. Rename it.
This is a very important point to determine the location of the php configuration file (php.ini):
Use a simple php web page with only one line of code:
See after running
So, we can specify the location of php.ini in the apache configuration file:
Restart apache and run phpinfo.php. The result is:
Configure time zone:
Find the configuration line based on the keyword timezone:
Initial:
was changed to:
Configure database connection mechanism:
Although php itself is a module of apache and is called by apache,
However, as a complete language package, PHP is composed of many "sub-modules" inside.
The module configuration in php is as follows (in the php.ini file):
extension: extension means extension module
You can easily "turn on/off" a module here.
We now need to connect the module of mysql database, so open it:
Actually, not enough!
Because we need to specify where the module is
(Compare the syntax of apache to open the php module:
)
That is, you also need to indicate the module location.
In php, the setting of module location is a separate setting item, and all modules are put together:
is changed to the following:
Restart apache.
Don’t worry at this time, because we haven’t installed the database yet.
Install mysql database
Start installation:
Now that the installation is complete, if nothing is displayed when connecting to the database again, it means the connection is successful!
The above is the entire content of this article, I hope you all like it.
Articles you may be interested in:
- Illustrated method for installing the Apache MySQL PHP operating environment under Windows
- Configuring the PHP 5.3.2 operating environment under IIS7.0 Method
- CentOS 5.5 uses yum to install LAMP (php running environment)
- Practical deployment of Apache PHP MySQL running environment under Windows
- Win2008 php running environment construction graphic tutorial
- PHP running environment configuration and development environment configuration (graphic tutorial)
- How to configure the PHP running environment in Windows 8 IIS
- Detailed graphic and text explanation of setting up PHP running environment in Windows server 2008 (php5.3)
- Cloud host building php mysql operating environment tutorial (Guardian PHP suite)
- Win2012 R2 IIS8.5 PHP (FastCGI) MySQL operating environment building tutorial

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.