• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

404 error after transvhosts.pl

B

b1260

Guest
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!
 
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
 
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
 
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
 
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
 
Originally posted by b1260
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

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
 
hello,
in /var/www/vhosts have no any files.

in /home/httpd/vhosts have default and chroot.
 
Originally posted by b1260
hello,
HTTPD_VHOSTS_D is /home/httpd/vhosts

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

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

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

but stop sexlinux ,have safe problem ?
 
Originally posted by b1260
I contact SWsoft support.
he stop selinux,now the website work ok :)

but stop sexlinux ,have safe problem ?

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
 
thanks anb.
nice to meet you!

I visit the url,I get this information:

Access is denied.
 
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.
 
Back
Top