Cannot access directory '/var/log/virtualmin/'

Discussion in 'Server Operation' started by elvan, Jun 8, 2022.

  1. elvan

    elvan New Member

    Hi when i "sudo systemctl status apache2.service"

    I m getting this error: No such file or directory: AH02291: Cannot access directory '/var/log/virtualmin/' for error log of vhost defined at /etc/apache2/sites-enabled/mydomain.com.conf

    how can i solve it? thank u.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Code:
    grep virtualmin /etc/apache2/sites-enabled/mydomain.com.conf
    
    ls -lhd /var/log/virtualmin
     
  3. elvan

    elvan New Member


    Code:
       :~$ grep virtualmin /etc/apache2/sites-enabled/mydomain.com.conf
        ErrorLog /var/log/virtualmin/mydomain.com_error_log
        CustomLog /var/log/virtualmin/mydomain.com_access_log combined
    :~$ ls -lhd /var/log/virtualmin
    ls: cannot access '/var/log/virtualmin': No such file or directory
    :~$  
    [/QUOTE]
     
  4. elvan

    elvan New Member



    Hi Telman first of all thank you for your advice. I implemented the commands that yuo have written but it gave the outputs below. How should i continue now?
    Thank you.


    :~$ grep virtualmin /etc/apache2/sites-enabled/homelistt.com.conf
    ErrorLog /var/log/virtualmin/homelistt.com_error_log
    CustomLog /var/log/virtualmin/homelistt.com_access_log combined
    :~$ ls -lhd /var/log/virtualmin
    ls: cannot access '/var/log/virtualmin': No such file or directory
    :~$
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That host does not have directory /var/log/virtualmin. Perhaps virtualmin, whatever is is, is not installed completely or properly? Or the settings in the conf file are wrong?
     
  6. elvan

    elvan New Member


    Okay thank you. How can I undo the commands that you advise. I mean how can i undo this command "grep virtualmin /etc/apache2/sites-enabled/homelistt.com.conf"

    Thank you
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    There is no need to undo it. It just wrote text on your screen. If you want to get rid of the text, use command
    Code:
    clear
    Or close the terminal with command exit, or close the window if terminal is running in a window.
     
    elvan likes this.
  8. elvan

    elvan New Member

    thank you @Taleman
     

Share This Page