Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Monday, November 3, 2014

Find Apache Services in .Net

sc query state= all | findstr /i apache
Also: find all services already started
net start

Wednesday, February 20, 2008

Apache Benchmark example

#!/bin/bash
ab -kc ${1} -t 30 ${2}
k = keep alive
c = concurrent
t = test time duration
${1} = variable set to amount of concurrent users
${2} = variable set to URL, including file name

Saturday, January 5, 2008

Editing HTTPD.CONF to Enable PHP

sudo vi /etc/httpd/httpd.conf

(240 shift-g) Line 240
(284 shift-g) Line 284
(856 shift-g) Line 856
(857 shift-g) Line 857

(1087 shift-g) Line 1087
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.htm
</IfModule>

Start or Stop Apache


>sudo `whereis apachectl` stop
>sudo `whereis apachectl` start
>sudo `whereis apachectl` status
>sudo `whereis apachectl` help
>whereis apachectl
/usr/sbin/apachectl