1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

404 error after transvhosts.pl

Discussion in 'Plesk for Linux - 8.x and Older' started by b1260, Oct 15, 2007.

  1. b1260

    b1260 Guest

    0
     
    hello,

    my web path in /var/www/vhost past,but the /var only 8G space.
    my /home have 83G space.

    I mkdir /home/httpd/vhosts.
    then run
    /usr/local/psa/bin/transvhosts.pl --dest-dir /home/httpd/vhosts --correct-scripts

    it is ok

    but I visit my website,
    I get 404 error in browser.I can't visit my webiste.

    why have this error? how fix the error?

    thank you very much!
     
  2. anb_t

    anb_t Guest

    0
     
    Hmm.. apache error 404 means "page not found", I guess you should just check your web pages in the appropriate virtual host directory:

    /home/httpd/vhosts/mydomain.com/httpdocs

    Ah, also it is usually very helpful looking into apache error/access log files of the virtual host, /home/httpd/vhosts/mydomain.com/statistics/logs/{access|error}_log

    Try to find out the exact problem in the logs.

    ./anb
     
  3. b1260

    b1260 Guest

    0
     
    when I restart web services in Plesk--Server_services management,I get this error:

    ERROR: PleskFatalExceptionCreate ShortcutCreate Shortcut
    Up LevelUp Level




    Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start
    0: /usr/local/psa/admin/plib/common_func.php3:156 psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/httpd failed to start') 1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
     
  4. anb_t

    anb_t Guest

    0
     
    Try to start apache manually with

    /etc/init.d/httpd start

    and look into apache error log file /var/log/httpd/error_log for the failure cause.

    ./anb
     
  5. b1260

    b1260 Guest

    0
     
    thank you very much.

    when I run /etc/init.d/httpd start
    I get error [FAILED]

    when I /var/log/httpd/error_log

    I find these
    [Tue Oct 16 11:20:11 2007] [error] [client 117.78.135.146] File does not exist: /var/www/vhosts/default
     
  6. anb_t

    anb_t Guest

    0
     
    Apache error log make sense.. $HTTPD_VHOSTS_D was moved to new location with script transvhosts.pl, but several directories that required by Plesk needs to be in $HTTPD_VHOSTS_D as well..
    The directories are: "default", "chroot" and ".skel". You should move them to new one location.

    ./anb
     
  7. b1260

    b1260 Guest

    0
     
    hello,
    in /var/www/vhosts have no any files.

    in /home/httpd/vhosts have default and chroot.
     
  8. anb_t

    anb_t Guest

    0
     
    Check HTTPD_VHOSTS_D value in /etc/psa/psa.conf.

    ./anb
     
  9. b1260

    b1260 Guest

    0
     
    hello,
    HTTPD_VHOSTS_D is /home/httpd/vhosts
     
  10. anb_t

    anb_t Guest

    0
     
    hm.. Try Plesk utility that re-creates apache configuration files for all virtual hosts:

    /usr/local/psa/admin/sbin/websrvmng -a -v

    ./anb
     
  11. b1260

    b1260 Guest

    0
     
    I contact SWsoft support.
    he stop selinux,now the website work ok :)

    but stop sexlinux ,have safe problem ?
     
  12. anb_t

    anb_t Guest

    0
     
    Good news :)

    If you want SELinux is enabled on your server, you should configure it properly, that it does not disturb Plesk functionality..
    I guess this article from SWsoft knoledge base can help you to configured SELinux with Plesk:

    http://kb.swsoft.com/internal/en/1002

    ./anb
     
  13. b1260

    b1260 Guest

    0
     
    thanks anb.
    nice to meet you!

    I visit the url,I get this information:

    Access is denied.
     
  14. ziba@

    ziba@ Guest

    0
     
    Hi,

    This article was removed as it became outdated.
    Latest Plesk distributions contain psa-selinux package that is used to modify the SE-Linux predefined policies configurations
    to allow Plesk run properly.
    If you have this package installed but still face problem when Selinux is enabled then the easiest way to resolve this is to disable SElinux or to set it to permissive mode because manually added changes in SElinux configuration files may lead to several other problems. Moreover these changes will be gone upon SElinux upgrade.
     
Loading...