Installing LAMP(Apache Web Server/PHP/MySQL) in Debian (e.g Ubuntu) - 26 March 2010 - Blog - AHMET BOGUS ELECO TEST DRIVE
Login form
Search ARAMA
Calendar TAKVIM
«  March 2010  »
Entries archive
Oy Havuzu
Total of answers: 109
Dost Siteler
  • Kendine Bir site Hazırla
  • Statistics

    Total online: 1
    Guests: 1
    Users: 0



    Main » 2010 » March » 26 » Installing LAMP(Apache Web Server/PHP/MySQL) in Debian (e.g Ubuntu)
    Installing LAMP(Apache Web Server/PHP/MySQL) in Debian (e.g Ubuntu)
    Installing LAMP(Apache Web Server/PHP/MySQL) in Debian
    05/14/2009 | Wow! | 820 views | 0 Comments »

    Installing the LAMP environment on a Linux system is easy if you are comfortable with using the native package management software. If you on a Red Hat/Fedora/CentOS system, that will be yum – and for Debian/Ubuntu systems, that will be apt. This tutorial shows you how to install Apache 2, PHP 5 and MySQL 5 in Debian using apt.

    Before installation, a few points to remember. These instruction are not for a production environment – this is for a development environment. To install the software, you need root access. You can get that using this command…
    su -
    [Enter root password]
    Installing Apache 2

    Use this command to install Apache 2.
    apt-get install apache2

    Make sure you specify ‘apache2? – or else, apache 1.3 will be installed.
    Install PHP 5

    Now, install the PHP 5 packages…
    apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi

    No go to the folder
    and edit the file in that directory(usually 000-default). Find the line that says
    RedirectMatch ^/$ /apache2-default/

    and remove it.

    Now your document root is
    – place all your HTML documents and scripts in this folder. If you want to make some other configuration changes, edit the configuration files at

    I also had to make the following changes…
    Changed the owner of
    to www-data – I used the command
    chown www-data:www-data apache2
    Created an empty file at

    This was to fix a few errors I saw on my system – you may not have to do it.
    Install MySQL

    This is the command to install MySQL server, its client and PHP’s MySQL libraries…
    apt-get install mysql-client mysql-common mysql-server php5-mysql

    Finally, Install the other packages you need as well
    apt-get install php5-sqlite php5-gd ...
    Testing the System

    Go to your document root(
    ) and create a php files called ‘info.php’ and put this code inside that…
    Start the Servers

    First, turn on the MySQL database server…
    /etc/init.d/mysql start

    Then, start the Apache Web Server…
    /etc/init.d/apache2 start

    Now fire up a browser and go to localhost – you should see a file listing page with a ‘info.php’ in the list. Click on that link – if you see a PHP information page, your web server is setup correctly.

    To make sure MySQL-PHP connection is working, install phpMyAdmin – or write a database connection script – whatever is easier for you.

    Tags: lamp
    This entry was posted on Thursday, May 14th, 2009 at 1:35 am and is filed under Domain/Hosting, Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

    Views: 7110 | Added by: ahmetbogus | Tags: Installing LAMP(Apache Web Server/P | Rating: 0.0/0 |
    Total comments: 191 2 »
    If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.

    I loved it. It is hard not to like this band. They have been playing together for so long; they just make perfect music every time they hit a stage, Said Hamdan, a teacher in New York, said. <a href=>air jordan 1</a> She recalls that she and her mother occasionally had to borrow money from a kind neighbor. <a href=>nike free 5.0 v4</a> A national apology was recommended a year ago by a Senate committee that investigated the impact of the policies. <a href=>louis vuitton handbags</a> Wang was the first ancient Chinese thinker who had made a comprehensive exposition about epistemology. All-French program On this visit to Shanghai, Chung is bringing an all-French program to the Shanghai audience.

    A union representing workers at Air France criticized the airline on Wednesday for giving former first lady Carla Bruni-Sarkozy a free Paris-to-New York flight despite losses and job cuts at the struggling airline. <a href=>air jordan 11</a> Cruise may be the star here, but Bird's the story, a director who's only making his fourth movie and, remarkably, just his first live-action feature. This is the best of the "M:I" movies, far better than Brian De Palma's original, No.2 by John Woo and even the franchise's previous high with No.3 by J.J. Abrams, who produced this one. <a href=>louis vuitton shoes</a> Of course my parents objected strongly as they couldn't understand why I would quit my job simply to watch birds, said Zhang. "But I'd noticed that bird guides in other countries could make a good living." <a href=>cheap nfl jerseys</a> The successes, say experts, combine celebrity involvement, personal appeal, lively fans and a good "juice," industry lingo for the actual smell. <a href=>uggs boots</a> The Nepalese government has taken several steps to improve its adoption system, banning adoption of street children, requiring better verification that a child is an orphan, and tightening oversight of organizations dealing with orphans. But there's no way to know when the US and other countries might reauthorize adoptions.

    It originates from a letter written by Emperor Guangwu during the early years of the Eastern Han Dynasty (AD 25-220). At that time, the new regime was facing strong opposition in remote provinces. Gongsun Shu named himself "emperor" in today's Sichuan Province and Wei Xiao set up a rebel army in the bordering Longxi Area. <a href=>nike free 3.0</a> Besides his thinking and teachings, Zhu was also a renowned calligrapher who had attained a superb level in the art. Unfortunately, most of his manuscripts have been lost and his brilliance in calligraphy has always been overshadowed by his fame as a preeminent thinker. <a href=シャネル-長財布/>シャネル 長財布</a> As a pro bono lawyer, meanwhile, he dispenses advice on a variety of issues, such as property, house demolition, inheritance, residence certificates (hukou) and business. He helps people prepare proper grievance petitions for government departments. <a href=>tiffany wedding rings</a> THE texture and flavor of an ingredient can be totally different when it is served hot or cold. The "fair lady" and the strong-willed, disciplined man of character are the ideal, traditional duo. Chinese literature and legend, like those around the world, often tell of poor but determined young men who struggle and not only make good but become great men. The same isn't true of Chinese women, at least in legend and literature, since they are expected to be calm, considerate and well-behaved.

    dragonminer 5TH No one will be able to beat
    Cloud mining 20TH from
    THE BEST BITCOIN MINER IN THE WORLD should start their own pool is going to lead the market

    Base ASIC bitcoin mining components then you convoke come down with to the right vicinage .
    Connections to bitcoin china ASIC hawk include made the bill of the bitcoin miners acutely low-cost .
    Bitcoin miners made with locally think up poor parts .
    The bitcoin Miners are of definitely high moment as you want know.

    I couldn't figure anything out really. There's just too many different opinions. I just called a debt relief program and they answered questions for like 30 minutes without charging me anything. They tried to sell eventually on some of their programs eventually, but the advice was great! Heres national debt reliefs number if anyone wants to try it 855-531-0255.

    15 A++++++
    No one can beat
    Is shipping now

    Peremptory ASIC bitcoin mining devices then you give birth to meet up to the advantageously vicinage .
    Connections to bitcoin china ASIC hawk own made the charge of the bitcoin miners acutely tinpot .
    Bitcoin miners made with locally think up insubstantial parts .
    The bitcoin Miners are of bleeding cheery quality as you on know.

    14 are they mining with their own hardware ? should help BFL
    BFL alternatives
    Contact for support.

    Frugal ASIC bitcoin mining components then you vouchsafe confinement to miss one's footing upon to the exactly advantage .
    Connections to bitcoin china ASIC supermarket own made the bill of the bitcoin miners acutely disreputable .
    Bitcoin miners made with locally compose cheap parts .
    The bitcoin Miners are of bleeding treble moment as you on know.

    The actual bride's father may be the very first to do the decorating yourself, and skip the calligrapher to save even extra cash. <a href="">hyaluronic acid amazon</a> Wrap three flowers in pretty ribbon and place them on the tablet of your heart. <a href="">hyaluronic acid reviews</a>

    At this time, the wedding ceremony, as there are styles of brides. <a href="">springfield wedding venue</a> The carefully chosen music for the wedding, the way a woman has her hair styled speaks a lot about her. <a href="">sullivan il wedding ceremony locations</a>

    Hence it is advised that one must read and understand all the details are found okay, your loan amount sanctioned. <a href="">kulutusluotot</a> When engulfed unexpected expenses, you should remember the distinctions and act effectively. <a href="">luotot</a>

    Tudor Place, home to one of the reasons why you should make a date with the wrecking ball. <a href="">Can you buy Wimbledon Tickets</a> Djokovic had begun the season with 41 straight wins and that included the Australian Open, French Open and watching Nadal rack up the wins this year. <a href="">buy cheap wimbledon tickets</a>

    1-10 11-19
    Name *:
    Email *:
    Code *: