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

Can't install #54

Open
AlienRenders opened this issue Oct 9, 2022 · 6 comments
Open

Can't install #54

AlienRenders opened this issue Oct 9, 2022 · 6 comments

Comments

@AlienRenders
Copy link

I followed all the instructions, but when I try to load the site via Apache, I get the following below. Anyone know what I'm doing wrong?

The following error occurred:
Return type of pachno\core\framework\Parameterholder::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
The following error occured:
Return type of pachno\core\framework\Parameterholder::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in E:\Projects\pachno\core\framework\Parameterholder.php, line 60

@AlienRenders
Copy link
Author

Ok, so it doesn't work with php 8. I started from scratch using php 7 and got a bit further. For composer, you need to install it using the dev option and then installed in the pachno folder. This should be added in the instructions. Then a command line is opened in the pachno folder and "composer update" is run.

Next, I configured Apache and MySQL. You need to create the database manually with "CREATE DATABASE pachno;" in the mysql command line tool.

Next I went through the configuration via web browser using Apache. It seemed to have completed fine. I restarted Apache, but it just redirects to /public/projects and I get 404. Same for /public/login

Not sure what to do now. All that work to end up with 404.

@AlienRenders
Copy link
Author

So it was the URL rewriting. It seems it's impossible to have pachno in a separate folder. I had to copy the pachno into the htdocs folder. I had to rework the Apache config files. And even when I could see something finally, the images still wouldn't load. It expects all images to be at the root folder. So I had to copy all the images in the pachno folder to the root of htdocs. This is not practical. I also had to copy the unthemed folder to the root of htdocs. Again, not practical. But it seems to somewhat work even if it completely clobbered the htdocs folder.

This should really be fixed.

@altomarketing
Copy link

can you finally install it ?

@prowell1984
Copy link

I have the same issue as @AlienRenders. I cannot make it install. I tried following @AlienRenders instructions, but unfrotunately, no success. Can you give clear instructions / commands how to make it work (ideally with examples)? I use apache2 and mysql. I managed to get to the 404 page with localhost/projects and this is where I'm stuck.

Pachno seems like everything I'm looking for. Can you help this love?? ;-)

@prowell1984
Copy link

Ok, I got it to work after further reading the clustered documentation. I placed the project in /var/www and created a symbolic link:

  1. place pachno project in /var/www
  2. ln -s /var/www/public /var/www/html
  3. chown www-data:www-data -R /var/www
    Aparently, changing the html folder location is challenging and the symbolic link solves the hassle. There was also some work done on the rewrite feature of the apache2.

So in the end it works. :-)

@zegenie
Copy link
Contributor

zegenie commented May 12, 2023

@AlienRenders @prowell1984 As mentioned in the documentation, Pachno requires to be configured to run on a separate apache virtual host, it is not designed to run in a subfolder. There is experimental support for running it in a subfolder, but this is not a priority. A standard virtual host with rewriting enabled is all that is required, and there are example files for virtual host setups for apache included in the docs/ folder.

Feel free to suggest improvements to the documentation :)

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

4 participants