Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Apr 16, 2012 12:07 pm 
Offline
Junior Member

Joined: Sun Apr 15, 2012 7:31 pm
Posts: 25
Hi guys

I'm testing uploading an index.php file to a test website I have set up in Linode.

First of all I tried uploading to the srv/www/mytestdomain.com/public_index when I was logged in as my Linode user, but I get an error 3 Permission Denied in WinSCP. I'm guessing that's telling me that I can't upload to that website, as I'm not the owner of the website?

My question is, how do I log into that website as the website owner (like I would on a typical shared hosting account)? I don't recall setting a username or pass for that domain when going through the 'Configuring Name-based Virtual Hosts' instructions - how is that done?

Thanks!


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 12:16 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
Hi Again,


if you have files that you want to upload to your website.
then do this.

1, you can use winscp,but you will only have access to the home folder of the account your logging in with..which is fine..

2, Once you copy the files from winscp to your server... log in useing ssh and you will then do this command .. sudo mv files to this location /srv/www/website.com/public


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 12:22 pm 
Offline
Junior Member

Joined: Sun Apr 15, 2012 7:31 pm
Posts: 25
Thanks mate

I typed in:

sudo mv /home/myusername/index.php /srv/www/mytestdomain.com/public_html

and get the error:

mv: cannot stat `/home/myusername/index.php': No such file or directory

The file is definitely in the /home/myusername dir

On the same topic, how do you set up user account username and passwords for websites (so you can log into them via ftp) in the /srv/www dir? The guide didn't mention that part when configuring the files/dirs for websites.


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 12:39 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
have you installed mysql,php basic lampstack components

if not maybe you will need some additional training.. setting up a Linux lampstack


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 12:45 pm 
Offline
Junior Member

Joined: Sun Apr 15, 2012 7:31 pm
Posts: 25
I hadn't rebooted after installing php. Did that, and now I can copy the file.

I'm set up LAMP now. Is there a topic in the guide that discusses allocating a username and pass to a website you've set up via Configuring Name-based Virtual Hosts?


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 1:43 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
you will need to configure mysql ... create a database


what type of website are you creating cms?

drupal?


Top
   
 Post subject:
PostPosted: Mon Apr 16, 2012 9:10 pm 
Offline
Junior Member

Joined: Sun Apr 15, 2012 7:31 pm
Posts: 25
It's just a test page so I can get the hang of it. The test page is live on the net, which is good.

I don't understand how to connect to it via ftp like a normal webmaster would.

I set up a site via name based virtual host settings, and the site works because the real world can connect to it. Now say I set up a bunch of others, so I have 5 different websites, and they all belong to different people, so each needs their own username/pass (like on a shared host). Where do you set up the username and pass for each site when creating each named based virtual host? The guide mentions:

<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /srv/www/example.com/public_html/
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined
</VirtualHost>

So how does each webmaster connect to their site via ftp for example?


Top
   
 Post subject:
PostPosted: Tue Apr 17, 2012 1:17 pm 
Offline
Senior Member
User avatar

Joined: Sat Feb 25, 2012 4:44 pm
Posts: 71
Website: http://inhomeitsupport.com
I would never connect to anything using ftp its insecure. Always use ssh or winSCP to upload and mange content on your server.


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2012 1:18 am 
Offline
Junior Member

Joined: Sun Apr 15, 2012 7:31 pm
Posts: 25
Thanks for that tip kyrunner - I'll use the secure connection from now on.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group