can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP Topic is solved

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.
Post Reply
r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Sun Nov 29, 2020 1:57 pm

Hi guys!! long time don't come to these forums, this is not really a question of support just some help needed if you can.

I'm not working on joomla now, but yesterday I've installed a fresh Fedora 33 on a new HDD and setup a LAMP stack (apache/mariadb/php7.4). So why not test Joomla 4 before it arrives?

I downloaded through CLI the latest beta (beta 5) and tried install but I get a whoops 500 error on first load.
No data have been passed (db and all that stuff). So I'm not experienced linux user or apache administrator, I'm on linux for just 1 year and always managed apache on xampp (windows) and shared hostings, I guess maybe I'm messing in something else that is not joomla, or need setup something from apache.

I let here more data about my lamp:

Joomla:
Ver: 4 (beta 5) fresh install.
File permissions:

Code: Select all

drwxrwxr-x. 1 apache apache   146 oct 27 16:43 administrator
drwxrwxr-x. 1 apache apache    70 oct 27 16:43 api
drwxrwxr-x. 1 apache apache    20 oct 27 16:43 cache
drwxrwxr-x. 1 apache apache    40 oct 27 16:43 cli
drwxrwxr-x. 1 apache apache   374 oct 27 16:43 components
drwxrwxr-x. 1 apache apache   128 oct 27 16:43 images
drwxrwxr-x. 1 apache apache    82 oct 27 16:43 includes
-rwxrwxr-x. 1 apache apache  1052 oct 27 16:43 index.php
drwxrwxr-x. 1 apache apache   248 oct 27 16:43 installation
drwxrwxr-x. 1 apache apache    48 oct 27 16:43 language
drwxrwxr-x. 1 apache apache    78 oct 27 16:43 layouts
drwxrwxr-x. 1 apache apache   332 oct 27 16:44 libraries
-rwxrwxr-x. 1 apache apache 18092 oct 27 16:43 LICENSE.txt
drwxrwxr-x. 1 apache apache  1810 oct 27 16:46 media
drwxrwxr-x. 1 apache apache   704 oct 27 16:43 modules
drwxrwxr-x. 1 apache apache   424 oct 27 16:43 plugins
-rwxrwxr-x. 1 apache apache  4925 oct 27 16:43 README.txt
-rwxrwxr-x. 1 apache apache   845 oct 27 16:43 robots.txt.dist
drwxrwxr-x. 1 apache apache    52 oct 27 16:43 templates
drwxrwxr-x. 1 apache apache    20 oct 27 16:43 tmp
-rwxrwxr-x. 1 apache apache  2974 oct 27 16:43 web.config.txt
APACHE: Apache/2.4.46 (Fedora)
According to fedora's docs I'm making my apache configs on a custom file:

/etc/httpd/conf.d/000_custom.conf

Code: Select all

<VirtualHost _default_:80>
</VirtualHost>
<VirtualHost *:80>

        ServerName www.joom-test.me
        ServerAlias joom-test.me
        DocumentRoot /var/www/joom-test.me
        ErrorLog /var/www/joomla_AP_log

        <Directory /var/www/joom-test.me>
        AllowOverride All
        allow from all
        </Directory>

</VirtualHost>

<VirtualHost *:80>

        ServerName www.wp-test.me
        ServerAlias wp.test.me
        DocumentRoot /var/www/wp-test.me
        ErrorLog /var/www/wp_AP_log

        <Directory /var/www/wp-test.me>
                AllowOverride All
        </Directory>

</VirtualHost>
as you see there are 2 virtualhosts 1 hosting joomla, another with wordpress also fresh install. The wordpress install works fine. All log files on mycustom config still clean. For some reason the forum don't allow me to paste logs here so I made some pastebins:

/var/log/httpd/access_log pastebin
/var/log/httpd/error_log pastebin


PHP-FPM: PHP 7.4.12 (fpm-fcgi)
config that I have changed on php.ini:

Code: Select all

output_buffering = 0
max_execution_time = 300
memory_limit = 256M
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
error_log = /var/www/php.log
I have no log error, the only files are in /var/logs/php-fpm/ and there are no errors.

DATABASE:
Server version: 10.4.17-MariaDB MariaDB Server

EDIT: I forgot to say that I've seen the fix posted for database, but there is no database to fix yet, so that won't work here---- fresh install

User avatar
ceford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by ceford » Sun Nov 29, 2020 4:35 pm

There has been a very recent problem with favicon in templates/cassiopeia. Look at the templateDetails.xml file - is favicon listed? If yes, check the favicon.ico file is present in the template root - copy it there from images. These lines in your access log give you a clue to what is going on:

Code: Select all

127.0.0.1 - - [29/Nov/2020:07:56:21 -0300] "GET /installation/index.php HTTP/1.1" 500 869 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/2010010>
127.0.0.1 - - [29/Nov/2020:07:56:25 -0300] "GET /favicon.ico HTTP/1.1" 404 196 "http://www.joom-test.me/installation/index.php" "Mozilla/5.0 (X11; Fedora; Li>
Is using the cli the same as downloading the installation zip or gz file and expanding that?

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Sun Nov 29, 2020 6:49 pm

Thanks Ceford for your help, I'm sorry I opened the file on cli last post and was shorted, I run again the install to see the new log on my code editor, here are the complete lines:

Code: Select all

127.0.0.1 - - [29/Nov/2020:15:37:29 -0300] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [29/Nov/2020:15:37:30 -0300] "GET /installation/index.php HTTP/1.1" 500 869 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
127.0.0.1 - - [29/Nov/2020:15:37:32 -0300] "GET /favicon.ico HTTP/1.1" 302 - "http://www.joom-test.me/installation/index.php" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0"
ceford wrote:
Sun Nov 29, 2020 4:35 pm
There has been a very recent problem with favicon in templates/cassiopeia. Look at the templateDetails.xml file - is favicon listed? If yes, check the favicon.ico file is present in the template root - copy it there from images.
About favicon, is listed on xml, but I already have the file on 2 places:

/installation/favicon.ico
/templates/cassiopeia/favicon.ico

User avatar
ceford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by ceford » Sun Nov 29, 2020 7:33 pm

favicon.ico is probably not relevant - but it suggests the virtual host is wrong - try localhost?

I just downloaded Beta 5 from here:

https://www.joomla.org/announcements/re ... lpha3.html

Unpacked it in my Sites folder (on a Mac) and began the install. Up comes the first screen - Joomla Installer.

Did you do all that? What exactly did you see? The obvious things to check are that the web server user has write access. Have a look for the php error log. Database credentials are needed on screen 3. Did you get that far? Come back if you find anything.

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Sun Nov 29, 2020 9:53 pm

I downloaded from that link before too (just using cli but same file).
Ok I started again just delete everything and reinstall everything- php, apache, etc. Didn't use cli to unzip files. But didn't change nothing this time, just LAMP as it's by default, set linux permissions, selinux chown chmod all that stuff and test again.

I get exactly same error, same logs (nothing on php, httpd stops after the favicon line). I still thinking is a problem of my configuration and not from joomla, so I want to check something else. I have been used this same config on joomla 3.9 on the past but with php 7.2 (7.4 now), so if is not php version maybe I could try with the last 3x joomla and then, if works > update to J4. if not then maybe downgrade php.

I guess I can update from the latest 3x right??

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 11992
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by brian » Sun Nov 29, 2020 9:55 pm

GET /installation/index.php HTTP/1.1" 500 869

this 500 error indicates a server error
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
ceford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by ceford » Sun Nov 29, 2020 10:14 pm

I suspect your apache server does not have permission to write the namespace map. Try creating administrator/cache and give it 777 permission. Or installation/cache?

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Mon Nov 30, 2020 12:56 am

I give 77 to both cache folders, nothing.
Restarted again with nginx this time I follow these docs:
Joomla docs
HowToForge LEMP fedora 32
Fedora Project

And obtained same result, log:

Code: Select all

2020/11/29 21:03:05 [error] 18498#0: *10 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: ::1, server: _, request: "GET /favicon.ico HTTP/1.1", host: "localhost", referrer: "http://localhost/installation/index.php" 
I manually copy favicon on root folder (where is htaccess on apache), same result but now my log file doesn't record any error, but still not working.

Never passed any step, page loads installation/index.php and give me the nginx error page. Ok I done with this for now. I've installed wordpress, grav and drupal on this machine (just testing doesnt test more than run installers) also tested some own php scripts. and everything works fine excepting on Joomla :(

If I find some solution I will posted here but I think I will wait for Joomla 4 for being released on its stable version.

Thanks for your help!!!

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 9999
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by sozzled » Mon Nov 30, 2020 1:14 am

1) @brian identified the problem website has a 500 [Internal Server Error] problem. See general tips about those kinds of issues here: viewtopic.php?f=706&t=976319

I would be looking at that, first. ;)

2) Only as a last resort would I decrease your website' security by setting a folder (or a file) to 777 (and then only for a minute or two and then I would revert those changes to their default settings whether the change worked or not).

3) Wait until J! 4 is stable? Good question. When do you think that will be? If you know something that we don't know, I think you'll be in for a wait.

4) Favicon problems? If you've followed all the recommendations about how to use favicon.ico files in J! (and these are explained in detail in the documentation website), if you are not seeing a change in the favicon in your browser, chances are you need to force a browser refresh. (Try a different browser or two just to double-check.) I think you're placing your favicon.ico in a folder that the template cannot access.
Last edited by sozzled on Mon Nov 30, 2020 1:19 am, edited 1 time in total.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Mon Nov 30, 2020 1:17 am

here are some another messages I didn't check before:
on access_log:

Code: Select all

127.0.0.1 - - [29/Nov/2020:21:57:54 -0300] "GET /installation HTTP/1.1" 301 169 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/>
127.0.0.1 - - [29/Nov/2020:21:57:54 -0300] "GET /installation/ HTTP/1.1" 502 157 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox>
127.0.0.1 - - [29/Nov/2020:22:02:09 -0300] "GET /installation/ HTTP/1.1" 500 881 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox>
127.0.0.1 - - [29/Nov/2020:22:04:19 -0300] "GET /installation/ HTTP/1.1" 500 881 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:83.0) Gecko/20100101 Firefox>
php log

Code: Select all

[29-Nov-2020 22:03:42] NOTICE: fpm is running, pid 3640
[29-Nov-2020 22:03:42] NOTICE: ready to handle connections
[29-Nov-2020 22:03:42] NOTICE: systemd monitor interval set to 10000ms
All files belong to nginx user and nginx group. chmod at 755, and I left a note about joomla Doc about nginx.

On confif file This:

Code: Select all

fastcgi_pass  127.0.0.1:9000;
result on server error, according to fedora's forums I replace it for:

Code: Select all

fastcgi_pass  unix:/run/php-fpm/www.sock;

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Mon Nov 30, 2020 1:29 am

sozzled wrote:
Mon Nov 30, 2020 1:14 am
1) @brian identified the problem website has a 500 [Internal Server Error] problem. See general tips about those kinds of issues here: viewtopic.php?f=706&t=976319

I would be looking at that, first. ;)
I couldn't find anything about 500 error on first trying (with apache server), try also use 777 chmod. I will read that guide you link, maybe I find the answer there.
3) Wait until J! 4 is stable? Good question. When do you think that will be? If you know something that we don't know, I think you'll be in for a wait.
I know won't be soon, I don't have any joomla site right know, just wanted to see what was cooking on Joomla's kitchen. Not using any cms I'm on a diff line of work now.

I will read that link and if not work will try to do it on another place, perhaps on some folder on my shared hosting. I will back and tell what have find in a couple of days.

Thanks all for your help!

User avatar
ceford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by ceford » Mon Nov 30, 2020 5:57 am

502 is Bad Gateway and you mention nginx user and group but your previous post showed the user and group as apache. Using shared hosting depends on the hosting service using [thingy] to make the virtual web user match the account owner user. For experimentation I recommend you persevere with your local installation. And just use a sub-folder of the default installation. Setting up virtual hosts is an over-elaboration you do not need for a local host.

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 9999
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by sozzled » Mon Nov 30, 2020 6:02 am

I don't agree with the idea of installing a new instance of J! as a sub-folder of an existing instance of J! (irrespective of the versions used in either instance). This causes even more problems unless one pays attention to the Rewrite Base setting in .htaccess (and, even then, that doesn't cure everything).

If someone is serious about wanting help to debug an instance of J!, one might consider using the Forum Post Assistant report generator, perhaps? Or, I suppose, one could wait until J! 4 is released as a stable version in the next 12-24 months (or whenever it's likely to appear); who knows?
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

User avatar
ceford
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 165
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by ceford » Mon Nov 30, 2020 6:18 am

sozzled wrote:
Mon Nov 30, 2020 6:02 am
I don't agree with the idea of installing a new instance of J! as a sub-folder of an existing instance of J! (irrespective of the versions used in either instance).
You misunderstood what I meant, or I did not explain it well enough. Depending on which Linux version you choose, the default web location is something like /var/www/html and you can put different software in different subfolders. For example, /var/www/html/joomla and /var/www/html/wordpress. They all work fine. I have dozens of different packages arranged like that - quick and easy for testing. No need to mess with apache configuration. .htaccess works fine.

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 9999
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by sozzled » Mon Nov 30, 2020 6:25 am

That makes sense. Of course, every website needs to be created in its own folder (and that folder is always a sub-folder of something else); that's commonsense. Unfortunately for us, when people start out with their spanking new web hosting account, they're presented with a folder named something like /public_html but, instead of creating a sub-folder for their [first] website as /public_html/website1 and redirecting the DNS record to point to that folder, they simply install their website directly into /public_html. Then, when they create their second website, they install it as a sub-folder of /public_html (which already contains a website), e.g. /public_html/website2 ... and that's when people run into problems with domains, sub-domains, and how the DNS records are setup.

Too much to go into all the detail but, yes, we need to be quite clear on what we're saying.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

r4v3n
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sat Apr 11, 2020 9:51 pm

Re: can you help me troobleshooting a joomla 4 beta fresh install on Local LAMP

Post by r4v3n » Sat Dec 05, 2020 11:35 pm

Hey guys! sorry for no write before, I've been busy with other stuff. I find my problem, didn't install joomla but I can see installer now without errors.

Problem was regarding php-fpm permissions, php-fpm needs to run with same user as apache (or nginx) and joomla. With nginx just need to set up a php-fpm pool.

This helped me to fix the issue:
https://gist.github.com/fyrebase/62262b1ff33a6aaf5a54
viewtopic.php?f=706&t=976319

If someone needs I can write all the steps to make it work on nginx later, just ask.

Thanks all for your help!


Post Reply

Return to “Joomla! 4 Related”