在ubuntu上安装OTRS
我正试图使用以下shell脚本在ubuntu上安装OTRS,但安装完成后,我无法访问Web服务器上的在ubuntu上安装OTRS,ubuntu,installation,otrs,Ubuntu,Installation,Otrs,我正试图使用以下shell脚本在ubuntu上安装OTRS,但安装完成后,我无法访问Web服务器上的installer.pl文件,并出现以下错误: error: 403 - don't have permission. 该文件具有可执行属性,并且我具有根权限 Shell脚本内容: apt-get update apt-get install apache2 mysql-server cd /opt wget http://ftp.otrs.org/pub/otrs/otrs-3.2.9.ta
installer.pl
文件,并出现以下错误:
error: 403 - don't have permission.
该文件具有可执行属性,并且我具有根权限
Shell脚本内容:
apt-get update
apt-get install apache2 mysql-server
cd /opt
wget http://ftp.otrs.org/pub/otrs/otrs-3.2.9.tar.gz
tar -xvzf otrs-3.2.9.tar.gz
mv otrs-3.2.9 /opt/otrs
cd /opt/otrs
bin/otrs.CheckModules.pl
apt-get install liblwp-useragent-determined-perl libapache2-mod-perl2 libnet-dns-perl libnet-smtp-ssl-perl libnet-smtp-tls-butmaintained-perl libyaml-perl
apt-get install libgd-text-perl libjson-xs-perl libpdf-api2-perl libtext-csv-xs-perl libxml-parser-perl
useradd -d /opt/otrs/ -c 'OTRS user' otrs
usermod -G www-data otrs
cd /opt/otrs/
cp Kernel/Config.pm.dist Kernel/Config.pm
cp Kernel/Config/GenericAgent.pm.dist Kernel/Config/GenericAgent.pm
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=www-data --otrs-group=www-data --web-group=www-data /opt/otrs
ls -al /opt/otrs
ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs.conf
a2ensite otrs
service apache2 reload
更新源
apt get安装apache2 mysql服务器
cd/opt
wgethttp://ftp.otrs.org/pub/otrs/otrs-3.2.9.tar.gz
tar-xvzf otrs-3.2.9.tar.gz
mv otrs-3.2.9/opt/otrs
cd/opt/otrs
bin/otrs.CheckModules.pl
apt get install liblwp useragent已确定perl libapache2-mod-perl2 libnet dns perl libnet smtp ssl perl libnet smtp tls但已维护perl libyaml perl
apt get install libgd text perl libjson xs perl libpdf-api2-perl libtext csv xs perl libxml解析器perl
useradd-d/opt/otrs/-c'otrs user'otrs
usermod-G www数据otrs
cd/opt/otrs/
cp Kernel/Config.pm.dist Kernel/Config.pm
cp Kernel/Config/GenericAgent.pm.dist Kernel/Config/GenericAgent.pm
bin/otrs.SetPermissions.pl--otrs user=otrs--web user=www-data--otrs-group=www-data--web-group=www-data/opt/otrs
ls-al/opt/otrs
ln-s/opt/otrs/scripts/apache2-httpd.include.conf/etc/apache2/sites available/otrs.conf
增敏otrs
服务apache2重新加载
首先,不要使用过时的OTR版本。4版现在有一段时间了 其次,请检查目录/opt/otrs上的权限。似乎otrs.SetPermissions.pl脚本运行失败,因此它没有为所需的pl.scripts设置所需权限(检查目录所有者是否为otrs而不是ROOT) 请参考这个