Welcome Guest, Not a member yet? Register   Sign In
INSTALLING ON LINUX- DESPERATE
#1

[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)
#2

[eluser]GSV Sleeper Service[/eluser]
have you tried sudo?
Code:
sudo mv /home/marea/desktop/CodeIgniter_1.7.0 /var/www
#3

[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
#4

[eluser]GSV Sleeper Service[/eluser]
so what error do you get when you try?
#5

[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
ls /var/www

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).
#6

[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
su -c mv /home/marea/Desktop/CodeIgniter_1.7.0 /var/www

Jim.




Theme © iAndrew 2016 - Forum software by © MyBB