Jump to content
Froxlor Forum
  • 1

Froxlor showing PHP code after configuration step is finished.


Hai Tran Dinh

Question

Hello,

Recently decided to play around with Froxlor, however, after configuration steps, it's showing only PHP code.

I have followed the installation guide, I only modify php.ini to enable php-gd since it didn't enable, that's all.
What should I do?

Url https://froxlor.haitran.me/froxlor FQDN
IP 54.169.228.108/froxlor

Let me know if you need any log file.

image.thumb.png.372d09b1033164d775e00e290985d7bf.png

image.thumb.png.8df496cfc10fc7b83f3a6369a8303527.png

Link to comment
Share on other sites

25 answers to this question

Recommended Posts

  • 0

In case the installation process went through successfully, you did specify a fqdn there, you need to use it instead of the ip address, because it's configured to use php-fpm.

Try forcing the cron to regenerate all configs and see if there are any errors:
 

/var/www/html/froxlor/bin/froxlor-cli froxlor:cron -fd

 

Link to comment
Share on other sites

  • 0
33 minutes ago, d00p said:

In case the installation process went through successfully, you did specify a fqdn there, you need to use it instead of the ip address, because it's configured to use php-fpm.

Try forcing the cron to regenerate all configs and see if there are any errors:
 

/var/www/html/froxlor/bin/froxlor-cli froxlor:cron -fd

 

They're seem fine and all set. (Attached image)

When I access froxlor via a FQDN, it is still showing me a page with PHP code, I should expect login page, right?

image.thumb.png.e87a62f7f893d5e65d70f2a66a5b01eb.png

Link to comment
Share on other sites

  • 0

well your domain resolves to the ip-addresses: 

froxlor.haitran.me.    285    IN    A    104.21.81.131
froxlor.haitran.me.    285    IN    A    172.67.161.47

Configured in your froxlor seems to be 54.169.228.108 and an ipv6

Link to comment
Share on other sites

  • 0
1 hour ago, d00p said:

well your domain resolves to the ip-addresses: 

froxlor.haitran.me.    285    IN    A    104.21.81.131
froxlor.haitran.me.    285    IN    A    172.67.161.47

Configured in your froxlor seems to be 54.169.228.108 and an ipv6

I am using Cloudflare DNS, it is hiding my real server IP, I am sure all A records are pointing correct, I CAN access Froxlor via FQDN, however, it is showing PHP code page as I mentioned above.

image.thumb.png.5dda913ae94a72146015c574b2b7f031.png

Link to comment
Share on other sites

  • 0

Then something is not correct because your php does not get parsed. The default installation sets up php-fpm which only works if the domain resolves correctly and thus the webserver uses the correct virtual-host config.

Did you try a simple "systemctl restart apache2"? Maybe the reload just did not do the job correctly...and by default you should not need to append the /froxlor path to the domain to access froxlor

Link to comment
Share on other sites

  • 0
4 minutes ago, d00p said:

Then something is not correct because your php does not get parsed. The default installation sets up php-fpm which only works if the domain resolves correctly and thus the webserver uses the correct virtual-host config.

Did you try a simple "systemctl restart apache2"? Maybe the reload just did not do the job correctly...and by default you should not need to append the /froxlor path to the domain to access froxlor

Yeah I thought so, I also did simple restart apache2, however it didn't work, i gonna do a fresh install again, hope it work this time. thanks mate!

Link to comment
Share on other sites

  • 0

Did you watch the setup-video on youtube? I dont know you setup, i dont know your domain, your ip, what you did on the installation etc.etc.etc - provide more details please. Otherwise my point is: works for me and plenty of other people

Link to comment
Share on other sites

  • 0

now I get this

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

apache error log

[Sun Nov 26 20:18:50.950270 2023] [proxy:error] [pid 6210] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*) failed
[Sun Nov 26 20:18:50.950318 2023] [proxy_fcgi:error] [pid 6210] [client x.x.x.x:63546] AH01079: failed to make connection to backend: httpd-UDS

 

Link to comment
Share on other sites

  • 0

well, i wanted the whole output, not your interpretation of what might be the issue...but fine.

No idea where php8.1 is coming from for you, but bookworm uses 8.2 as default, see https://packages.debian.org/bookworm/php

Froxlor uses the mod_php version used for the installation to set the php version for the php-fpm service which will be used by default. Also, froxlor will generate its own php-fpm sockets for itself and the customer-domain, the socket /run/php/php8.1-fpm.sock is definetly not created by froxlor.

and oh well....if you'd rather reinstall again...then good luck

Link to comment
Share on other sites

  • 0

ok did the reinstall. (UBUNTU 22.04)

now I get directly to service unavailable.

 

ps faux

 

root         768  0.0  3.1 223840 31140 ?        Ss   20:59   0:00 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
froxlor+     912  0.0  1.3 226472 13392 ?        S    20:59   0:00  \_ php-fpm: pool xxxx.xxxx.net
froxlor+     913  0.0  1.3 226472 13392 ?        S    20:59   0:00  \_ php-fpm: pool xxxx.xxxx.net

 

 

apache error log

[Sun Nov 26 21:02:15.314357 2023] [proxy_fcgi:error] [pid 978] [client x.x.x.x:52834] AH01079: failed to make connection to backend: httpd-UDS, referer: http://140.238.83.81/froxlor/install/install.php?step=2
[Sun Nov 26 21:06:01.569432 2023] [proxy:error] [pid 975] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*) failed
[Sun Nov 26 21:06:01.569462 2023] [proxy_fcgi:error] [pid 975] [client x.x.x.x:63683] AH01079: failed to make connection to backend: httpd-UDS
[Sun Nov 26 21:06:02.697163 2023] [proxy:error] [pid 977] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.1-fpm.sock (*) failed
[Sun Nov 26 21:06:02.697190 2023] [proxy_fcgi:error] [pid 977] [client x.x.x.x:63684] AH01079: failed to make connection to backend: httpd-UDS

 

I give up...

 

 

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...