Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Fresh off the boat
PostPosted: Wed Mar 07, 2007 6:21 pm 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
Hi,

This is my first time for everything: this community, forum, Linode.com, VPS etc... I would like to say hi and I definitely need your help, a lot of help. I just bought a Linode 256 VPS plan for hand on learning purpose. I am a webapp developer who does not know much about the system aspect of a server. The closest I've ever come to the system was installing XAMPP on my Windows XP machine. That is IT.

The goal:
1. Configure my VPS
2. Install XAMPP on my VPS
3. Install my webapp.

First thing first. I got my Linode dashboard, it has many choices in there. Would you please guide me to the simplest way to achieve the goal. Make it works first then I will learn more to make it secured, efficient and all that good things. Thanks in advance.

Cheers,
ngungo


Top
   
 Post subject:
PostPosted: Thu Mar 08, 2007 12:00 pm 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
Hello ... anyone ...

I dug up and here what I did:

1. Deploy Debian 3.1 for whole disk space.
2. Use Putty log on to the server with usename: root
3. Download the XAMPP for Linux package use following these commands:
Code:
mkdir downloads
cd /downloads
wget http://www.apachefriends.org/download.php?xampp-linux-1.6.tar.gz
tar xvfz xampp-linux-1.6.tar.gz -C /opt

4. I secured the LAMPP. The installation went fine after few tries. I am pretty happy.
5. I did the ssh keys things but don't know how log in with different name other than root yet.
6. I set up FTP connection and upload my php webapp. It is there, it works but have errors. Don't know why. I've tried to switch between php4 and php5, so far no luck.

I appreciate for your comments here. Thanks in advance.


Top
   
 Post subject:
PostPosted: Thu Mar 08, 2007 5:51 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
ngungo wrote:
It is there, it works but have errors. Don't know why. I've tried to switch between php4 and php5, so far no luck.

You need to frame your questions in such a way that would-be helpers can figure out what is wrong. What errors? What failed when you tried the PHP 4 -> 5 switch?

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Mar 08, 2007 8:58 pm 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
Hi pclissold,

I was kind of confused so what I did was redo it again from the beginning. Then sourceforge server was down so I had to wait.

Anyway I finished the redo but have the same result. Here: http://64.22.71.178/lab/lampp.php The exact same code was working at my local server which has XAMPP set up on a Windows XP, also working at another host: http://56degrees.com/lab/lampp.php

When I view the html source codes of both, they are produced the same. It seems here at Linode it does not pick up the css files.


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 12:28 am 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
thats not a linode thing... thats something u have set up wrong.

Linode isnt responsible for any of your setup.. its entirelly up to you, so i would hesitate a guess to say something else is fubar.. maybe the way it references the css page or something simular

for wat its worth, both pages display the same 4 me

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 1:21 am 
Offline
Senior Newbie

Joined: Thu Mar 01, 2007 5:30 am
Posts: 10
You should consider using Debian's package management system, so there is no need to download and build from source. your config files will also be at appropriate places.


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 1:34 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Lin is right; everything that you need should be already packaged by Debian. This is hands-down the best way for you to approach installing software.

There are tons of guides out there; Google for something like debian webserver setup.


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 1:46 am 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
Internat wrote:
thats not a linode thing... thats something u have set up wrong.
I show that perfectly. As I said on the first post that this is my first time and I want to learn. Is there any procedure written so I can read and achieve my goal?

Quote:
for wat its worth, both pages display the same 4 me
I dont know why they are different with my browsers, IE and FF.


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 3:30 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
lin wrote:
You should consider using Debian's package management system, so there is no need to download and build from source. your config files will also be at appropriate places.

There are no Debian packages for XAMMP. You don't build from source - the whole shebang is pre-built.

ngungo wrote:
Is there any procedure written so I can read and achieve my goal?

It looks as if you have achieved your goal.

ngungo wrote:
Internat wrote:
for wat its worth, both pages display the same 4 me
I dont know why they are different with my browsers, IE and FF.

The pages are identical for me in Firefox 2 and IE 7.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 10:21 am 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
:)
Morning!

OK! I shut it down. Deployed the Debian 3.1 from Distro Wizard.
I found this: http://www.howtoforge.com/ubuntu_debian_lamp_server and followed its instructions. The first one apt-get install update is OK. I got stuck at the second one, apt-get install apache2 php4 libapache2-mod-php4
Code:
Err http://ftp.us.debian.org stable/main libkrb53 1.3.6-2
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main perl-modules 5.8.4-8
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main perl 5.8.4-8
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main libapr0 2.0.54-4
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main apache2-utils 2.0.54-4
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main lynx 2.8.5-2
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main apache-common 1.3.33-6
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main openssl 0.9.7e-3
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main apache2-common 2.0.54-4
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main apache2-mpm-prefork 2.0.54-4
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main apache2 2.0.54-4
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main php4-common 4:4.3.10-15
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main libapache-mod-php4 4:4.3.10-15
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main libapache2-mod-php4 4:4.3.10-15
  404 Not Found [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org stable/main php4 4:4.3.10-15
  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/k/krb5/libkrb53_1.3.6-2_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl-modules_5.8.4-8_all.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/perl/perl_5.8.4-8_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache2/libapr0_2.0.54-4_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2-utils_2.0.54-4_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/l/lynx/lynx_2.8.5-2_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache/apache-common_1.3.33-6_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_0.9.7e-3_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2-common_2.0.54-4_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2-mpm-prefork_2.0.54-4_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2_2.0.54-4_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/php4/php4-common_4.3.10-15_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/php4/libapache-mod-php4_4.3.10-15_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/php4/libapache2-mod-php4_4.3.10-15_i386.deb  404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/php4/php4_4.3.10-15_all.deb  404 Not Found [IP: 128.101.240.212 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
li15-178:~#


Question: Am I on the right direction? Just that the ftp site is down for the moment, and I should try it again in later time?
Any hint is appreciated!


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2007 2:08 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Yes, you're definitely in the right direction!

I think the only problem is that the image's information about the repositories is out of date. The first step before installing a packages is usually to run:
Code:
apt-get update

which will fetch the latest information about available packages from the repositories.

It looks like what's happening here is that your machine is expecting to find particular versions of packages which have been updated (patched for security reasons).


Top
   
 Post subject:
PostPosted: Sat Mar 10, 2007 10:32 am 
Offline
Senior Newbie

Joined: Wed Mar 07, 2007 3:34 pm
Posts: 6
Thanks for your kindness. I appreciate your help.


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 3:20 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Please please please never ever install something like xampp ever again.


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 7:47 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
OverlordQ wrote:
Please please please never ever install something like xampp ever again.


I'm unfamiliar with xampp, could you (briefly) explain why not? And like it in what way, since I don't know about it at all.

James


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2007 1:12 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
xammp is pre-packaged AMP for LAMP - intended for use in a development environment - a single gunzip and you're good to go.

From their website:
apache friends wrote:
The philosophy behind XAMPP is to build an easy to install distribution for developers to get into the world of Apache. To make it convenient for developers XAMPP is configured with all features turned on.


It's not suitable for putting on a machine that's connected to the Internet - one mistake with the firewall and you're hacked for sure - and you're probably a goner anyway - it's got PHP in it without much attention to security.

_________________
/ Peter


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group