Hai Tran Dinh Posted November 15, 2023 Share Posted November 15, 2023 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. Link to comment Share on other sites More sharing options...
0 d00p Posted November 15, 2023 Share Posted November 15, 2023 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 More sharing options...
0 Hai Tran Dinh Posted November 15, 2023 Author Share Posted November 15, 2023 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? Link to comment Share on other sites More sharing options...
0 d00p Posted November 15, 2023 Share Posted November 15, 2023 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 More sharing options...
0 Hai Tran Dinh Posted November 15, 2023 Author Share Posted November 15, 2023 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. Link to comment Share on other sites More sharing options...
0 d00p Posted November 15, 2023 Share Posted November 15, 2023 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 More sharing options...
0 Hai Tran Dinh Posted November 15, 2023 Author Share Posted November 15, 2023 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 More sharing options...
0 d00p Posted November 15, 2023 Share Posted November 15, 2023 heres a video of a standard installation which works perfectly fine: Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 Hey! new user here. I have the exact same issue. On ubuntu 22.04 on a VPS. All went ok on installation... php is not rendering.. Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 Be sure to use the fqdn you've specified and possibly try an Apache restart (not just reload). Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 I did try with the FQDN (and without) same result. I did restart apache. I even rebooted the vps same. Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 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 More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 I followed the instructions to the letter https://docs.froxlor.org/latest/general/installation/apt-package.html created the database started the installation. run the command line (copy and paste) with no errors. when I pressed finish setup I got raw php. not rendered. Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 whats the output of the finalizing cli command you've ran? Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 Also, maybe better join discord so we can discuss and check more efficiently... Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 ln: failed to create symbolic link '/usr/local/bin/froxlor-cli': File exists All services have been configured Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 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 More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 I will reinstall the VPS.. anyway. thanks for the fast support! Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 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 More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 I use Ubuntu. good to know about mod_php. the fpm sock was owned by froxlot+ so that may caused an issue. anyways it is faster to reinstall Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 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 More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 try this: a2disconf php8.1-fpm It looks like it's using the default alias Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 and also: you have to use the fqdn you've specified in the installation or else the webserver will not use the correct virtual-host config and will not use the froxlor generated configs for php-fpm Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 14 minutes ago, d00p said: try this: a2disconf php8.1-fpm It looks like it's using the default alias if I disable it then I see raw text. php is not rendered. and I do use the FQDN Link to comment Share on other sites More sharing options...
0 d00p Posted November 26, 2023 Share Posted November 26, 2023 Just now, Noiro said: and I do use the FQDN well you have to...it wont work otherwise Link to comment Share on other sites More sharing options...
0 Noiro Posted November 26, 2023 Share Posted November 26, 2023 1 minute ago, d00p said: well you have to...it wont work otherwise yes I understand,I am using the fqdn... Link to comment Share on other sites More sharing options...
Question
Hai Tran Dinh
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.
Link to comment
Share on other sites
25 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now