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

Need help to start : admin 404 error #580

Open
SadarSSI opened this issue Apr 21, 2022 · 5 comments
Open

Need help to start : admin 404 error #580

SadarSSI opened this issue Apr 21, 2022 · 5 comments

Comments

@SadarSSI
Copy link

Hello,
I just installed flextype and I have a 404 error for admin and home.

My configuration : docker php:8.0-apache

The mod_rewrite module is installed and in the apache 000-default.conf configuration file, the documentroot is set to /app/flextype

<VirtualHost *:80>

DocumentRoot "/app/flextype"

<Directory /app/flextype>
Options Indexes FollowSymLinks MultiViews
allow from all
Require all granted

my url http://mylocalserver:8091/ does display the flextype home page, but the admin link points to http://mylocalserver:8091/admin which does not exist.

http://mylocalserver:8091/project displays the contents of the ./project folder

image

In the .htaccess file Rewrite is set to / and I didn't modify the ./src/flextype/settings.yaml file

Should I change anything else? I couldn't find (or understand) what to do in the documentation.

Thanks for your help

@SadarSSI
Copy link
Author

Ok, I found: PHP8

I just did the same thing in PHP7-4 and it works with some changes in the DockerFile to make it work.

I don't know why it doesn't work in PHP8, at least with this docker build (...)

@SadarSSI SadarSSI reopened this Apr 21, 2022
@SadarSSI
Copy link
Author

SadarSSI commented Apr 21, 2022

For info my Dockerfile

FROM php:7.4-apache

SEND COMPOSER_ALLOW_SUPERUSER=1

PRESENTATION 80
WORKDIR /app

RUN apt-get update -qq && \
     apt-get install -qy\
     git\
     gnupg\
     libicu-dev \
     libzip-dev\
     libfreetype6-dev\
     libjpeg62-turbo-dev\
     libpng-dev\
     libonig-dev\
     libxml2-dev\
     zlib1g-dev\
     unzip\
     zipper\
     docker-php-ext-configure gd --with-freetype --with-jpeg && \
     docker-php-ext-install -j$(nproc) gd json fileinfo mbstring gd json fileinfo dom && \
     docker-php-ext-configure zip &&\
     curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
     apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN a2enmod rewrite log_debug

CMD ["apachectl", "-D", "FOREGROUND"]

docker run

docker run --name flextype --hostname=flextype --env TZ=Europe/Paris --rm -it --network web --publish 8093:80/tcp --mount type=bind,source=/mnt/docker/apps/test/conf/php.ini,target=/usr/local/etc/php/conf.d/app.ini --mount type=bind,source=/mnt/docker/apps/test/app/flextype,target=/var/www/html

@Awilum
Copy link
Member

Awilum commented Apr 22, 2022

Did you fix your installation issue ?

If you are installing Flextype 0.9.x please check this page
https://awilum.github.io/flextype/documentation/getting-started/installation/

@SadarSSI
Copy link
Author

Hello,

Yes, I had read this document and respected the instructions / recommendations. I don't know why it doesn't work in PHP8, I ended up trying a PHP 7.4 install and found it worked

@Awilum
Copy link
Member

Awilum commented Apr 25, 2022

It's strange, because, I just checked https://github.com/flextype/flextype/releases/download/v0.9.16/flextype-cms-0.9.16.zip on my php 8.0.8 - it works without 404 issues

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

2 participants