我正在尝试将项目从Ubuntu 12移植到14。我已经安装了安装了Lamp的Ubuntu 14.04.05的新服务器。
然后按照Mono-project.com的指示进行操作:
安装服务器:
安装单声道
将网站复制到/ var / www / html
删除/var/www/html/index.html
安装MySql数据库
目前不起作用
我尝试安装
我在/etc/apache2/sites-enabled/000-default.conf中添加了该文件,我认为这是错误的,但是我一直在寻找冲突的信息。
ServerName mysite.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
</Directory>
MonoServerPath mvc3 "/etc/mono-server4"
MonoApplications default "/:/var/www/html"
MonoDocumentRootDir " /var/www/html"
MonoDebug true
当前的apache2错误是:我需要删除/ usr / bin / mod-mono-server2并使用/ usr / bin / mod-mono-server4,但找不到。
[Mon Jul 16 17:53:01.748002 2018] [:error] [pid 10467] Not running mod-mono-server.exe because no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir specified.
[Mon Jul 16 17:53:01.757243 2018] [:error] [pid 10467] Not running mod-mono-server.exe because no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir specified.
[Mon Jul 16 17:53:01.761663 2018] [:error] [pid 10473] Failed running '/usr/bin/mod-mono-server2 --filename /tmp/mod_mono_server_default --applications /:/var/www/html --nonstop (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory
[Mon Jul 16 17:53:01.782682 2018] [mpm_prefork:notice] [pid 10467] AH00163: Apache/2.4.7 (Ubuntu) mod_mono/3.13 PHP/5.5.9-1ubuntu4.25 configured -- resuming normal operations
[Mon Jul 16 17:53:01.782715 2018] [core:notice] [pid 10467] AH00094: Command line: '/usr/sbin/apache2'