PDA

View Full Version : stupid question? complete neewbie.


Kev King
1st May 2008, 23:19
Have recently got a server. It came pre set up with centos, as per my request.

Can connect to it via putty and ftp, and have upped some stuff to load up and run.

Now comes the stupid question, how do i run the scripts to run these packages. I cannot access it via my web browser for some reason, even tho a connection is made via putty. I have not transfered my domain yet, but that shouldnt make any difference. I can access the root, but dont know what to do?:confused:

Is there a way of seeing what is installed, a desktop veiw would be handy.

I guess thats the trouble with us being brought up on windows, its all too easy.

I really want to learn this stuff, it beats my day job.

Any help would be very much appreciated, or just a pointer in the right direction!!!

zcworld
2nd May 2008, 09:50
ok you got a server and you want a desktop on it personal BADD move
less stuff you dont need running / installed the better :)
less stuff to update in the end and remember about

ow comes the stupid question, how do i run the scripts to run these packages.

like programs or web scripts
or something else

im lost there

i just got home from work : so ... im not with it fully yet

falko
2nd May 2008, 16:52
Have recently got a server. It came pre set up with centos, as per my request.

Can connect to it via putty and ftp, and have upped some stuff to load up and run.

Now comes the stupid question, how do i run the scripts to run these packages.
What scripts?

I think the easiest way to get up and running is follow this tutorial: http://www.howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig
and then install ISPConfig on it.

Kev King
3rd May 2008, 00:17
Thankyou falko

got stuck at step 8 quota. No etc/fstab and /dev/VolGroup00/LogVol00 directories. etc and dev are there but not the sub-directories. I think its because i skipped the first couple of install pages, because centos was already installed, didnt think i needed to. But obviously not as you have done in your tutorial.

Wondering wether to do a clean reinstall, but that sounds pretty duanting.:(

falko
3rd May 2008, 21:28
It's /etc/fstab, not etc/fstab.

Kev King
4th May 2008, 01:24
Sorry to be a pain, but I got the following warning after running vi /etc/fstab

E325: ATTENTION
Found a swap file by the name "/etc/.fstab.swp"
owned by: root dated: Fri May 2 21:14:42 2008
file name: /etc/fstab
modified: YES
user name: xxxx host name: xxxxxxxxxxxxxxxxxxxxxxx
process ID: 2528
While opening file "/etc/fstab"
dated: Sat May 3 23:08:18 2008
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/fstab"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/.fstab.swp"
to avoid this message.
"/etc/fstab" 9L, 704C
Press ENTER or type command to continue

not sure what to do, dont want to do more damage than good, any advice?

Kev King
4th May 2008, 10:15
details of /etc/fstab

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-hdc2 swap swap defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

falko
4th May 2008, 19:11
Run
rm -f /etc/.fstab.swp
and then try to edit /etc/fstab again.

Kev King
5th May 2008, 23:58
Cheers falko your a star, I seem to have moved forward a bit now, well somethings working ha ha. But...........

[root@hosted-by ~]# touch /aquota.user /aquota.group
[root@hosted-by ~]# chmod 600 /aquota.*
[root@hosted-by ~]# mount -o remount /
[root@hosted-by ~]# quotacheck -avugm
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hdc3 [/] \

should this stage take long it seems to have been running for at least half an hour?

Kev King
6th May 2008, 00:22
Ignore that last post it all went thru ok, I think.

quotacheck: Scanning /dev/hdc3 [/] done
quotacheck: Checked 12361 directories and 103949 files
[root@hosted-by ~]# quotaon -avug
/dev/hdc3 [/]: group quotas turned on
/dev/hdc3 [/]: user quotas turned on

Kev King
6th May 2008, 01:49
A very big thankyou, got to the end and it all works, I think.

The only problem I have is that when I ran the password setup for mysql I must of hit some keys by mistake and dont have access to mysql. Is there a password reset facility or do I need to uninstall and reset it up.

Once again a big thankyou, I aint a computer programmer but I have got some basic knowledge, but I feel very satisfied after setting all that up.

falko
6th May 2008, 17:13
Take a look here: http://www.howtoforge.com/reset-forgotten-mysql-root-password

Kev King
7th May 2008, 12:35
Thankyou again falko, I did find that after I posted my question, should of updated my post. And more importantly took the time to do a little searching.