NightStorm,
vi vhost.sh
First line command not found..
answered "no" to unneeded question,choosed the domain name and then
echo "" >> $APACHE_ROOT/$dname/conf/vhost_ssl.conf
vi $APACHE_ROOT/$dname/conf/vhost_ssl.conf
fi
echo "If the vhost.conf file was correct, enter "y" to activate it:"
echo -n " (y)es ->: "
read ok
if [ "$ok" = "y" ]; then
/usr/local/psa/admin/bin/websrvmng
sleep 2
if [ "$APACHE_ROOT" = "/usr/local/psa" ]; then
/usr/local/psa/rc.d/httpd restart
fi
echo "The vhost.conf file is installed and functioning."
exit 0
else
if [ "$ssl" = "y" ]; then
rm -f $APACHE_ROOT/$dname/conf/vhost_ssl.conf
else
rm -f $APACHE_ROOT/$dname/conf/vhost.conf
fi
#/usr/local/psa/admin/bin/websrvmng
echo "The vhost.conf was not activated."
fi
"vhost.sh" 68L, 2226C 68,0-1 Bot
QUOTE
Originally posted by NightStorm
vi vhost.sh
paste code
save
chmod 755 vhost.sh
sh vhost.sh