LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2021, 10:36 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
Upgraded to PHP 7.3 now nothing works


I am running Devuan and lighttpd.

Code:
# uname -a
Linux servername 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
I upgraded from php 7.0 to php 7.3. Now php does not seem to work at all.

Code:
# service php7.3-fpm status | grep running
php-fpm7.3 is running.
# ps -aux | grep httpd
www-data  1804  0.0  0.0  13024  2760 ?        S    05:23   0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
My phpinfo.php script is fairly simple.

Code:
# ls -l phpinfo.php
-rwxr-xr-x 1 www-data www-data 20 Nov 17 09:12 phpinfo.php
# cat phpino.php
<?php phpinfo(); ?>
But when I try to bring up phpinfo.php, in my browser, I get "503 Service Not Available". HTML scripts will run.

Last edited by walterbyrd; 11-17-2021 at 10:41 AM.
 
Old 11-18-2021, 12:51 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by walterbyrd View Post
Code:
# service php7.3-fpm status
Please show us the complete, ungrepped output.

Somebody recently reported a very similar problem: PHP7.x was apparently running, but no pid was found. I cannot find it right now because they didn't put PHP in the title...
 
Old 11-24-2021, 12:39 PM   #3
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
# service php7.3-fpm status
[ ok ] php-fpm7.3 is running.

That is the complete, ungrepped output.
 
Old 11-24-2021, 11:40 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Generally speaking, I would restart ALL affected services after the PHP upgrade - the server itself (httpd), all php services, etc. Possibly even in a certain order, or twice to be sure.

Quote:
Originally Posted by walterbyrd View Post
But when I try to bring up phpinfo.php, in my browser, I get "503 Service Not Available". HTML scripts will run.
A web search for the error message returns this PHP-related result:
https://www.cliffsupport.com/what-is...how-to-fix-it/
Good first troubleshooting steps I'd say.
More general, but also more detailed troubleshooting:
https://airbrake.io/blog/http-errors...ce-unavailable
 
Old 11-26-2021, 05:34 PM   #5
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
The server has been restarted many times since the error started. That does nothing.

I tried this:

# lighttpd -f /etc/lighttpd/lighttpd.conf
2021-11-26 16:26:37: (network.c.313) can't bind to socket: 0.0.0.0:80 Address already in use

I'm not sure how that makes sense, or what to do about it.
 
Old 11-28-2021, 01:03 PM   #6
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,660

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584

It would have been polite to inform people that you've given up on lighttpd and are now trying to get Apache working, so they may waste time responding to a redundant thread.

 
Old 12-13-2021, 11:06 AM   #7
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Got rid of lighttpd, and removed all PHP. Then re-installed PHP, which installs Apache. Same issue.

I should have mentioned that I was using lighttpd. I didn't because I felt the problem is with PHP, not the webserver. The webserver serves up HTML just fine. But PHP does not work at all.

I have re-installed a few times. I have checked, and re-checked the config files. I am not finding anything in the log files either.
 
Old 12-14-2021, 08:57 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,715
Blog Entries: 4

Rep: Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951
PHP is well-known for "breaking changes" between language versions: things get "deprecated" and removed completely. Maybe this happened again?
 
  


Reply

Tags
devuan, lighttpd, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgraded to Ubuntu 14.04.03 and now nothing ben44b Linux - Software 8 08-09-2015 05:07 AM
KDE 4.1.1 - there's nothing on the desktop, nothing works. lordmorgul23 SUSE / openSUSE 10 09-21-2008 04:23 AM
Linux Live CD works until HD install Now nothing works!! ?? gosport1 Linux - Laptop and Netbook 2 10-05-2006 07:02 PM
Just upgraded, now nothing in /dev !! Lord Zoltar Slackware 19 09-28-2006 01:06 AM
Upgraded Kernel - NOTHING WORKS ryanstrayer Linux - General 21 01-20-2002 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration