![]() |
INSTALLING ON LINUX- DESPERATE - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: INSTALLING ON LINUX- DESPERATE (/showthread.php?tid=12721) |
INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]lollylegs[/eluser] I have just changed from using windows to linux and am a newbie. I am trying to install codeigniter into webroot but can only use commandline root but my command must be incorrect because it says no such folder. The directory to codeigniter is /home/marea/desktop/CodeIgniter_1.7.0 and the command I am using is: $su mv /home/marea/desktop/CodeIgniter_1.7.0 /var/www Above command does not work Please can someone with linux knowledge help me Regards Marea (lollylegs) INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]GSV Sleeper Service[/eluser] have you tried sudo? Code: sudo mv /home/marea/desktop/CodeIgniter_1.7.0 /var/www INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]lollylegs[/eluser] thanks for quick reply. yes i have tried sudo command - still no go. my server system is all set up correctly, but because i am new to linux permissions and directory structure i just cannot install codeigniter INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]GSV Sleeper Service[/eluser] so what error do you get when you try? INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]Mike Ryan[/eluser] One of those directories does not exist. Do the following to confirm which one: Code: ls /home/marea/desktop/CodeIgniter_1.7.0 One of those will come back with something like "no such directory". Are you sure /var/www is your html root? You can check in httpd.conf if you're not sure (assuming you're using Apache). INSTALLING ON LINUX- DESPERATE - El Forum - 10-29-2008 [eluser]Jim OHalloran[/eluser] Hi, [quote author="lollylegs" date="1225303580"] $su mv /home/marea/desktop/CodeIgniter_1.7.0 /var/www [/quote] I can see a couple of problems: 1) You should use either "sudo" or "su -c", The -c on the end of the su command tells su what command to run when you become root. You don't need a -c on sudo, just type the command. 2) The Linux file system is case sensitive. This means that test.txt and Text.txt can both exist in the same directory. So if you create a file called TeSt.TxT you've always got to refer to it as TeSt.TxT because test.txt refers to a different file. This is causing you an issue a problem here because the desktop folder is called "Desktop" not "desktop". So, either of these commands should work for you.... Code: sudo mv /home/marea/Desktop/CodeIgniter_1.7.0 /var/www Jim. |