Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i have problem (config/ampache.cfg.php #22

Open
JeromePark opened this issue Jun 2, 2018 · 7 comments
Open

i have problem (config/ampache.cfg.php #22

JeromePark opened this issue Jun 2, 2018 · 7 comments
Labels
config config file related issues

Comments

@JeromePark
Copy link

Hi.

im trying to install ampache with aws cloud server(Amazon), but i'm facing the problem in "config/ampache.cfg.php"

(I already installed LAMP)
first of all, i installed ampache 3.8.6 version and also composer, i guess this is a newest version. (https://github.com/ampache/ampache/releases/tag/3.8.6)

secondly, i proceeded smoothly to move ampache files to var/www/html directory.

i connected to ampache installation server with my aws public IP address and i proceeded only step 1.

And now i got trouble in step 2 which is about config...

I saw a lot of advices in google which change the permission (ex. chmod -R 777)
and i tried it...

in my ampache/config directory, there are 3 files,
ampache.cfg.php.dist, motd.php.dist, registration_agreement.php.dist

i downloaded and moved the other cfg.php file to config directory, but the installation screen doesn't work...

According to the step 2's manual,
"If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in /var/www/html/ampache"

I tried to click 'download' or 'write' also, it does not work either...

Please help me to resolve it i REALLY need help ;(((

Thanks (Sorry about little grammar mistakes, im not good at english...;) )

Jerome.

@KacperBak
Copy link

KacperBak commented Dec 30, 2019

Same here, getting stuck in step 2 of the installer.
Error message: "Invalid configuration settings
Configuration files were either not found or unreadable"

For the configs:

config/ampache.cfg.php exists?
config/ampache.cfg.php configured?

Screenshot 2019-12-30 at 23 31 01

I used the following command to start the docker Image:

docker run --name=ampache -d -v /Users/kaba/tmp/ampache:/media:ro -p 80:80 ampache/ampache

The volume folder does contain one mp3 album and one large mp3.
Best thanks for all help in advance ;-)

@lachlan-00
Copy link
Member

lachlan-00 commented Jan 1, 2020

"secondly, i proceeded smoothly to move ampache files to var/www/html directory."
@JeromePark it's probably file permissions in the web directory.

i don't know what amazon use but if it's centos your web user is usually apache and if it's debian/ubuntu then your web user is www-data

chown -R www-data:www-data /var/www/html/
chmod -R 754 /var/www/html/

@ramiws
Copy link

ramiws commented Jun 10, 2020

Same here, getting stuck in step 2 of the installer.
Error message: "Invalid configuration settings
Configuration files were either not found or unreadable"

For the configs:

config/ampache.cfg.php exists?
config/ampache.cfg.php configured?
Screenshot 2019-12-30 at 23 31 01

I used the following command to start the docker Image:

docker run --name=ampache -d -v /Users/kaba/tmp/ampache:/media:ro -p 80:80 ampache/ampache

The volume folder does contain one mp3 album and one large mp3.
Best thanks for all help in advance ;-)

Same here, with same screen shot

@lachlan-00 lachlan-00 added the config config file related issues label Aug 6, 2020
@electrified
Copy link

electrified commented Jan 16, 2021

I also faced the same issue when using the docker compose file - same as in the above screenshot

The problem was, I was just blindly accepted the default values, so it was trying to use the mysql root user, and not specifying a password. (I thought this would be OK as I thought local socket connections without password are OK?)

Using the username/ password from the mysql startup output succeeded

ampache    | You can now connect to this MySQL Server using:
ampache    | 
ampache    |     mysql -uadmin -pblah -h<host> -P<port>
ampache    | 

So I think the db connection was failing in install_create_config, causing the config file to not be created, but the error message shown didn't mention the db connection failure at all so it was super confusing. :)

@FootKaput
Copy link

FootKaput commented Sep 7, 2021

waaaaaaay late to the party, but ran into this too. I tried a lot of times with docker and got all of the above errors.

The fix? put a copy of ampache.cfg.php.dist in your ./data/config/ folder, and set perms/owner.

$ wget -P ./data/config https://raw.githubusercontent.com/ampache/ampache/develop/config/ampache.cfg.php.dist
$ chown www-data:www-data ./data/config -R

Then proceed as normal. Good luck!

@HsuJv
Copy link

HsuJv commented Feb 3, 2022

I just have a copy of the dist config file

# cp data/config/ampache.cfg.php.dist  data/config/ampache.cfg.php

And chmod 0777 on it and then everything works well.

@Matthewaferraro
Copy link

I did a install on centos, using https://nxnjz.net/2019/02/installation-of-ampache-on-centos-7/
when i got to the install of ampache via URL:install.php I get the above situation and no matter what i do, chose,not chose, copy/add cfg.php , etc it skips step 3 and goes directly to the login page, and i cant login. I cant do a reset admin password via the cfg.php with false /admin because i cant do any admin work because there are no users in browse users so i am denied adding users etc....

any ideas why /what is making it skip step 3 page?? or how to get a admin user in there after creating config cfg.php??

thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config config file related issues
Projects
None yet
Development

No branches or pull requests

8 participants