第一次知道用 httpd 也可以做 PHP的服务器(估计 httpd 是 apache 的主要部件),
修改了 php.ini 的 upload_max_filesize 和 post_max_size 之后,需要重启WEB服务器。
Linux下php.ini在/etc目录下。 httpd在/etc/init.d/目录下。
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
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
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
[color=red] -h : list available command line options (this page)[/color]
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
修改了 php.ini 的 upload_max_filesize 和 post_max_size 之后,需要重启WEB服务器。
Linux下php.ini在/etc目录下。 httpd在/etc/init.d/目录下。
httpd -k restart
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
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
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
[color=red] -h : list available command line options (this page)[/color]
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
使用HTTPD配置PHP服务
本文介绍了如何通过HTTPD作为服务器来运行PHP应用,并详细解释了如何调整php.ini中的upload_max_filesize和post_max_size参数以适应不同大小的文件上传需求。此外,还提供了在Linux环境下重启HTTPD服务器的方法。
1182

被折叠的 条评论
为什么被折叠?



