您好,登錄后才能下訂單哦!
這篇文章主要講解了“本地Apache服務(wù)器怎么添加php7模塊”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“本地Apache服務(wù)器怎么添加php7模塊”吧!
Apache的一些基礎(chǔ)命令
Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -n name : set service name and use its ServerConfigFile and ServerRoot -k start : tell Apache to start -k restart : tell running Apache to do a graceful restart -k stop|shutdown : tell running Apache to shutdown -k install : install an Apache service -k config : change startup Options of an Apache service -k uninstall : uninstall an Apache service -w : hold open the console window on error -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed vhost settings -t -D DUMP_RUN_CFG : show parsed run settings -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG -t -D DUMP_MODULES : show all loaded modules -M : a synonym for -t -D DUMP_MODULES -t -D DUMP_INCLUDES: show all included configuration files -t : run syntax check for config files -T : start without DocumentRoot(s) check -X : debug mode (only one worker, do not detach) ``` 在php官網(wǎng)下載php文件包VC15 x64 Thread Safe (2018-Mar-01 06:45:07)一定要是帶有thread的 之后再Apache的httpd.conf中加入
LoadModule php7_module C:/Apache24/php-7.2.3-src/php7apache2_4.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir D:/Apache24/php-7.2.3-src
`
運(yùn)行httpd -k start就可以啟動(dòng)服務(wù)器了,在A(yíng)pache的htdoc目錄下寫(xiě)個(gè)index.php文件
<?php phpinfo();
在localhost下就能看到效果了
之后修改php.ini文件
extension_dir = "C:/Apache24/php-7.2.3-src/ext" default_charset = "UTF-8" extension = php_mysql.dll
修改完這3個(gè)搭建任務(wù)就完成了
感謝各位的閱讀,以上就是“本地Apache服務(wù)器怎么添加php7模塊”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)本地Apache服務(wù)器怎么添加php7模塊這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。