简体   繁体   English

Ampache安装页面无法正确显示

[英]Ampache install page not displaying correctly

Having installed Ampache into my Apache server, I navigated to localhost/ampache/install.php. 将Ampache安装到我的Apache服务器后,我导航到localhost / ampache / install.php。

However, the page didn't display correctly on any devices. 但是,该页面在任何设备上均无法正确显示。

It's supposed to look like this apparently: 应该看起来像这样:

How it's supposed to look 它应该看起来如何

The page on my server looks like this: 我服务器上的页面如下所示:

How it's probably not supposed to look 看起来不应该看起来如何

Any ideas on how to fix this? 有想法该怎么解决这个吗?

Thanks, in advance. 提前致谢。

It would seem like that the file ampache.cfg.php isn't writable. 似乎ampache.cfg.php文件不可写。

Go to the file (Localted at /usr/share/ampache/www/config/ampache.cfg.php and see what the rights tot the file is. If the file exists and there is no write rights for it, then simply change it using chmod. 转到文件(位于/usr/share/ampache/www/config/ampache.cfg.php,查看文件的权限。如果该文件存在并且没有写权限,则只需对其进行更改使用chmod。

The user that needs the write-rights are called www-data or apache. 需要写权限的用户称为www-data或apache。

Assuming it's apache run the following: 假设它是Apache,请运行以下命令:

chgrp -Rv apache /usr/share/ampache/www/config/ampache.cfg.php
chmod g=rwx -R /usr/share/ampache/www/config/ampache.cfg.php

That will give apache ownership of the group, and give the group read/write/execute rights to that file. 这将赋予该组Apache的所有权,并赋予该组对该文件的读/写/执行权限。

Either that, or maybe you don't have MySQL server installed (Or perhaps a user in MySQL with the appropriate rights/permissions). 要么就是这样,要么您没有安装MySQL服务器(或者也许是具有适当权限的MySQL用户)。

Also the config file (ampache.cfg.php), needs to have the right information in it, with server, username and password. 另外,配置文件(ampache.cfg.php)也需要包含服务器,用户名和密码的正确信息。

It's very simple. 非常简单
This is because your PHP port is being used by another service on your system. 这是因为您的PHP端口正在由系统上的另一个服务使用。
Open your task manager and navigate to the services tab. 打开任务管理器,然后导航到服务选项卡。
Search for world wide web services and stop it. 搜索万维网服务并停止它。
Now refresh your WAMP and the WAMP icon should turn green within a few seconds. 现在刷新您的WAMP,WAMP图标将在几秒钟内变为绿色。
Open the link again and success!!! 再次打开链接,成功!!! 🙂 🙂

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM