Where to upload files

speedy

Verified User
Joined
Jun 9, 2004
Messages
11
I have my dns configured properly, but I have no idea
where to upload the files for my site.

Can anyone help?
 
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
 
ProWebUK said:
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.
 
speedy said:
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
 
ProWebUK said:
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.
 
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
 
vandal said:
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.
 
speedy said:
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
 
ProWebUK said:
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?
 
speedy said:
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
 
ProWebUK said:
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?
 
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
 
ProWebUK said:
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.
 
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.
 
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!
 
You cant see them with FTP becuase that area isnt configured with an account.

to append using cat:

Code:
[root@host]# cat > [B]newfilename.php[/B] << EOF
> (paste your page content here)
> EOF <enter>
[root@host]#

Chris
 
ProWebUK said:
You cant see them with FTP becuase that area isnt configured with an account.

to append using cat:

Code:
[root@host]# cat > [B]newfilename.php[/B] << 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?
 
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
 
Back
Top