.htaccess and ftp problem

Discussion in 'General' started by malinens, Mar 5, 2008.

  1. malinens

    malinens New Member

    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/
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look in the vsftpd configuration file. I guess that hidden files (files that start with a dot) are disabled there.
     
  3. malinens

    malinens New Member

    Do I need these lines (this is the end of the vsftpd.conf...)?
    Code:
    # 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=
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to set:

    force_dot_files=YES

    and restart vsftpd.
     
  5. malinens

    malinens New Member

    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...
     
  6. falko

    falko Super Moderator Howtoforge Staff

    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-s...tions-for-use-with-ispconfig-2.2.20-and-above
     
  7. malinens

    malinens New Member

    help!

    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 :(
     
    Last edited: Mar 12, 2008
  8. falko

    falko Super Moderator Howtoforge Staff

Share This Page