There are a lot of articles on the Internet that are wrong, because it is copying others, the author does not have his own pro-test, not only can not help the novice, but also produces serious misleading, the following introduction is my constant crawling, pro-test one available Tutorial, I hope to give you some help (Mac version is sierra), please indicate the source
A. ap use the mac comes with
Basic usage:
Start Apache: Run "sudo apachectl start"
S
When learning php, you can use apache to access *. php, but cannot access the folder to learn php, you can use apache to access *. php, but cannot access folders. for example, if you access localhost, the following information is
Server Load Balancing Scheme with a large number of users
I. Preface
Ii. Compilation and Installation
Iii. Install MySQL and memcache
4. install Apache, PHP, eaccelerator, and PHP-memcache
5. Install squid
Vi. Postscript
I. Preface and preparations
Currently, the lamp development model is the first choice for web development. How to build an efficient, reliable
directory, if it is a virtual space, you can decompress the package and upload it to the web directory using the ftp tool. You can also modify the name of the extracted file.
Ii. Configuration
Open the config. default. php file under the libraries directory, find the following items in sequence, and configure them according to the instructions.
1. Visit the website
2. MySQL host information
Enter the ip address of the localhost or MySQL server. If M
by PHP. if some programs need this function, delete it and disable it. Expose_php = Off # Disable Display of php version information display_errors = OFF # disable error prompt register_globals = OFF # Disable registration of global variable magic_quotes_gpc = On # enable magic_quotes_gpc to prevent SQL injection log_errors = On error log
Error_log =/var/
Install LAMP Server (Apache, MariaDB, PHP) on centos/rhel/scientific Linux 7By skshare on Facebook tweets on Twitter
LAMP is a combination of operating system and Open-source software stack. The acronym of LAMP is derived from first letters of Linux, Apache HTTP Server, Mysql/mARIADB database, and php
Introduction to mac configuration Apache + php + mysql
I purchased a Macbook Pro over the weekend, so I was ready to migrate all the work environments to the Mac. it was easy to use and the user experience was really good. Currently, when learning PHP-related development, you need to configure the PHP development envir
the Apache installation directory. For example, c: \ Apache \ log \ error. log. Okay. select "Apache server" from "start", "program", and "Apache Webserver" to run Apache. if everythin
Mariadb.service #启动MariaDBSystemctl Stop Mariadb.service #停止MariaDBSystemctl Restart Mariadb.service #重启MariaDBSystemctl Enable Mariadb.service #设置开机启动CP/USR/SHARE/MYSQL/MY-HUGE.CNF/ETC/MY.CNF #拷贝配置文件 (Note: If the/etc directory has a my.cnf under the default, you can directly overwrite it)2. Set the password for the root accountMysql_secure_installationEnter, follow the prompts for YEnter Password 2 times, enterEnter Y as promptedLast appearance: Thanks for using mysql!MySQL password setup is
can delete and cancel the disabled. expose_php = Off #在432行 Suppress the display of PHP version information MAGIC_QUOTES_GPC = on #在745行 Open MAGIC_QUOTES_GPC to prevent SQL injection Short_open_tag = on #在229行 PHP Short Tag Support Open_basedir =.:/ tmp/#在380行 Setting means to allow access to the current directory (that is, the PHP script file in the directory)
the main execution file of Apache, which is actually a shell script, it can actively detect some settings on the system, it makes Apache startup easier /usr/sbin/httpd This is the main Apache binary file /usr/bin/htpasswd when when you want to log on to some web pages, enter the account and password.
WEB Server linux + apache + mysql + php LAMP source code environment setup
Linux + Apache + Mysql + Perl/PHP/Python is a group of open-source software commonly used to build dynamic websites or servers. They are independent programs, but they are often used together, having higher and higher compatibility
A powerful we
operation:netsh winsock resetAfter a while CMD will prompt you to restart, regardless, now Apache is ready to start.is actually a Winsock fix4. If the Apache service item does not appear in your Apache Post installation service Management list, it indicates that an error occurred during the installation process and can be installed manually.workaround : Use cmd
I am also a newbie
1. install Apache
Apache_2.2.14-win32-x86-no_ssl.msi2. install PHP(1) PHP-5.2.6-win32-installer.msi(2)php-5.2.6-win32.zip, decompress and replace all the files in the install PHP DirectoryWindows extensions; Note that ODBC support is built in, so no DLL is
troublesome to change, but also to change my. ini.However, there is a problem.Generally, c: \ has all permissions in the Everyone group. This is the default, and the data directory under MySQL is caused by inheritance.All permissions in the Everyone group. Data may be randomly accessed, read, or deleted, and data may be leaked or damaged.Change the MySQL directory to an appropriate and secure access permission.Over...Bytes ------------------------------------------------------------------------
suppress PHP version information MAGIC_QUOTES_GPC = on #在745行 open MAGIC_QUOTES_GPC to prevent SQL injection Short_open_tag = on #在229行支持php短标签 Open_ Basedir =.:/ tmp/ #在380行 settings that allow access to the current directory (the directory where the php script files are located) and the/tmp/directory, can prevent the
integer. Default value: System-defined value. chroot=#启动时的Chroot目录. The defined directory needs to be an absolute path. If not set, Chroot is not used. ChDir=#设置启动目录, the directory is automatically chdir on startup. The directory you define needs to be an absolute path. Default value: Current directory, or/directory (chroot) Catch_workers_output=yes# redirects the stdout and stderr to the primary error log file during the run. If there are no setting
Getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam, Posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid, Posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname, Posix_uname #列出PHP可以禁用的函数, if some programs need to use this function, you can delete, cancel disable.expose_php = Off #禁止显示
)
(1) (721 lines); Extension_dir = "ext", remove the front ";" and change to Extension_dir = "D:\phpEnv\php\ext" to open PHP extension support, Ext folder has a lot of PHP extension support. dll files, interested students can look.
(2) then the MySQL extension that opens PHP
(875, 876 lines) remove the front ";"
Extens
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.