Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

LAMP stack on my computer

  Date: Nov 29    Category: Unix / Linux / Ubuntu    Views: 1528
  

I installed the LAMP stack on my computer yesterday and from what I can tell it
seems to be working now but I don't know how to reconfigure Apache to use a
virtual host in my home folder. I have a book on PHP now and want to work
through that but want to do it all from my home folder if possible.

I have looked at the details in the web-site but could not get it going from
that:

<excerpt>


To create a new site:
* Copy the default website as a starting point. sudo cp
/etc/apache2/sites-available/default /etc/apache2/sites-available/mysite
* Edit the new configuration file in a text editor "sudo nano" on the command
line or "gksudo gedit", for example: gksudo gedit
/etc/apache2/sites-available/mysite
* Change the DocumentRoot to point to the new location. For example,
/home/user/public_html/
* Change the Directory directive, replace <Directory /var/www/> to <Directory
/home/user/public_html/>
* You can also set separate logs for each site. To do this, change the ErrorLog
and CustomLog directives. This is optional, but handy if you have many sites
* Save the file </excerpt>

Share: 

 

4 Answers Found

 
Answer #1    Answered On: Nov 29    

Recently, I had some help installing Ubuntu 10.4.1 onto my laptop. It seems to
be working fine.

I have a goal of developing a website on the laptop and from what I understand I
need Linux, Apache, Mysql, and PHP to be operational so that I can create a
website. I am not a much of a linux user so I am wondering if someone can
suggest the best and easiest way to download LAMP and make them operational so
that I can move on to creating my website?

 
Answer #2    Answered On: Nov 29    

It's pretty easy to just install apache2, mysql, php on ubuntu. In the
ubuntu server install there is a "LAMP" option, but they probably don't
have that option on the desktop install.

So, you can just go to system->administration->synaptic package manager
and search for apache2, php, and mysql, select each of them, then click
on the "apply" button to install them.

 
Answer #3    Answered On: Nov 29    

you only need those things if you want a fancy PHP website,
old fashioned websites just need an editor like NVU or Kompozer,
you have the master copy on your laptop,
then upload the HTML pages and images to a server using FTP.

 
Answer #4    Answered On: Nov 29    

If you install Apache, you can test your web page before you upload it anywhere.

if you already know HTML, PHP and SQL, LAMP is a good choice. Otherwise,
you have an enormous learning curve in front of you. You can set up a nice web
site with Kompozer, without having to get into the nuts and bolts of coding.

HTML, PHP and SQL is equivalent to learning to write programs in C...

 
Didn't find what you were looking for? Find more on LAMP stack on my computer Or get search suggestion and latest updates.




Tagged: