View Full Version : .htaccess and ftp problem
malinens
5th March 2008, 12:40
When I am trying to upload .htaccess file trough ftp, this htaccess file disapears (not showing in ftp client). I am using vsftpd. Any solution?
/Sry for bad English/
till
5th March 2008, 17:17
Please have a look in the vsftpd configuration file. I guess that hidden files (files that start with a dot) are disabled there.
malinens
7th March 2008, 13:57
Do I need these lines (this is the end of the vsftpd.conf...)?
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
force_dot_files=NO
#hide_file=
#anon_max_rate=
#local_max_rate=
till
7th March 2008, 16:31
Please try to set:
force_dot_files=YES
and restart vsftpd.
malinens
8th March 2008, 17:40
thank You! it works!
I have one last problem with FTP :)
I have some problems with permissions (PHP), for newly created files with PHP owner of files is 33 but normally it must be 10002 or higher. I can not chmod these files using FTP client...
falko
8th March 2008, 19:43
I have some problems with permissions (PHP), for newly created files with PHP owner of files is 33 but normally it must be 10002 or higher. I can not chmod these files using FTP client...
Do you mean that you have a PHP script that creates files? The new files usually have the owner and group that Apache runs under. To avoid this, you can use suPHP: http://www.howtoforge.com/install-suphp-on-various-linux-distributions-for-use-with-ispconfig-2.2.20-and-above
malinens
12th March 2008, 15:23
I did this but now all php pages not work (people can see source code of my pages...)!
please help me! My vhosts_config.conf is not updating (I have this problem for a while...)
httpd -t
syntax OK
How can I get PHP working? I tried to fix small problem but now I have this big problem- my sites don't work now :(
falko
13th March 2008, 18:47
Please go to the directory where your Vhosts_ispconfig.conf is. Are there other files that begin with Vhosts_ispconfig.conf and end with a date? If so, take a look here: http://www.howtoforge.com/forums/showthread.php?t=7719
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.