win2003下的apache 2.2.6,如何能随系统重启而自动启动?有人说:web用户是匿名用户访问,权限非常低,你应该先设定 apache/bin/apachectl 这个文件为任何人可执行,之后再用 exec("apache/bin/apachectl start")执行就可以!
----可是我的bin下没有apacheectl这个 文件?请高手指点我。谢谢。
----可是我的bin下没有apacheectl这个 文件?请高手指点我。谢谢。
apache.exe -k install Apache2
卸载服务:
apache.exe -k uninstall Apache2
2楼的老兄,你这儿法,我不会。我的bin下,是httpd.exe,不是apache.exe.您能否再说详细些?
这两个软件端口冲突,要改下其中之一的端口.你可以把iis服务器停止掉.开机不会启动,再把apache以服务的形式安装,服务设为自动.
这两个软件端口冲突,要改下其中之一的端口.你可以把iis服务器停止掉.开机不会启动,再把apache以服务的形式安装,服务设为自动.
IIS 关掉 ,APACHE设置为随机自动启动
按楼上老兄的说法,我把IIS关掉后,重启apache,设为随机启动。可在重启win2003后,IIS就又重启了,apache关掉了。
请问:这如何处理?
错开端口的话可以通过 Internet服务管理器 或者是修改apache的 httpd.conf 来实现。
IIS重启动起来了。我要的是,IIS和APACHE都能随系统重启动。
请高手教我!
Usage: Apache.exe [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-w] [-k start|restart|stop|shutdown]
[-k install|config|uninstall] [-n service_name]
[-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
-n name : set service name and use its ServerConfigFile
-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 settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config filesD:\Server\Apache2\bin>
---running none of 1 apache services在服务里,iis运行时,apache无法启动;当我把iis关了后,apache图标就变绿了:running all apache services.启动apache后,再启动iis,成功。难道iis真的有优先权?不解。请教大方之家。