Results 1 to 3 of 3
  1. #1

    DirectAdmin - Access denied for user 'apache'@'localhost' (using password: NO)

    Hi all,

    Im searching already some hours, and Im stuck for now.

    I get the following error when let my site connect to my database: Access denied for user 'apache'@'localhost' (using password: NO)

    But when im running lil test script which connect to my localhost with the same passwords and it gives the status 'Connection OK' (im running on admin account, made a MySQL account with DA)

    Code:
    <?php $link = mysql_connect('localhost','admin_removed','removed'); if (!$link) { die('Could not connect to MySQL: ' . mysql_error()); } echo 'Connection OK'; mysql_close($link); ?>
    Anyone suggestions?

  2. #2
    x:/home/admin/domains# /etc/init.d/httpd restart Stopping httpd:
    Remaining processes: 8239 8243 8244 8246 8247 8248 8306 8307 8308 8309
    Stopping httpd:
    Starting httpd: Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist
    Warning: DocumentRoot [/home/admin/domains/sharedip] does not exist

    x:/home/admin/domains#

  3. #3
    Solved.

    chown -R admin /home/admin/
    cd /usr/local/directadmin/custombuild
    ./rebuild all

Similar Threads

  1. Access denied for user 'root'@'localhost
    By Greedisgood in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-08-2007, 09:46 AM
  2. Access denied for user 'root'@'localhost'
    By MarsNIIT in forum Hosting Security and Technology
    Replies: 12
    Last Post: 04-14-2006, 04:11 AM
  3. Replies: 7
    Last Post: 03-22-2006, 10:32 AM
  4. Replies: 3
    Last Post: 08-21-2004, 02:12 PM
  5. Replies: 2
    Last Post: 04-06-2003, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •