Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old February 1st, 2008   #1
RadiationHazard
Dipped in Ubuntu
 
Join Date: Nov 2007
Beans: 638
Smile [SOLVED] How To: Setup LAMP server on Ubuntu(and phpbb3)

Ok, this if my first how to. So if i do something wrong just tell me I will try and fix it.

Ok, so for starters the whole reason I'm writing this how too is because i just installed a LAMP server onto my box and phpbb. And I had a really hard time with it because i was trying to follow other sites tutorials and they used terminal. Now don't get me wrong i love terminal and have nothing at all against it. but i learned the hard way that you should check synaptic package manager and add/remove programs first. because if you use synaptic or add/remove you're ensured that the packages will be installed correctly unlike with the terminal where it's easier for you to mess up somewhere.

So back to setting up your LAMP server. Got to System>Administration>Synaptic Package Manager. Then put in your password and when it comes up go to Edit>Mark Packages by Task... then it will open up something that looks like this


(click picture to enlarge.)

Now mark "LAMP server" as you can see I've done. Click Ok. then click apply. It will install the packages. While it's installing something should pop up asking you to set your mysql password. Make sure to set it as something that you will remember. When it gets done to make sure everything is installed correctly and working the way it should go to

http://localhost/

Now that should take you to your Apache Directory. Now if everything is working right go to Synaptic Package Manager again (System>Administration>Synaptic Package Manager)
and now search "phpmyadmin" but without the quotes. One package should pop up.


(click picture to enlarge.)

Mark the package for installation and then click Apply. Once that is done installing to to

http://localhost/phpmyadmin

and it should take you to this page


(click picture to enlarge.)

Now, for the username it should be "root". and then password is whatever you set your mysql password as remember I told you to remember that you'd be needing it!
ha ha. So any ways. Once you are logged in go to "Privileges" Then go to "Add a new User" in the "User name:" put whatever you'd like your username to be. Something that's easy for you to remember. then for the "Host:" click the drop down box and select "Local" it should also put "localhost" in the black. Then for the password type the same password you used earlier or one that you'll remember and then retype it. Where it says "Database for user" select the option that says "Create database with same name and grant all privileges" once you're done scroll all the way to the bottom and in the bottom right hand corner there is a button that says "Go" click it. It should take you to a new page and on that page it should say something along the lines of "New User Added." or something like that.

Now that we're done with that click here to download phpbb 3.

for the options click "Save to Disk" and then ok. Save it to your desktop if it does not do that already. When it is done downloading extract the package to your desktop.

Now go to the terminal and type in

Code:
sudo nautilus
this will bring up a window that looks like this...


(click picture to enlarge.)

Now click File System then open the folder in there called "var" and then the folder in there called "www" there should be a folder in there that says Apache-2 or something along those lines. Delete it. you don't need. That is not actually your Apache. It's just the index file that comes with it.


Now on to setting up phpbb3. Go to he folder that you downloaded. Extract it to you desktop and then enter this command into the terminal again if you've already closed that window that had opened

Code:
sudo nautilus
then go to your severs folder. (File System>var>www) and open the phpbb3 folder, copy all the folders that are in it and cut and paste them into your servers folder. Now minimize all that and open your browser and go to http://localhost/ again and it should bring you to the phpbb3 installation page. Now click the install tab. It will take you to the introduction then go to the requirements. If you did everything right you will meet the requirements so scroll down to click the button at the bottom and continue to Database Settings. For the "Database server hostname or DSN:" put "localhost" then for the "Database server port:" just leave it blank. You don't need to file that in. Then for the "Database name:" and the "Database username:" put the name that you mad in phpmyadmin that i told you to remember. now for the password put the password that you made in phpmyadmin. Now that you're done filling all that out click proceed to next step. Put in your administration details. That's all up to you. Now that you've set up the administrative stuff you come to the spot where it says download config.php file. download that file to your desktop. Go to you desktop cut it and past the file in your servers root folder(www folder) a pop up will come up saying that there is already a file in that folder with at name it will give you the options of skip or replace. Select replace. Now close that file. Unminimze your browser and click done. Now for the rest of the set up it's just pereference. The way it is set was fine for me and will probably be fine for you too,

Now that you're done with the set up. Open your terminal again and type the

Code:
sudo nautilus
in one last time to complete the set up. Go to your servers folder.(File System>var>www) and delete the folder that says install. Now close that window and you're done. Phpbb3 in now completely installed. you're free to edit it and make it like you want. Enjoy your new site and please post feed back on this. Sorry if it's not the best how to but at least i tried right?



-RadiationHazard

Last edited by RadiationHazard; February 1st, 2008 at 02:04 AM..
RadiationHazard is offline   Reply With Quote
Old February 1st, 2008   #2
RadiationHazard
Dipped in Ubuntu
 
Join Date: Nov 2007
Beans: 638
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

is this a bad how too or something?
RadiationHazard is offline   Reply With Quote
Old February 2nd, 2008   #3
deeef
First Cup of Ubuntu
 
Join Date: Feb 2008
Beans: 1
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

hey, its a good tutorial, I just followed it to install LAMP on my new ubuntu desktop.

thanks
deeef is offline   Reply With Quote
Old February 2nd, 2008   #4
JoshuaRL
Chocolate Ubuntu Mocha Blend
 
JoshuaRL's Avatar
 
Join Date: Nov 2007
Beans: 1,808
Ubuntu 9.10 Karmic Koala
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

Sweet dude. You might repost it in this forum for more traffic of those who know about it:

http://ubuntuforums.org/forumdisplay.php?f=7
JoshuaRL is offline   Reply With Quote
Old February 18th, 2008   #5
jackwhite
5 Cups of Ubuntu
 
Join Date: Jun 2005
Beans: 32
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

weird. When i go to Synaptic and do the following:
Code:
>System
>Administration
>Synaptic Package Manager.
>Edit
>Mark Packages by Task
I am only presented with two options: 'Print server' and 'Ubuntu desktop'.

Both are greyed out and cannot be unselected or even installed (presumably because they're already installed).

Any ideas?
jackwhite is offline   Reply With Quote
Old February 18th, 2008   #6
om1
A Carafe of Ubuntu
 
om1's Avatar
 
Join Date: Mar 2007
Location: Carnesville, Ga, US
Beans: 148
Ubuntu 9.04 Jaunty Jackalope
Send a message via ICQ to om1
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

one thing you could change... not that it is wrong... instead of opening terminal and typing sudo nautilus you could press alt+F2 and type gksudo nautilus and press enter... then type your password and boom root nautilus
om1 is offline   Reply With Quote
Old February 18th, 2008   #7
jackwhite
5 Cups of Ubuntu
 
Join Date: Jun 2005
Beans: 32
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

Ok, I see that this was also posted to another area where there's been some discussion: V

I'll repost my query to there.
jackwhite is offline   Reply With Quote
Old February 20th, 2008   #8
Rock`
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 8
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

Hey guys,

I install Apache/mysql/php/phpmyadmin seperately using sudo apt-get install, LAMP is ticked already in the edit > mark tasks part.

My question is this, when going to localhost, I can get to the apache directory just fine, however, I can't get into phpmyadmin, it says it doesn't exist, although ubuntu says the package is installed.

Any ideas?
Rock` is offline   Reply With Quote
Old February 23rd, 2008   #9
BrentC
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 30
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

My problem is after everything is setup, I can't view an page as a PHP enabled page.

ie; It just shows the php code, rather than the GUI that should show up on those phpBB3 pages.
BrentC is offline   Reply With Quote
Old February 24th, 2008   #10
Usta_AsH
Just Give Me the Beans!
 
Join Date: May 2007
Beans: 59
Re: How To: Setup LAMP server on Ubuntu(and phpbb3)

Site error: the file xxxx requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.
Usta_AsH is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:15 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry