The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FTP Problem

Discussion in 'General Discussion' started by altendew, Apr 26, 2006.

  1. altendew

    altendew Member

    Joined:
    Sep 27, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Hi I am currently using the pure ftpd that cpanel installed, the only problem is I need pure ftpd to use mysql database to store it's users.

    The only way you can do that is installing it with..

    ./configure --with-mysql

    Cpanel does that installing so how could I do this?
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    What's the reason behind needing user details stored in a MySQL database?

    cPanel will use it's own method (whatever that may be) for storing FTP user details and so if they're instead stored in a MySQL database, cPanel may not be able to manage FTP users correctly.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  4. altendew

    altendew Member

    Joined:
    Sep 27, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I am not worried about breaking the FTP. I am not adding any sites to the Cpanel account, and I could easily just insert them in the MySQL database. I am making a PHP script that automatically adds a FTP account when the user is created.

    What can I edit RPMs with, and when I am done, what's the linux command to unpack/install an RPM?

    Im pretty sure all I would have to-do is change..

    ./configure to ./configure --with-mysql

    Thanks,
    Andrew
     
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    If you're only adding MySQL support to PureFTP so that you can create FTP users via a PHP script, it would be much better if you simply found out how cPanel stores FTP user details and then replicate the process using a PHP script.

    Such a method would allow you to use your PHP script to create FTP users whilst not breaking cPanel.
     
  6. altendew

    altendew Member

    Joined:
    Sep 27, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Yes but that involves a lot more work.. assuming the users are stored in a file, I would have to search throught it to delete it, and its much easiar just using a DELETE query.
     
  7. altendew

    altendew Member

    Joined:
    Sep 27, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I am willing to pay someone to help me out with this.
     
Loading...

Share This Page