Mobile Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 7 October 2013

Set up a basic website with Apache!!!

Posted on 05:51 by Unknown

Here are instructions on getting your small business website up and running with Apache on Linux or Windows. 
Apache is the most widely used web server on the planet -- and with good reason. Not only is Apache flexible and powerful, but it's also quite easy to get running and to start serving up content.
The idea of using a web server that relies so heavily on the command line and flat text file configuration might be rather daunting, but it doesn't need to be. I'll walk you through setting up a basic website with the latest iteration of Apache on Linux or Windows (I'm assuming you have a Linux or Windows machine ready for the task). After you follow this tutorial, you'll have either a Windows, Apache, MySQL, PHP (WAMP) or a Linux, Apache, MySQL, PHP (LAMP) server running and a "Hello World" page greeting your users.

WAMP

There are lots of WAMP servers you can install to get your Windows-based Apache server set up, but my favorite is the WampServer package, which installs everything you need for a web development environment. Here's how to install WampServer.
  1. Download the WampServer installer.
  2. Double-click the installer to start the process.
  3. Walk through the user friendly installer wizard (it's a typical Windows application installation).
Once the installation is complete, you should see an entry for WampServer in your Start menu's All Programs section. In that menu, click the start WampServer entry. When the WampServer starts, left-click the icon in the System Tray to see the menu (Figure A); from this menu, you can start or stop the services and gain quick access to the server's configuration files. 
Figure A
wampserver_1_Wallen_100413.png
The WampServer menu.
To get your website set up and running, the most important information you need is:
  • Document Root: This is where your website files will live. For the WampServer, these files will be in C:\wamp\www.
  • index.html: This is the most basic page for your website and should reside within the Document Root.
By default, WampServer will use the index.php file for its default page. Within the C:\wamp\www directory, rename the index.php file to OLD_index.php. In that same directory, create the index.html file and put this single line in the document:
<h3>Hello world!</h3>
Save that file and make sure your WampServer is running. Open your web browser and point it to the address of your WampServer. You should see the text (in bold):
Hello world!
If you do, congrats! Your WampServer is up and running.

Linux

I'll demonstrate how you can have a full-blown LAMP server up and running with just a couple of commands. For simplicity sake, I'll be demonstrating this on a Ubuntu 13.04 server. Here are the installation steps.
  1. Open a terminal window.
  2. Issue the command sudo apt-get install tasksel.
  3. Type your sudo password and hit Enter.
  4. Accept the installation.
After tasksel completes the installation, go back to the terminal window and do the following:
  1. Enter the command sudo tasksel.
  2. In the resulting window, use the down arrow key and move to LAMP Server (Figure B).
  3. Press the Tab key to move down to OK and hit Enter.
  4. When prompted, enter the passwords for MySQL.
Figure B
apache_linux_1_Wallen_100413.png
When this installation completes, your LAMP server will be running.
What you need to know:
  • Document Root: /var/www/
  • Index: The LAMP defaults to index.html for its main page. You can edit that page directly for your website.
  • To start and stop Apache, issue these commands: sudo apachectl start or sudo apachectl stop.
Congratulations! You now have a web server. I bet you had no idea setting up Apache for simple web pages was that easy.
Keep in mind that Apache isn't limited to basic web pages; it's also just as easy to serve up robust and dynamic sites with this powerhouse server. 
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • EMC Defenders CTF - Week 3 - Contest 14 - Reversing
    I played the EMC defenders CTF with a few of my friends a while back. We sadly couldn't complete all the challenges. All the same it was...
  • AuthenTec co-founder discusses how Touch ID fingerprint reader evolved from early prototypes!!!
    AuthenTec co-founder F. Scott Moody recently stopped by his alma mater to deliver a  speech  about the company he helped launch. His company...
  • Hackers breach vBulletin support forum using zero-day vulnerability!!!
    A group of European hackers by the name of Inj3ct0r Team have taken  responsibility  for hacking the support forums of vBulletin.com and the...
  • ASRock unveils a pair of motherboards designed specifically for Bitcoin mining!!!
    Those looking to generate some extra cash by mining for Bitcoin now have a couple of new hardware options courtesy of ASRock. The motherboar...
  • Amazon's trio of biospheres gets two thumbs up from Seattle Design Review Board!!!
    Earlier this year Amazon  submitted a building proposal  to construct a series of massive biospheres in downtown Seattle adjacent to three o...
  • 20 Life Hacks and Tools to Boost Productivity on Your Computer!!!
    With the flood of  new technologies , websites, apps, news, work files, pictures, articles and the like, staying organized and focused is be...
  • Why and how to set up your own wiki with Dokuwiki!!!
    DokuWiki is a simple but versatile wiki. Find out how to install, configure, and begin using DokuWiki.  A couple of weeks ago, I had to set ...
  • A peek at the inside of Sony's PlayStation 4!!!
    See  what's inside the PlayStation 4 with these exclusive photos  Inside Sony headquarters, at the heart of Tokyo’s Shinagawa district, ...
  • Crysis developer releases free-to-play FPS browser game Warface!!!
    Crytek is well known for its graphically impressive and visually stunning games on PC and console, but now the developer is taking its exper...
  • Chrome used more than Firefox, Opera and Internet Explorer combined!!!
    Google Chrome is absolutely dominating the web browser market, at least according to social analytics firm  Shareaholic , which yesterday re...

Categories

  • 100
  • 12.04
  • 2.2
  • 2013
  • 21
  • 4848
  • 8080
  • add
  • alternative
  • analysis
  • android
  • apk
  • app
  • applet
  • applets
  • appletviewer
  • application
  • appsec
  • asmx
  • assembly
  • attack
  • attacks
  • basic
  • basics
  • beginner
  • blazeds
  • blog
  • book
  • books
  • breakpoint
  • breakpoints
  • browser
  • burp
  • CALL
  • capture
  • certificate
  • chain
  • cheops
  • client side
  • code
  • conference
  • console
  • content-type
  • coverage
  • CRLF
  • cross
  • crossdomain
  • csrf
  • ctf
  • customer service
  • database
  • deblaze
  • debug
  • debugger
  • decision
  • defcon
  • delete
  • deleting
  • dll
  • dogbert
  • dom
  • dynamic
  • element
  • emulator
  • encryption
  • engineering
  • entity
  • environment
  • example
  • executable
  • external
  • firebug
  • flash
  • flex
  • FlourineFX
  • flow
  • flowchart
  • forensics
  • fs
  • fuzz
  • glassfish
  • graph
  • handbook
  • harden
  • hash
  • hints
  • hit
  • hittrace
  • howto
  • IDA
  • idapro
  • IDB
  • immunity
  • in use
  • incremental
  • inetsim
  • injection
  • install
  • introduction
  • java
  • java.policy
  • javaee
  • javascript
  • jks
  • jump
  • keyboard
  • lab
  • loaderdata
  • malware
  • management
  • mapper
  • market
  • MD Description
  • MD FAQ
  • MD Technical Support
  • MD Updates
  • MD User Guide
  • md5deep
  • mount
  • msdn
  • network
  • newbie
  • olly
  • ollydbg
  • options
  • packet
  • password
  • pbkdf
  • pcap
  • peb
  • peb_ldr_data
  • penetration
  • pentest
  • permissions
  • phone
  • pkcs12
  • policytool
  • port
  • practical
  • procedure
  • proxy
  • resign
  • resignation
  • response
  • restrict
  • reverse
  • reversing
  • review
  • salt
  • same origin
  • sample
  • scripting
  • sdk
  • secure
  • security
  • set
  • setup
  • sharif
  • shortcuts
  • SI
  • signed
  • site
  • snapshot
  • soapui
  • source
  • splitting
  • ssl
  • start
  • static
  • steps
  • stunnel
  • superblock
  • support
  • test
  • thoughts
  • thread
  • tips
  • tool
  • tools
  • tor
  • trace
  • truecrypt
  • tutorial
  • ubuntu
  • umask
  • understand
  • university
  • unsigned
  • video
  • view
  • virgin
  • virtual
  • virtual box
  • virtual machine
  • virtualbox
  • vm
  • watch
  • web
  • web application
  • web service
  • work
  • wsdl
  • xhr
  • xml
  • xss
  • xxe

Blog Archive

  • ▼  2013 (496)
    • ►  November (143)
    • ▼  October (297)
      • Samsung fined $340,000 for online smear campaign a...
      • Google is experimenting with massive banner ads fo...
      • What is your best idea for an invention?!!!
      • Take a ride in a helium balloon to near-space for ...
      • New York City to retrofit 250,000 street lamps wit...
      • Chrome used more than Firefox, Opera and Internet ...
      • Leaked documents reveal NSA spied on the phone con...
      • Self-driving cars projected to reduce injuries by ...
      • Fon makes US debut, hoping to grow the Wi-Fi shari...
      • Japanese restaurant replaces waiters with conveyor...
      • Vine update finally delivers editing and draft mod...
      • Nexus 5 expected to debut October 31 in the US!!!
      • Germany proposes locked-down national internet aft...
      • This modified Lexus paints a unique portrait of it...
      • Moto X and LG G2 now available starting at $99 on-...
      • Comcast offering 25Mbps Internet, local channels a...
      • BlackBerry denies any involvement in questionable ...
      • New Firefox add-on allows you to see how, when and...
      • Samsung turns in another record-setting quarter wi...
      • PlayStation 4 will require a Day One update to ena...
      • Batman: Arkham Origins Review!!!
      • Amazon's trio of biospheres gets two thumbs up fro...
      • Google believed to be constructing a floating data...
      • Understanding Amazon's "profitless" business model!!!
      • World's first Bitcoin ATM to open in Vancouver thi...
      • LG announces G Flex with curved 6-inch display and...
      • SoapUI - Client side cert - Burp
      • The Unthinkable Risks of the Cloud!!!
      • Yahoo Tops Google In Web Traffic Again!!!
      • Yahoo Is Now Actually Beating Google In Traffic. H...
      • The Decline of Wikipedia!!!
      • De Blasio Outlines Plans To Curb New York's iPhone...
      • Apple announces iPad Air, iPad mini with Retina di...
      • Apple refreshes MacBook Pro Retina laptops with Ha...
      • 20 Life Hacks and Tools to Boost Productivity on Y...
      • Best Tablet Computers 2013!!!
      • Gaming Mice Roundup 2013: Corsair, Steelseries, Gi...
      • Google Quantum AI team releases quantum mechanics ...
      • Research team designs and builds a disk drive that...
      • Malware Alert: Downloading the "GTA V PC torrent" ...
      • TSA now starts its security check of passengers be...
      • Apple announces iPad Air, iPad mini with Retina di...
      • Apple refreshes MacBook Pro Retina laptops with Ha...
      • Apple's OS X Mavericks goes live today as a free d...
      • Crysis developer releases free-to-play FPS browser...
      • Microsoft is working on a Google Glass competitor,...
      • BlackBerry's new BBM app sees 5 million downloads ...
      • EA preparing a high-end Battlefield game for mobil...
      • Check out this bullet-time rig that uses 130 HTC O...
      • Nvidia has a Logan-powered Shield 2 console in dev...
      • Windows RT-based Nokia Lumia 2520 to take on the S...
      • Nokia announces 6-inch Lumia 1520, Lumia 1320, and...
      • Nvidia releases GeForce 331.58 WHQL drivers!!!
      • How to recreate the iOS 7 home screen and iPhone h...
      • Digital dating: One in 10 Americans have used an o...
      • John Carmack isn't convinced that Steam Machines w...
      • At least 10 million 'innocent' files destroyed in ...
      • Twitter expected to kill music app after just six ...
      • Leaked Intel roadmap shows Broadwell-K chips to ar...
      • LG reportedly creating its first Chrome OS devices!!!
      • Netflix in position to surpass HBO in paid subscri...
      • Nokia's phablet detailed in leak as Lumia range is...
      • Microsoft pulls Windows 8.1 update for Surface RT ...
      • BlackBerry resumes rollout of BBM for Android and ...
      • Apple expected to reveal retina iPad mini at tomor...
      • Verizon website glitch potentially exposed texting...
      • When Amazon's Customer Reviews Get Ridiculous and ...
      • Dell now accepting pre-orders for Windows 8.1, Bay...
      • Worldeye is the animated globe that offers a reali...
      • When Amazon's Customer Reviews Get Ridiculous (and...
      • Microsoft pulls Windows 8.1 update for Surface RT ...
      • Is Wikipedia for sale? Ubuntu 13.10 is out, Core i...
      • Nvidia bids adieu to V-Sync limitations with G-Syn...
      • Facebook app finally arrives for Windows 8.1 along...
      • repeat post: Windows 8.1 now available through Win...
      • SpaceX Grasshopper rocket launch filmed from aeria...
      • Verizon adds 1.1 million wireless connections duri...
      • Amazon's long-rumored smartphone could arrive via ...
      • Acer's second 8-inch Windows 8 tablet sees improve...
      • Microsoft to host Windows 8.1 'Ask Me Anything' se...
      • Samsung submits proposal to European Commission in...
      • Ireland's Department of Finance considers shutting...
      • AuthenTec co-founder discusses how Touch ID finger...
      • AT&T revealed as Tesla's mobile partner for in-veh...
      • Mapbox goes up against Google Maps with $10M in fu...
      • Motorola's new migration tool can preload the Moto...
      • Nexus 5 briefly appears on Play Store, 16 GB for $...
      • Apple iPhone 5s: The Geekysupport Review!!!
      • Samsung launches free Galaxy S4 battery replacemen...
      • Nvidia GeForce GTX 760 Ti appears as rebranded GTX...
      • Deep Web drug bazaar Silk Road set to become a Hol...
      • Neowin reviews Windows 8.1!!!
      • Nvidia GameStream transforms Shield into a serious...
      • AMD turns a profit in Q3 thanks to custom PS4, Xbo...
      • Elon Musk buys James Bond 'Lotus sub', plans to ma...
      • Security research firm says Apple can read your iM...
      • IsoHunt to shut down, pay MPAA $110 million!!!
      • Sony rolling out PlayStation 4 kiosks at select re...
      • Monthly video game sales rebound thanks to Grand T...
      • Researchers in China use light bulbs as a speedy a...
    • ►  September (51)
    • ►  August (2)
    • ►  March (1)
    • ►  January (2)
  • ►  2012 (16)
    • ►  October (3)
    • ►  September (1)
    • ►  August (4)
    • ►  June (1)
    • ►  May (4)
    • ►  April (2)
    • ►  February (1)
  • ►  2011 (22)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  July (9)
    • ►  June (1)
    • ►  May (2)
    • ►  April (6)
  • ►  2010 (8)
    • ►  August (3)
    • ►  April (2)
    • ►  January (3)
  • ►  2009 (6)
    • ►  December (6)
Powered by Blogger.

About Me

Unknown
View my complete profile