Fresh off the boat
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
17 Replies
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
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
5. I did the ssh keys things
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.
@ngungo:
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?
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:
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.
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
There are tons of guides out there; Google for something like debian webserver setup.
@Internat:
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?
> for wat its worth, both pages display the same 4 me
I dont know why they are different with my browsers, IE and FF.
@lin:
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:
Is there any procedure written so I can read and achieve my goal?
It looks as if you have achieved your goal.
@ngungo:
@Internat: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.
Morning!
OK! I shut it down. Deployed the Debian 3.1 from Distro Wizard.
I found this:
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!
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:
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).
@OverlordQ:
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
From their website:@apache friends:
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.
@pclissold:
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.
As well, normal distribution packages get updated whenever a security hole is found. This wouldn't happen with xampp, you'd be left with an old insecure version. This is something you definitely do not want with apache/php, etc., as they are likely the most frequently targeted part of your system.
> 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.
The default configuration is not good from a securtiy point of view and it's not secure enough for a production environment - please don't use XAMPP in such environment.
…xampp's main goal is to make an easy to install LAMP(P) development environment for php/perl developers. As others have mentioned, they keep security very lax as to not hinder development.
* install in a secure environment
do some testing
uninstall it
Their website makes a big deal of how easy it is to uninstall.