LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2007, 06:17 PM   #1
Doctor22
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu and some others
Posts: 7

Rep: Reputation: 0
Unhappy problems with setting linux home server


hi there everyone;

this is my first post if i do break any rules let me know.

i am trying to set up this server at home where i am partially successful. i have tried to install centos and after about 28 attempts to installing failure, i have given up. instead, i have installed ubuntu server and add gnome on the top. now the problem that i am having is that when i run xampp server, some php configurations files needed to be over written (joomla CMS needs to overwrite its config file on install), but it is not doing it so.

i have used chmod 777 /opt but its seems to be not making any good. i have then run chmod -R rwx /opt for the group and it hasnt improved anything.

so what i want to do is that i want to be able to make everything under /opt directory to have full access (mean read/write/execute) for my user name as i cant set root to auto logon on start up.

i am not thinking that may be i should go for SLAX as my server distro but i am not sure after all this config set-up i don’t want to wipe out everything and restart. can you please help me on this i am really trying to get this going.

thanks alot....

btw what linux distro would you people recommend for server installation.
 
Old 04-03-2007, 01:50 AM   #2
Manana
Member
 
Registered: Dec 2005
Distribution: Ubuntu,Debian
Posts: 41

Rep: Reputation: 15
If you want to make everything rwx for everybody under /opt what you do is this:
chmod -R 777 /opt

Now anybody with an account can do anything under /opt, this is not recommended but you can start with this and then make it more secure when its working. For example, to just make it rwx for the owner of /opt you do this:
chmod -R 700 /opt

When it comes to choosing distro my opinion is that ubuntu is one of the more userfriendly ones and a great first distro, i wouldnt be here without it
But the next person will tell you some other distro is superior so you need to just choose one and stick with it.
Preferably choose one your friends are running so you can ask them when you get stuck

Good Luck!
 
Old 04-03-2007, 01:51 AM   #3
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
Quote:
some php configurations files needed to be over written (joomla CMS needs to overwrite its config file on install), but it is not doing it so.
which file? have you tried manually changing that file? Does that work?
chmod 777 on a directory is generally a bad idea. Except for where it's necessary, which isn't the case here.
Ubuntu sounds like the right distribution for you. Don't go and install a completely new system because of a minor permission issue! It won't be any easier with slax, that's for sure.
 
Old 04-03-2007, 04:01 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
make the config file writable for the web user
chmod 0777 joomlaconf.php
(or whatever this is named)
 
Old 04-03-2007, 01:09 PM   #5
Doctor22
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu and some others
Posts: 7

Original Poster
Rep: Reputation: 0
yeah guys thanks allot its working just fine now. i am a bit confused that why it didnt do it when i done at the first time but ooh well.

so does it mean that from now on every time i add a script under /opt do i have to issue command;

chmod -R 777 <directory_path>

thanks for your help guys you are all a star...
 
Old 04-04-2007, 08:25 AM   #6
Manana
Member
 
Registered: Dec 2005
Distribution: Ubuntu,Debian
Posts: 41

Rep: Reputation: 15
Like "baikonur" said from a security point of view "chmod -R 777 <dir>" is a bad idea.
Now that you got it working you should try to set the permissions only on the files that need to be accessed.
Try to make your system as safe as possible by setting your permissions so as few as possible can access your files, its a bit more work but its totally worth it.

Good Luck!
 
Old 04-05-2007, 05:52 AM   #7
Doctor22
LQ Newbie
 
Registered: Apr 2007
Distribution: Ubuntu and some others
Posts: 7

Original Poster
Rep: Reputation: 0
thanks alot guys foryour help. i can now confidently say that this issue is resolved.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up home server brianhall Linux - General 3 05-20-2006 10:51 PM
Setting up a Linux home server slash587 Linux - Networking 3 03-19-2006 01:57 AM
Setting up a home server Nader1 Linux - Networking 5 12-19-2005 10:03 AM
Setting up server from home joeman3429 Linux - Networking 10 11-06-2005 03:51 AM
Setting up a web server from home edrabs Linux - Software 12 12-05-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration