如何使用Mono-project在Ubuntu上设置MVC3

时间:2018-07-16 22:14:17

标签: asp.net-mvc ubuntu mono

我正在尝试将项目从Ubuntu 12移植到14。我已经安装了安装了Lamp的Ubuntu 14.04.05的新服务器。

然后按照Mono-project.com的指示进行操作:

安装服务器:

  • apt更新
  • apt升级
  • apt dist-upgrade

安装单声道

  • sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  • sudo apt安装apt-transport-https 回声“ deb https://download.mono-project.com/repo/ubuntu稳定可靠的主” | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
  • sudo apt更新
  • sudo apt install mono-complete

将网站复制到/ var / www / html

删除/var/www/html/index.html

安装MySql数据库

目前不起作用

我尝试安装

  • sudo apt-get install libapache2-mod-mono mono-apache-server4
  • sudo apt-get install mono-xsp4

我在/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'

0 个答案:

没有答案