ICTNUT Posted May 22, 2007 Posted May 22, 2007 Hi All, Having never used Ubuntu before I ahve done a standard LAMP install on VMServer and can access the default website. I have 4 websites I need to port across so can anyone tell me where the webserver default web directory can be found.....? and is it a case of simply adding the folder within that directory and they become visible??
webman Posted May 22, 2007 Posted May 22, 2007 /var/www Apache config is /etc/apache2/sites-enabled/000-default
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 Many thanks webman, I may come back to you for some more advice as I am installing moodle, wish me luck ;-)
rush_tech Posted May 22, 2007 Posted May 22, 2007 Hi I'm a newbie when it comes to ubuntu, i've installed ubuntu server and Xampp . Xampp is installed in /opt/lampp and I'm trying to get joomla up and running. I've put the joomla site in /opt/lampp/htdocs/public, fine with that. How do I open a Text Doument in the terminal window to edit the httpd.conf as Root :?
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 For editing any of the files your best bet id to download PUTTY and WinSCP. Putty will allow you to remote into the box via a terminal windows and WinSCP will allow you to transfer files back and forth.
CyberNerd Posted May 22, 2007 Posted May 22, 2007 sudo nano /path/to/file or replace nano with another editor, vi,emacs,jmacs etc
webman Posted May 22, 2007 Posted May 22, 2007 Bare in mind that by default the root account is disabled in Ubuntu, so won't be able to transfer/edit files as root via WinSCP.
rush_tech Posted May 22, 2007 Posted May 22, 2007 Cheers for the replies I will look at putty and winscp @cybernerd that works a treat - i spent ages tryin to find that out yesterday. Post on here answer within 20 mins I have the answer. This place is great No doubt I will be back to this thread
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 OK @webman, how do you get it so you can transfer files via WinSCP as root. I have checked the WinSCP forums and tried the suggestions but no joy.
plexer Posted May 22, 2007 Posted May 22, 2007 In order to use Winscp to transfer files as root you would need to enable the root account or give another account similar priveleges without needing to sudo as you can't sudo with winscp. Ben
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 How would I enable my account (on ubuntu) to have root privs??
webman Posted May 22, 2007 Posted May 22, 2007 You'd need to give the appropriate permissions to the user who you are logging in as on the directory where you want to upload to. Eg, $ chmod 770 /var/www $ chown www-data:admin /var/www Which will give read/write/execute permissions to www-data (apache) and anyone in the 'admin' group - user 'admin' by default. Or, to just enable the root account: $ sudo passwd root
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 Right back again, I have mooddle installed and working yey! Now I want to do the LADP auth thing and wanted to know what LDAP fields people have used to data map to moodle?? The fields I am looking at are: Firstname Surname Email all others are locked out as they are not required.
Geoff Posted May 22, 2007 Posted May 22, 2007 It depends what the LDAP schema is. I use AD here, so have the following values: Firstname = givenName Surname = sn Email address = mail Phone 1 = telephoneNumber Phone 2 = otherPhone Department = physicalDeliveryOfficeName Address = streetAddress City/town = l Country = c Description = title ID Number = description
Wizzer Posted May 22, 2007 Posted May 22, 2007 I use AD on Server 2003 and have the same settings as Geoff for First name and Surname but use userPrincipleName for email.
ICTNUT Posted May 22, 2007 Author Posted May 22, 2007 @Geoff and @Wizzer, Thanks for the pointers, moodle setup and working now for the classes. Cheers All ;-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now