在Arch Linux上使用Makepkg
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
Typesetter是一个用PHP编写的开源CMS,专注于True WYSIWYG编辑和平面文件存储的易用性。
在本文中,我们将在CentOS 7上安装Typesette。
EPELyum软件库。使用sudo用户通过SSH登录到服务器,以安装epel,更新系统并重新启动以应用更新。
sudo yum install epel-release -y
sudo yum update -y && sudo shutdown -r now
sudo yum install httpd -y
建议在生产环境中删除/禁用Apache默认欢迎页面。
sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
阻止Apache将Web目录文件列出给访问者:
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf
启动Apache服务,并使其在启动时自动启动
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
打字员需要PHP 5.3或更高版本。为了获得更好的性能,我们将如下安装PHP 7.1及其对Typesetter的必要扩展:
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install mod_php71w php71w-common php71w-mbstring php71w-xmlrpc php71w-gd php71w-xml php71w-intl php71w-cli php71w-mcrypt -y
5.0.3从官方的Typesetter下载页面下载并解压缩Typesetter的最新稳定版本(在撰写本文时):
cd
wget https://www.typesettercms.com/Special_gpEasy?cmd=download -O Typesetter-5.0.3.zip
sudo yum install unzip -y
sudo unzip Typesetter-5.0.3.zip -d /var/www/html
设置/var/www/html/Typesetter/data目录的所有权,如下所示:
sudo chown -R apache:apache /var/www/html/Typesetter/data
为Typesetter创建一个Apache虚拟主机:
cat <<EOF | sudo tee -a /etc/httpd/conf.d/typesetter.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/Typesetter/
ServerName typesetter.example.com
ServerAlias www.typesetter.example.com
<Directory /var/www/html/Typesetter/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/typesetter.example.com-error_log
CustomLog /var/log/httpd/typesetter.example.com-access_log common
</VirtualHost>
EOF
重新启动Apache服务以应用您的修改:
sudo systemctl restart httpd.service
修改防火墙规则以允许Web访问:
sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload
第一次浏览器访问http://203.0.113.1时,将显示Typesetter安装向导。在本Checking server...节中,确保所有测试项目均通过。在该Configuration部分中,输入您自己的管理员凭据:
<Your Site Title><admin@example.com><your-admin-name><your-admin-password><your-admin-password>最后,单击Install按钮以完成安装。在Installation - v5.0.3页面中,单击View your web site链接以开始浏览打字机站点。
为了安全起见,/var/www/html/Typesetter/include/install/install.php安装后应删除该文件:
sudo rm /var/www/html/Typesetter/include/install/install.php
而已。谢谢阅读。
在Arch Linux上使用Makepkg可以避免系统污染,确保仅安装必要的依赖关系。
快速学习如何在Ubuntu 16.04上安装OpenSIPS控制面板,为VoIP提供商提供支持的功能。
学习如何在Fedora 28上安装Akaunting,一款适合小型企业和自由职业者的开源会计软件。
使用其他系统?Mailtrain是一个基于Node.js和MySQL / MariaDB构建的开源自托管新闻通讯应用程序。
了解導致Minecraft延遲的原因和解決方案,包括優化伺服器性能和減少滯後的步驟。
勒索軟件攻擊呈上升趨勢,但人工智能能否幫助應對最新的計算機病毒?AI 是答案嗎?在這裡閱讀知道是 AI 布恩還是禍根
ReactOS,一個開源和免費的操作系統,這裡有最新版本。它能否滿足現代 Windows 用戶的需求並打倒微軟?讓我們更多地了解這種老式但更新的操作系統體驗。
Whatsapp 終於為 Mac 和 Windows 用戶推出了桌面應用程序。現在您可以輕鬆地從 Windows 或 Mac 訪問 Whatsapp。適用於 Windows 8+ 和 Mac OS 10.9+
閱讀本文以了解人工智能如何在小型公司中變得流行,以及它如何增加使它們成長並為競爭對手提供優勢的可能性。
最近,Apple 發布了 macOS Catalina 10.15.4 補充更新以修復問題,但似乎該更新引起了更多問題,導致 mac 機器變磚。閱讀這篇文章以了解更多信息