首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu VPS上托管RSS提要

如何在Ubuntu VPS上托管RSS提要
EN

Stack Overflow用户
提问于 2019-10-04 12:51:41
回答 1查看 303关注 0票数 0

我正在尝试为iTunes托管一个RSS提要,但我一直收到一个不匹配的标签错误

Ubuntu // Apache

摘要url为:http://fourteenthrees.com/podcasts/feed.xml

我的代码是:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

    <channel>
        <title>MUSIC 4 COMMITTING CRIMES</title>
        <link>http://www.fourteenthrees.com</link>
        <language>en-us</language>
        <copyright>℗ &amp; © 2019 Fourteen Threes</copyright>
        <itunes:subtitle>Music you listen to while committing crime.</itunes:subtitle>
        <itunes:author>Fourteen Threes</itunes:author>
        <itunes:summary>The soundtrack to all your crimes</itunes:summary>
        <description>Every episode is the soundtrack to a different crime.</description>
        <itunes:owner>
            <itunes:email>editor@fourteenthrees.com</itunes:email>
        </itunes:owner>
        <itunes:image href="http://fourteenthrees.com/images/podlogo.jpg"/>
        <itunes:category text="Society &amp; Culture" />
        <itunes:category text="Arts" />
        <itunes:category text="News &amp; Politics" />
        <itunes:explicit>yes</itunes:explicit>

        <item>
            <title>00 - TEST</title>
            <itunes:subtitle>DIRTROID:the girl dies</itunes:subtitle>
            <itunes:summary><![CDATA[Dirty Harry v Metroid.]]></itunes:summary>
            <itunes:image href="http://fourteenthrees.com/images/podlogo.jpg"/>
            <enclosure length="8727310" type="audio/x-m4a" url="http://fourteenthrees.com/podcasts/FT-01.mp3”/>
             <pubDate>Thu, 12 Sep 2019 16:00:00 PDT</pubDate>
            <itunes:duration>22:04</itunes:duration>
            <itunes:explicit>yes</itunes:explicit>
        </item>

   </channel>
</rss>

这是来自Apple推荐的feed验证器的错误;

很抱歉,此订阅源未验证。第29行,第13列: XML解析错误::29:13:格式不正确(令牌无效)清华,2019年9月12日16:00:00 PDT

我看不出我做错了什么,可以用另一双眼睛,谢谢。

EN

回答 1

Stack Overflow用户

发布于 2019-10-05 16:53:56

Ububtu // Apache (应该已经在第一个问题中注意到了)

以root用户身份登录

首先,我删除了用来存放RSS提要的/var/www/html/podcast/ dir

代码语言:javascript
复制
cd /
sudo apt-get update -y
sudo apt-get install mysql-server -y
sudo /usr/bin/mysql_secure_installation
sudo systemctl enable apache2.service
sudo systemctl enable mysql.service

sudo apt-get update
sudo apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
sudo apt-get install php7.3
systemctl restart apache2.service

已下载的Podcast Generator

将zip文件解压缩到桌面,并将新内容放入名为/podcast/的新文件夹中

将ssh podcast文件夹放入/var/www/html/

代码语言:javascript
复制
Chmod 777 /var/www/html/
Chmod 777 /var/www/html/podcasts/
Chmod 777 var/www/html/media
chmod 777 /var/www/hmtl/podcasts/images

打开浏览器,导航到http://eaxample.com/podcasts/setup

按照屏幕上的GUI说明,填写所有类别,并使用FTP查找选项来识别您的ssh上传,如果您的文件超过2MB。

不要害怕使用管理区域中的后退按钮导航,如果您保存它,它会记住所有内容。

像个护身符一样工作

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58230105

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档