LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2024, 04:49 PM   #1
jkaidor
Member
 
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33

Rep: Reputation: 23
Slackware 15.0 PHP INOP


Hello,

I'm bringing up a new server with Slackware 15.0. It's meant to replace a 14.2 server that is showing its age. There's a LOT of stuff to get working. Right now, attempting to get phpmyadmin up.

I installed phpmyadmin with the slackBuild. When I try to run it, I get the following:

-------------- snip ------------------
PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '
'); } // phpcs:disable PSR1.Files.SideEffects define('PHPMYADMIN', true); // phpcs:enable require_once ROOT_PATH . 'libraries/constants.php'; /** * Activate autoloader */ if (! @is_readable(AUTOLOAD_FILE)) { die( '

File ' . AUTOLOAD_FILE . ' missing or not readable.
' . '

Most likely you did not run Composer to ' . '' . 'install library files.
' ); } require AUTOLOAD_FILE; global $route, $containerBuilder, $request; Common::run(); $dispatcher = Routing::getDispatcher(); Routing::callControllerForRoute($request, $route, $dispatcher, $containerBuilder);
-------------- endsnip ---------------

If I say "php --version" from the CLI, I get
--------------- snip -----------------
PHP 7.4.27 (cli) (built: Dec 16 2021 13:00:17) ( ZTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.27, Copyright (c), by Zend Technologies
--------------- endsnip --------------

...So php does work. Yet the first snip shows php not functioning
at all. Instead of displaying the php version, it says "PHP_VERSION" -
some sort of text substitution that's not working.

I wrote a little tiny program:
-------------- snip ---------------
<?php
phpinfo();
?>
-------------- endsnip ------------
When I run that by aiming my browser at it, the http server segfaults.

------------ snip -----------------

[Fri Feb 02 14:12:25.789621 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26009 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:25.789715 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26064 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:25.789775 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26065 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:25.789860 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26073 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:25.789936 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26089 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:27.794510 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26179 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:28.799836 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26207 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:28.800082 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26208 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:29.812812 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26267 exit signal Segmentation fault (11)
[Fri Feb 02 14:12:29.813102 2024] [core:notice] [pid 1313:tid 139928041453504] AH00052: child pid 26282 exit signal Segmentation fault (11)
------------ endsnip --------------

I did enable mod_php by uncommenting the line in /etc/httpd/httpd.conf that includes mod_php.conf.

Anybody have a clue?

- Jerryk
 
Old 02-02-2024, 05:16 PM   #2
jkaidor
Member
 
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33

Original Poster
Rep: Reputation: 23
Stranger & stranger.... It just started working. No idea why. Now to migrate my databases for mysql from the old server.
 
Old 02-03-2024, 04:56 AM   #3
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 990

Rep: Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674Reputation: 674
Had httpd been restarted since you updated any php- or http- related package? Maybe it was such a restart that was required for it to "suddenly start working".

If you have no idea why things sometimes mess upp, I would start by running something like memtest on the machine (included as a boot option on the Slackware installation media) before migrating anything important to that machine.

regards Henrik
 
  


Reply



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
Marvell Yukon 88E8001 Chipset inop with 64 bit Slackware staus Slackware 10 08-29-2010 08:22 PM
Wireless network inop five40i Slackware - Installation 9 05-14-2006 02:06 PM
FC4 up2date inop - how to update bob151 Fedora 13 10-21-2005 02:43 PM
Inop Mouse Scroll Wheel - Revisited OldBob Linux - Newbie 1 08-04-2003 03:02 PM
hdparm inop now? HarleyMan Linux - Newbie 0 03-13-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 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