/etc/htttpd/conf/httpd.conf configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s2rinivasan
    New Member
    • Aug 2007
    • 2

    /etc/htttpd/conf/httpd.conf configuration

    I am using Redhat linux EL4 2.6.9-5 .
    In it I am configuring httpd configuration with out authentication it gives the currect page.
    But with authenticetion it shows some error that
    MYSQL ERROR: can not connect to local MUSQL server through socket
    /var/lib/mysql/mysql.sock
    and
    MYSQL user srini not found
    the above two error are shown.
    I did the configuration properly.
    but in orther system my configuration works properly.
    why ?
    anyone know to slove this problum plese reply to help me.

    I did all configuration steps currectly.
    in /etc/httpd/conf/httpd.conf

    NameVirtualHost station1.exampl e.com:80
    <VirtualHost staion1.example .com>
    ServerName station1.exampl e.com
    DocumentRoot /var/www/html
    <Directory /var/www/html >
    Allowoverride Authconfig
    </Directory>
    </VirtualHost>

    and I created a file
    vi /var/www/html/index.html
    THIS IS STATION1.EXAMPL ..COM FILE

    and I created a file
    vi /var/www/html/.htaccess
    AuthName "station1.examp le.com"
    Authtype Basic
    Authuserfile /var/www/html/.htpasswd
    require valid-user

    and I created passwd for user srini

    passwd -cm /var/www/html/.htpasswd srini
    srini
    srini

    my steps are currect but I though any pakage may be miss or loss


    do you konw about this please replay

    Thanking you








    thanking you.
Working...