WebFtp it gives error

Hi,

I get this error

The error occured in file /var/www/vhosts/ehcp/net2ftp/includes/authorizations.inc.php on line 728.

* function logAccess (/var/www/vhosts/ehcp/net2ftp/main.inc.php on line 213)
* function net2ftp (/var/www/vhosts/ehcp/net2ftp/index.php on line 38)
o argument 0: sendHttpHeaders

that is place of error, not error itself,
can you post full error ?

access denied ?

A new window open with this error

An error has occured:

Unable to execute the SQL query.

Go back

Go to the login page

View technical details
Hide technical details

The error occured in file /var/www/vhosts/ehcp/net2ftp/includes/authorizations.inc.php on line 728.

* function logAccess (/var/www/vhosts/ehcp/net2ftp/main.inc.php on line 213)
* function net2ftp (/var/www/vhosts/ehcp/net2ftp/index.php on line 38)
o argument 0: sendHttpHeaders

footer
Help Guide | Forums| License
Powered by net2ftp - a web based FTP client
Add to: Del.icio.us | Digg | Reddit

Regards,

Derick Nieuwoudt

most probably, you changed your mysql ehcp user pass,
in that case, two ways to fix that (one of this should work):
* in net2ftp/settings.inc.php, fix datbase user pass.
or
* in ehcp gui->options->fixmailconfiguration

Tried both ways, still no luck.

I get this error when I change user or pass.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ehcpt'@'localhost' (using password: YES) in /var/www/vhosts/ehcp/net2ftp/includes/database.inc.php on line 31

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ehcpt'@'localhost' (using password: YES) in /var/www/vhosts/ehcp/net2ftp/includes/database.inc.php on line 31
net2ftp

An error has occured:

Unable to connect to the MySQL database. Please check your MySQL database settings in net2ftp's configuration file settings.inc.php.

Go back

Go to the login page

View technical details
Hide technical details

The error occured in file /var/www/vhosts/ehcp/net2ftp/includes/database.inc.php on line 33.

* function connect2db (/var/www/vhosts/ehcp/net2ftp/includes/authorizations.inc.php on line 718)
* function logAccess (/var/www/vhosts/ehcp/net2ftp/main.inc.php on line 213)
* function net2ftp (/var/www/vhosts/ehcp/net2ftp/index.php on line 38)
o argument 0: sendHttpHeaders

Regards,

Derick Nieuwoudt

open settings.inc.php
change "ehcpt" to "ehcp"
probably you mis-spelled that.

// MASTER SETTING that overrides the other settings below: use a database?
$net2ftp_settings["use_database"] = "no"; // "yes" or "no"

// Enter your MySQL settings
$net2ftp_settings["dbusername"] = "ehcp";
$net2ftp_settings["dbpassword"]='xxxxxxxxxx';
$net2ftp_settings["dbname"] = "ehcp";
$net2ftp_settings["dbserver"] = "localhost"; // on many configurations, this is "localhost"

I have changed from yes to no, and looks like is working now.

Which is best Yes or NO ?

Regards,

Derick Nieuwoudt

yes is better, (with yes, net2ftp stores some of operations in db, so, makes it more easy, more usable)
but, with no, it also works.. only, does not stores any information in db.