Link to home
Create AccountLog in
Avatar of n8dog
n8dog

asked on

WebServer Setup...?

OK here goes -

I had to change from my web-host due to limitations, but ive not done ANY linux admin work in over 3 years - so im way rusty.
I've spent 3 full weeks writing a plethora of Web-apps in php and was ready to launch tomorrow.. BUT... the host switch occurred.

So....
Ive got a new Virtual Private with CentOS 4.3, and a root account....

I need to:

 setup an admin account
 setup an FTP account under that admin acct
 upgrade PHP to 4.4.4
 install IMAP Courier daemon
 install PHP modules

..and generallly get this thing working, get it secure, and get myself back up to speed in a super hurry.

Can someone help me out?

-n8
Avatar of collins23
collins23

use SuSE not CentOS but this could be worth the while

http://michael-and-mary.net/node/1261


http://www.howtoforge.com/perfect_setup_centos_4.3

or you could simple visit the site
rpmseek.com and search for the packages you need for your exact CentOS version (4.3) and just install.

hope this helps


Avatar of n8dog

ASKER

well, im not able to choose outside of CentOS.. its setup already -

but im at the basic standpoint of not being able to FTP.. an FTP daemon is installed.. but .. beyond that. im stuck.

-n
so ftpd is already installed. from the linux computer when you type "telnet localhost 21" do you get a response ? if you get something like connection refused then the ftp daemon is not running, you have to start it first.


where are you trying to ftp from anyway ? a windows computer ? have you tried using something like "winscp" for windows.

also try "telnet linux_computer 21" from windows computer ( ofcourse if windows )
Avatar of n8dog

ASKER

im SSH'd into the box..

ftp is installed, and running, but beyond that i dont know..

-n
ok, first things first

what will you be using the ftp for ? ( transferring files from where to the linux box ) ?
n8dog,

Is the CentOS server entirely in your control, ie. is it a co-location server where only your domains will be hosted, or is it some kind of shared setup where you only have "jailed" access?

Do your have proper root access?

For ftp: if this is only for you and only to get files to and from the server, then don't bother with ftp, use sftp(ftps) or scp instead. sftp is already working since you can ssh into the box. it works exactly like ftp, but just tunnels over ssh.

If you work from a Windows box, download the ssh client from ssh.com ( you can use the non-commercial version ) and then you will have a graphical sftp client that works exactly like any other ftp client you have seen before. From linux, most of the free ftp clients like gftp can sun in "ssh mode" allowing you to connect via ssh. The only requirement is that you have a valid user setup on the CentOS box that properly maps to the correct home folder with correct write permissions. If you need to transfer files from example /var/www/html/website1, then create a user "web_user1" as follow:

adduser web_user1 -d /var/www/html/website1
passwd web_user1

Then, if you sftp into CentOs with those details, it will take you straight to that folder.

 For the installation of the other software you can use yum (if you have root access)

the syntax is as follow:

yum install packagename

or for updates:

yum update

You may also use wildcards:

yum install php4.4*

Use the following command to first see what is installed:

rpm -qa | grep packagename (rpm -qa | grep php -> will return all rpm packages installed with php in it's name)

if that shows you that php4.1 is installed alreay, you may choose to just update php by saying:

yum update php*

Similarly, you can install Courier with:
yum install courier*
Avatar of n8dog

ASKER

i am really linux rusty, so i appreciate the help greatly. -

ive got a virtual dedicated, which essentially means i have 100% control over my environment.

i have root.. but i cant ftp in, though ProFTP is running...
php is apparently installed, though not running as phpinfo() wont produce anything...

ive read through the httpd.conf and not seen any php modules listed - though im not sure where they are suppose to be listed, or if PHP runs as a daemon...

mysql is installed....

phpmyadmin is installed.. though useless without php running :)

ive gotta set up DNS...

-n

Avatar of n8dog

ASKER

first i need to get the environment setup...

second, i need to ensure proper security is in place....

third, i need to get access/ftp to the box


im 100% open to instruction here - i'll pick it up quick

-n

Avatar of giltjr
I suggest that you look at scp (secured/ssh copy) instead of ftp if at all possible.  scp is more secure (use ssh session to encrypt the session) and allows recursive copy of directories.
ASKER CERTIFIED SOLUTION
Avatar of ssvl
ssvl
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer