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

easyname hosting issues with symlinks via php #583

Closed
peasyname opened this issue Aug 26, 2020 · 15 comments
Closed

easyname hosting issues with symlinks via php #583

peasyname opened this issue Aug 26, 2020 · 15 comments

Comments

@peasyname
Copy link

hello,

until recently we had actually disabled the php function symlink(). Now we have a new experimental setup where this function is no longer disabled. however, the issue with the web install tool / contao manager remains the same. you can check the php info via https://contao.easynametest.com/phpnf0.php

You can also try running the tool yourself under https://contao.easynametest.com/contao-manager.phar.php
user: easynamesupport
pass: fDq3LbNf9im2FRL

We would like to be able to offer an automatised setup for contao in the future, but will not be able to as long as this problem persists.

thank you for getting back to us.

regards
the easyname Support Team

@Toflar
Copy link
Member

Toflar commented Aug 26, 2020

What's the problem? The Contao Manager reports that symlink() is missing on the CLI, not the web process. It has to be enabled in both SAPIs.

@peasyname
Copy link
Author

peasyname commented Aug 26, 2020 via email

@fritzmg
Copy link
Contributor

fritzmg commented Aug 26, 2020

@peasyname you need to upload screenshots directly on GitHub, it does not work with email replies to comments ;)

Presumably you mean that the Contao Manager is complaining about a non empty directory?

@peasyname
Copy link
Author

peasyname commented Aug 26, 2020

I see, here is the error message from the screenshot. The setup tool complains that it is in its own folder, but does not offer the possibility to use another folder instead:

ERROR 500 Unbekannter Installationsstatus
Auf Ihrem Server wurden Dateien gefunden, die keiner bekannten Contao-Version zugeordnet werden konnten.
Um Contao zu installieren, müssen Sie entweder Ihre Installation manuell reparieren oder folgende Dateien und Ordner entfernen:

  • contao-manager.phar.php

Edit:

here's a machine translation of the message as well:

ERROR 500 Unknown installation status
Files were found on your server that could not be assigned to any known Contao version.
To install Contao you either have to repair your installation manually or remove the following files and folders:

@fritzmg
Copy link
Contributor

fritzmg commented Aug 26, 2020

As explained in the documentation, you need to create an empty folder called web/ within the desired installation directory of the new Contao installation. Both the target directory and the web/ directory need to be empty. Then you put the contao-manager.phar into the newly created web/ folder, rename it to contao-manager.phar.php, change the DocumentRoot of the domain to the newly created web/ folder and then access https://example.com/contao-manager.phar.php. Is that the procedure you have done?

@peasyname
Copy link
Author

the only contents of my folder are the contao-manager.phar.php and the additional contao-manager folder the setup tool created. Can I configure another folder by changing the script?

@fritzmg
Copy link
Contributor

fritzmg commented Aug 26, 2020

the only contents of my folder

Which folder exactly?

Can I configure another folder by changing the script?

No, the contao-manager.phar.php must be located in the web/ sub-directory of the (future) Contao Installation.

@xchs
Copy link
Contributor

xchs commented Aug 26, 2020

@peasyname
Copy link
Author

I have two test cases now, one with a folder /html/contao-manager/(contao-manager.phar.php) and the other with /html/contao-manager/web/(contao-manager.phar.php) and its the same error:

ERROR 500 Unbekannter Installationsstatus
Auf Ihrem Server wurden Dateien gefunden, die keiner bekannten Contao-Version zugeordnet werden konnten.
Um Contao zu installieren, müssen Sie entweder Ihre Installation manuell reparieren oder folgende Dateien und Ordner entfernen:

  • contao-manager.phar.php

@fritzmg
Copy link
Contributor

fritzmg commented Aug 27, 2020

and the other with /html/contao-manager/web/(contao-manager.phar.php) and its the same error

Can you provide access to this test case?

The first test case is definitely wrong, as the contao-manager.phar.php needs to be within the web/ sub-directory of the future Contao installation.

@peasyname
Copy link
Author

peasyname commented Aug 27, 2020

user and pass are the same as in my previous post above

the one in the webfolder is reachable under https://contao-web.easynametest.com

the one in the contao-manager folder is still under https://contao.easynametest.com

if you need further access (ie. FTP) please email me under pa@easyname.at

@xchs
Copy link
Contributor

xchs commented Aug 27, 2020

and the other with /html/contao-manager/web/(contao-manager.phar.php) and its the same error

Did you set the DocumentRoot of https://contao-web.easynametest.com/ correctly to /html/contao-manager/web/? I would also choose an other name for the installation folder (i.e. instead of contao-manager/) since the Contao Manager also creates automatically a subdirectory with the same name (i.e. /html/contao-manager/contao-manager/) within your Contao installation. But well, of course it should still work. 😃

@aschempp
Copy link
Member

aschempp commented Sep 7, 2020

I assume this has been solved, and it does not look like a bug but rather a question.

@aschempp aschempp closed this as completed Sep 7, 2020
@fritzmg
Copy link
Contributor

fritzmg commented Sep 7, 2020

@aschempp the bug could be, that the installation does not work, if the target directory happens to be named contao-manager. But I haven't heard back from easyname about this yet, and I haven't confirmed this myself yet. I'll post here again if I do.

@aschempp
Copy link
Member

aschempp commented Sep 7, 2020

That wouldn't really make sense to me. The Contao Manager only checks if the current directory is names web, and decides to place the contao-manager in the parent or the current folder based on that. But yeah, lets wait for feedback and reopen if necessary.

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

No branches or pull requests

5 participants