View Full Version : Where to upload files
speedy
06-11-2004, 11:33 AM
I have my dns configured properly, but I have no idea
where to upload the files for my site.
Can anyone help?
ProWebUK
06-11-2004, 01:29 PM
Log into the user panel, at the top select "files", or FTP to your account then:
domains > domain.com > public_html/ private_html > place your files here!
Chris
speedy
06-11-2004, 06:40 PM
Originally posted by ProWebUK
Log into the user panel, at the top select "files", or FTP to your account then:
domains > domain.com > public_html/ private_html > place your files here!
Chris
I tried that. I created those folders in the proper order and
uploaded my index.html, but it defaulted back to the
original index when I reloaded the index page.
ProWebUK
06-11-2004, 06:44 PM
Originally posted by speedy
I tried that. I created those folders in the proper order and
uploaded my index.html, but it defaulted back to the
original index when I reloaded the index page.
Did you delete the default index first?
Also, the "default" page you are referring to is the DirectAdmin page or the apache page?
Chris
speedy
06-11-2004, 07:19 PM
Originally posted by ProWebUK
Did you delete the default index first?
Also, the "default" page you are referring to is the DirectAdmin page or the apache page?
Chris
The apache page. Where is it?
Yes, I deleted the default index. However, the
apache page is still there.
vandal
06-12-2004, 01:09 AM
the apache page is located in /var/www/html
but any account you add is located in /home/username/domains/mydomain.com/public_html
so if you are trying to view your ip address http://127.0.0.1 for example that points to /var/www/html
speedy
06-12-2004, 10:55 AM
Originally posted by vandal
the apache page is located in /var/www/html
but any account you add is located in /home/username/domains/mydomain.com/public_html
so if you are trying to view your ip address http://127.0.0.1 for example that points to /var/www/html
I have been able to add domains and locate them with ftp or
the control panel.
However, I can't find the apache page because I can't find
/var/www/html with ftp or using the control panel.
ProWebUK
06-12-2004, 10:59 AM
Originally posted by speedy
I have been able to add domains and locate them with ftp or
the control panel.
However, I can't find the apache page because I can't find
/var/www/html with ftp or using the control panel.
You will need shell access for /var/www/html unless you manually configure ftp.
Chris
speedy
06-12-2004, 11:59 AM
Originally posted by ProWebUK
You will need shell access for /var/www/html unless you manually configure ftp.
Chris
How do I manually configure ftp?
Do you mean changing the filters?
ProWebUK
06-12-2004, 01:42 PM
Originally posted by speedy
How do I manually configure ftp?
Do you mean changing the filters?
No, i mean adding an account where the directory is /var/www/html - ssh would be much easier.
Chris
speedy
06-12-2004, 01:48 PM
Originally posted by ProWebUK
No, i mean adding an account where the directory is /var/www/html - ssh would be much easier.
Chris
You lost me here. I don't know how to do that.
What do I need to do?
ProWebUK
06-12-2004, 04:06 PM
do you have root access to the system? (is the entire system yours or are you an end user?)
If you are only at the user level, or even reseller.... and you're getting the apache page on a domain setup through DA you have a problem... possibly apache needs restarting to a missing httpd.conf for the user possibly.
if the system is yours, and you run windows, you need to download an application called PuTTY (google it) then ssh to your box, login then cd to /var/www/html, then use a text editor (vi / pico) or append using cat, to enter your html.
Chris
speedy
06-12-2004, 04:18 PM
Originally posted by ProWebUK
do you have root access to the system? (is the entire system yours or are you an end user?)
If you are only at the user level, or even reseller.... and you're getting the apache page on a domain setup through DA you have a problem... possibly apache needs restarting to a missing httpd.conf for the user possibly.
if the system is yours, and you run windows, you need to download an application called PuTTY (google it) then ssh to your box, login then cd to /var/www/html, then use a text editor (vi / pico) or append using cat, to enter your html.
Chris
The entire system is mine. I'll get the application and try it.
I might get lost in the "ssh to your box" part. But I'll try it.
speedy
06-12-2004, 04:37 PM
I got logged in and tried to change directories.
I always get this message
"-bash: cd/var/www/html: No such file or directory"
I typed in the cd command several different ways.
I always get the same error.
ProWebUK
06-12-2004, 05:04 PM
cd /var/www/html
Note the space.
Chris
speedy
06-12-2004, 05:15 PM
I got in, obviously wasn't typing correctly.
How do I append using cat?
And, why can't I see these files when I am using ftp?
BTW Chris, you have been a big help, Thanks!
ProWebUK
06-12-2004, 05:29 PM
You cant see them with FTP becuase that area isnt configured with an account.
to append using cat:
[root@host]# cat > newfilename.php << EOF
> (paste your page content here)
> EOF <enter>
[root@host]#
Chris
speedy
06-12-2004, 06:28 PM
Originally posted by ProWebUK
You cant see them with FTP becuase that area isnt configured with an account.
to append using cat:
[root@host]# cat > newfilename.php << EOF
> (paste your page content here)
> EOF <enter>
[root@host]#
Chris
You hit the nail on the head. How do I configure that
area with an account so I can see the files?
ProWebUK
06-12-2004, 06:52 PM
Easiest, temporary way is:
create an ftp user in DA
open /etc/proftpd.passwd (pico -w /etc/proftpd.passwd)
find the ftp user you created, change the path /home/username to /var/www/html, you should have something like:
username:crypted_pass:uid:gid:system:/var/www/html:/bin/false
save and exit then run:
service proftpd reread
then login, do what you want, and once you're done go back into /etc/proftpd.passwd and revert the changes :)
Chris
speedy
06-12-2004, 07:16 PM
Is there a way I can do this permanently?
ProWebUK
06-12-2004, 07:37 PM
add a new system user, then create a new line in proftpd.passwd with the new username / uid / gid and copy the crypted password from an existing user (that you know the password of)
Chris
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.