When you turn on network service applications such as WEB/FTP in a CentOS7 system, you may receive security policy effects such as firewall, SELinux, and so on, which are configured by default. To avoid interference, these protection mechanisms are recommended in the learning process.To turn off firewall policy:[[emailprotected] ~]# systemctl stop firewalld[[emailprotected] ~]# systemctl disable firewalldTurn off the SELinux protection mechanism:[[emailprotected] ~]# setenforce 0
PHP7 has been out for some time, according to the practice of the user test than the previous version of the efficiency will be much higher, and the application to the site open speed will be significantly improved. But not all CMS program compatibility and support, the current mainstream WordPress, such as program compatibility is good, other programs to see the actual use, including program and component plug-in support. If we are not comfortable or incompatible, then temporarily use the versi
Tags: Lamp+rdis cache database ConsolidationLAMPIn an enterprise production environment, in addition to theMYSQLdeployed separately on other servers, due toMYSQLthe database will be very stressful and willMYSQLmaster-slave replication and read/write separation, whilePHPThe site is tuned, usuallyPHPthe optimization methods include:PHPThe code itself optimizes,PHPconfiguration file optimization, forPHPAdd a cache module toPHPsite data is cached, and so
The construction of the Linux lamp environment1. Install the Lamp Environment installation toolOur lamp environment is compiled and installed using source packages:Compiling the installation requires the tool GCC gcc-c++.Recommended Online networking installation: yum-install-y gcc gcc-c++ (Install multiple spaces separated by space)Test for successful installati
Tags: test LAMP architecture PlatformLamp refers to the first letter of the Linux (operating system), Apachehttp Server, MySQL (sometimes also referred to as MARIADB, database software) and PHP (sometimes referred to as Perl or Python), which is generally used to build a Web application platform. Linux+apache+mysql/mariadb+perl/php/python a group of open-source software that is often used to build dynamic Web sites or servers is itself a separate prog
informationMAGIC_QUOTES_GPC = on #在745行Open MAGIC_QUOTES_GPC to prevent SQL injectionShort_open_tag = on #在229行PHP Short Tag SupportOpen_basedir =.:/ tmp/#在380行Setting means to allow access to the current directory (that is, the PHP script file in the directory) and/tmp/directory, you can prevent the PHP Trojan cross-site, if you change the installation program after the problem, you can log off this line, or directly write the program directory/data/www.bamaol.com/:/tmp/: wq! #保存退出/etc/init.d/
1, install PHP7 sudoapt-getinstallphp7.0php7.0-mcrypt 2, install MySQL sudo apt-get installation mysql-server input sudo netstat-tap | grep mysql Display the listening port indicates the installation is successful 1, start MySQL Service MySQL start 2, stop MySQL service MySQL stop 3, restart MySQL service MySQL restart3, install Apache sudo apt-get installs Apache2 1, start apache/etc/init.d/apache2 start 2, stop apache/etc/init.d/apache2 stop 3, restart Apache/etc/init.d/apache 2 restartInsta
1. Download Ubuntu Server, address Https://www.ubuntu.com/download/server2. Install Ubuntu Server on the virtual machine. Follow the install boot process step-by-step installation, similar to installing the Windows operating system on your PC. A user name and password are set in the installation, and the prompt to enter the user name is displayed after successful installation. It's probably in the same way:3. In general, we will use the Remote management tool, which I am using Xshell. Download X
./configure--PREFIX=/USR/LOCAL/LIBXML2Make make installInstalling Jpeg8TAR-ZXVF jpegsrc.v8b.tar.gzCD jpeg-8b./configure--prefix=/usr/local/jpeg--enable-share--enable-staticMake make installInstalling libpngTAR-ZVXF libpng-1.6.24./configureMake make installInstalling FreeTypeTAR-ZXVF FreeTypeCD freetype-2.6.5./configure--prefix=/usr/local/freetypeMake make installInstalling the GD LibraryTAR-ZVXF gd-2.035.tar.gzCD gd-2.035./configure--prefix=/usr/local/gd--with-jpeg=/usr/local/jpeg--with-png-
1.sudo apt-get Update2.sudo Apt-get Install Apache23. Check if the installation was successful: Apache2-v4.sudo apt-get Update php5Error occurred: Package PHP5 has no installation candidateSolve:sudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get install php5.65, check Apache2 support file for PHP exists: cat/etc/apache2/mods-enabled/php5.6.loadIf you see a hint at the end of libphp5.6.so that means support6, installation Mysql:sudo Apt-get install Mysql-serverEnter Password tw
executionCHMOD-R 777 StorageIf not, try this again.Because Ubuntu Apache uses www-data users, it does not work properly to avoid permissions problems. We will public,storage,vendor three directory settings www-data belong to:
1
$sudochown-R www-data /var/www/html/laravel/my_laravel/public/
2
$sudochown-R www-data /var/www/html/laravel/my_laravel/storage/
3
$sudochown-R www-data /var/www/html/laravel/my_larave
, you can find a place to insert the following: DirectoryIndex index.html index.htm index.php index.html.var 2, a server hangs multiple stations, you need to bind a different file header through the port First add port/etc/apache2/ports in which you want to use the port, recommended, use after 10000. The specific command is as follows: Listen 10000 3, configure the virtual server, virtual server files to/etc/apache2/site-availabel under, if necessary, direct CP A current file, modify. Modify th
there is any database management software appearing.
Configuration process
Enable the Mod_rewrite modulesudo a2enmod rewriteRestart Apache server: sudo/etc/init.d/apache2 restart or sudo service apache2 restart
Set Apache support. htm. html. phpsudo gedit/etc/apache2/apache2.confAdd the following sentence: AddType application/x-httpd-php. php. htm. html
Test the PHP page Edit the mysql_test.php code as follows:
$link = Mysql_ Connect ( "localhost" , "root" , "1
1, the location of some files Hosts file----/etc/hosts environment variable configuration file---/etc/profile System User group File---/etc/group System User Files----/etc/passwd Various system executable Directory---/etc/init.d/ 2, environment variable configuration method: Export path= "$PATH:/usr/local/php/bin/" View current environment variables in Shell project: Echo $PATH Note: After changing the environment variable file, you need to do: Source/etc/profile to make it effective immediately
PS Homemade pumpkin Lamp tips
PS Create new file in 1280x1024 RGB color mode 72dpi. Use the Paint bucket tool to fill the background layer with black.
Find a picture of pumpkin, pull the picture, remove the background, you can use the Pen tool, magic wand tool, lasso tool, etc., method no longer repeat.
Create a new layer and import the image you've pulled.
Layer style, inner glow.
Then you can start the next step.
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.