Find the answer to your Linux question:
Results 1 to 10 of 10
i installed mysql on redhat 9. now, if i start httpd , the following error comes. Pliz reply with a solution. thanx # service httpd start Starting httpd: Syntax error ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Location
    india
    Posts
    87

    httpd start error


    i installed mysql on redhat 9. now, if i start httpd , the following error comes. Pliz reply with a solution. thanx


    # service httpd start
    Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/auth_mysql.conf:
    Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: libmysqlclient.so.10: cannot open shared object file: No such file or directory
    [FAILED]

  2. #2
    Just Joined!
    Join Date
    Feb 2004
    Location
    Indonesia
    Posts
    84
    #1. stop trying to make a bigger write in this post (me, myself hate it)
    #2. why not you inspect it first file /etc/httpd/conf.d/auth_mysql.conf on line 6

    #3. did you install mysql ? why not try installed all dependencies

    check -> rpm -qa|grep mysql
    and try to install all the mysql module, if you more interesting why not add like php, open-ssl


    hope this help you

  3. #3
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    could u paste the first 10 lines ot so of the auth_mysql.conf?

    I have one on my server that works, so can hopefully tell u what's up with it.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2005
    Location
    india
    Posts
    87

    few lines of ....

    hi sdousley, thanx for ur reply.

    # cat auth_mysql.conf | more

    #
    # mod_auth_mysql can be used to limit access to documents by checking
    # data in a MySQL database.
    #

    LoadModule mysql_auth_module modules/mod_auth_mysql.so

    # This will enable user-based MySQL authentication of everything
    # within /var/www. You'll need to do the following as the MySQL
    # root user beforehand:
    #


    if i put a comment before "LoadModule" , it works fine.

  6. #5
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512

    Re: few lines of ....

    Quote Originally Posted by jkmartha
    #
    # mod_auth_mysql can be used to limit access to documents by checking
    # data in a MySQL database.
    #

    LoadModule mysql_auth_module modules/mod_auth_mysql.so

    # This will enable user-based MySQL authentication of everything
    # within /var/www. You'll need to do the following as the MySQL
    # root user beforehand:
    #

    if i put a comment before "LoadModule" , it works fine.
    It's just because you do not have the module "mod_auth_mysql.so" installed in yur system. As provided in a earlier reply, check your installation that you do not miss any files concerning MySQL libraries.

    By the way, are you infact planning to use Authentication to your Webserver with MySQL? If not, just remark that line and you are set!

  7. #6
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    ok, i dont have the auth_mysql.conf file.

    it must not be needed to get apache/php to connect to mysql databases as it all works ok here!
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  8. #7
    Just Joined!
    Join Date
    Apr 2005
    Posts
    88

    HTTPD Start Error

    Greetings,

    Can u mention the MySQL Version you have installed and getting error with??? Basically, its a library error and you have to get the library need to be installed.. So, if you can mention the version of the Httpd, php may be I can be of any help.

    Regards

  9. #8
    Just Joined!
    Join Date
    Mar 2005
    Location
    india
    Posts
    87

    hiii

    mysql - 4.1.11, php - 4.2.2, apache - 2.0.40 ..............but how can i miss any library since i installed from source ????

  10. #9
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    You can miss things by not using switches since not everything is default try ./configure --help for a list of switches. But as said if you dont need it just comment the module out of your httpd.conf.

  11. #10
    Just Joined!
    Join Date
    Apr 2005
    Posts
    88

    httpd error

    Greetings,

    You have to do that only if you have installed the httpd using the Tar Ball if you havent installed httpd using the Tar Ball you wont be requiring it.

    Regards

Posting Permissions

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