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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-17-2021, 10:36 AM
|
#1
|
Member
Registered: Apr 2004
Posts: 739
Rep:
|
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.
|
|
|
11-18-2021, 12:51 AM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by walterbyrd
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...
|
|
|
11-24-2021, 12:39 PM
|
#3
|
Member
Registered: Apr 2004
Posts: 739
Original Poster
Rep:
|
# service php7.3-fpm status
[ ok ] php-fpm7.3 is running.
That is the complete, ungrepped output.
|
|
|
11-24-2021, 11:40 PM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
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
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
|
|
|
11-26-2021, 05:34 PM
|
#5
|
Member
Registered: Apr 2004
Posts: 739
Original Poster
Rep:
|
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.
|
|
|
11-28-2021, 01:03 PM
|
#6
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 4,039
|
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.
|
|
|
12-13-2021, 11:06 AM
|
#7
|
Member
Registered: Apr 2004
Posts: 739
Original Poster
Rep:
|
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.
|
|
|
12-14-2021, 08:57 AM
|
#8
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,361
|
PHP is well-known for "breaking changes" between language versions: things get "deprecated" and removed completely. Maybe this happened again?
|
|
|
All times are GMT -5. The time now is 07:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|