LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-14-2021, 02:36 PM   #1
ClintonB
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Rep: Reputation: Disabled
Setting up apache and php


Im new to linux and its been a steep learning curve but im stuck and was hoping someone could clear it up.

I have apache and php installed but php wont load any of the extensions and it reports that each on could not be loaded because of an undefined symbol.

I noticed building from source seems to be a common activity on linux and absent from windows. Do i need to recompile these extensions from the php source. I can jus try it but im just guessing and going in circles.
 
Old 10-14-2021, 02:45 PM   #2
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
you can have a look at https://docs.slackware.com/howtos:mi...t_on_slackware

thing is, its no good mentioning problem without posting details of problem .
 
Old 10-14-2021, 03:01 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions.

What linux distribution/version are you running?

You might not of installed all the necessary modules to run your php script. It will help to understand what you are trying to accomplish.

It depends on the distribution but the package repository i.e the place where you download programs should have the missing modules and you should not have to build anything from source but it again depends on what you are trying ot accomplish.
 
Old 10-15-2021, 12:49 AM   #4
ClintonB
LQ Newbie
 
Registered: Oct 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Im using kali linux and i actually never installed php it was already installed with linux and upgraded to 7.3. I was actually trying to install phpmyadmin from the repository. After getting an xdebug error because mbstrings is not installed and not in the extensions dir, i downloaded php-mbstring and that was also from the repository. After downloading php-mbstrings without any luck i checked the error log for apache2 in var/log folder it showed that none of the modules were loaded in fact. Curl.so ftp.so mbstrings.so etc. The extension dir is correct and the .so files are all there but because of the error that there is an undefined symbol it can load any of them.

Last edited by ClintonB; 10-15-2021 at 12:56 AM.
 
Old 10-15-2021, 02:46 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by ClintonB View Post
Im new to linux
Quote:
Originally Posted by ClintonB View Post
Im using kali linux
Ahem. Using Kali Linux? PLEASE READ!!.

After you've read that, please read https://wiki.debian.org/PHP.

Last edited by shruggy; 10-15-2021 at 03:16 AM.
 
Old 10-15-2021, 03:21 AM   #6
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
Long explanation short: Stop. Kali is not a server distro.
Also, you are a newbie and therefore by definition not a Kali user.

Quote:
Originally Posted by ClintonB View Post
I noticed building from source seems to be a common activity on linux and absent from windows. Do i need to recompile these extensions from the php source.
Not so common anymore, and no, you probably (99%) don't need to.

Last edited by ondoho; 10-15-2021 at 03:22 AM.
 
Old 10-15-2021, 04:23 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
To install modules of the same version

sudo apt install php7.3-mbstrings

But as posted kali is not a beginner distribution.
 
Old 10-15-2021, 04:46 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,308
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
Quote:
Originally Posted by michaelk View Post
But as posted kali is not a beginner distribution.
Indeed. Please see the link in post #5. The question is really about using the right tool for the job. The short version is that Kali is for a specific purpose and that purpose is penetration testing and not setting up a web server or running a desktop.

I would highly recommend choosing a more general-purpose desktop-oriented distro like Manjaro or Linux Mint. Then if you are interested in penetration testing, add the pieces from Kali that you plan to learn one at a time. As you master one, then add the next from the distro's official repository. That's the faster, easier way to learn. Furthermore, setting up a web server with Apache2 and PHP is much easier and more practical on Manjaro or Linux Mint. Those distros also pretty much an average system and therefore you will have a larger pool of people who can and will help. With Kali, there are few who can help and fewer that will help a beginner try to shoehorn it into an out-of-spec activity.

Building from source is a very rare activity for most distros. You'll find the official repositories of the general-purpose distros well-stocked with applications and languages. Quick links:
 
  


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
Apache very slow and error: server reached MaxClients setting, consider raising the MaxClients setting brainjack Linux - Server 1 03-01-2016 09:16 AM
PHP - Mail.php and Mail/mime.php issues LVsFINEST Linux - Server 1 02-08-2009 05:44 PM
Please help with Apache Web Server / Apache Tomcat / PHP / Java / PHP-Java Bridge jpmad4it Linux - Server 2 01-05-2009 06:07 AM
upgraded apache and php now php breaks on ' and special characters ckob Linux - Server 4 10-22-2007 09:28 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM

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

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