web application – apache

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Apache httpd has been the most popular web server on the Internet since April 1996, and celebrated its 17th birthday as a project this February.

backtrack 5r1

index.html
/usr/share/apache2/default-site

logs
/var/log/apache2

You don’t need to install Apache in backtrack as already there simply run from root

service apache2 start

root@bt:~# service apache2 start
* Starting web server apache2                                           [ OK ]

root@bt:~# service apache2 stop
* Stopping web server apache2                                                   … waiting .                                                           [ OK ]
root@bt:~#

If using another Linux OS and want to install

1. To install apache
apt-get install apache2

2. To start web server
service apache2 start
3. To set up a share folder.

mkdir /var/www/share
chmod -R 755 /var/www/share/
chown -R www-data:www-data /var/www/share/

4. To veiw if sharing type
ls -la /var/www/ | grep share

5. Copy files to the share or use the gui.

cp /root/.msf4/data/exploits/* /var/www/share/
–> * was a wildcard that mean I want to select all the folder contents

6. Access the file from another machine

http://(servers ip)/share

One thought on “web application – apache

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s