Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I have LAMP installed on my server but PHP is not rendering at either the command line or the browser. Running "PHP -v" gives:
PHP 7.2.24-0ubuntu0.18.04.15
When trying to find a HOWTO on doing a PHP Config all I get are install help pages, but I have no inet at this sever location and all those pages talk about a package "fpm", which I do not have so under /etc I only have:
/etc/PHP/7.2/apache2
/etc/PHP/7.2/cgi
/etc/PHP/7.2/cli
So not sure about how to edit these for the right parms and I know there is a place where "PHP" must be added for apache to actually read and interpret any PHP file.
Version 7.2 is correct for Ubuntu 18 assuming you installed it from the repository. In theory if you installed php from the repository it should be already configured. Maybe you need to install another php module.
Worked through the PHP configs and tried to restart apace2 but getting errors.
Looked in the systrmctl logs and it says error on line 228 of a file in /etc but always trucatesthe line so can not figure out what file to edit and find the error.
All help on another way to find this error appreciated!
Only installs which are meaningless for a remote server with no inet. ABSOLUTELY need only config HOWTOS, nothing else. Not reading through ton of meaningless install BS.
Apache log is in /var/log/httpd/error_log typically. Or you can check syntax with "apachectl configtest".
elgrandeperro,
Error logs in Ubuntu based system are totally different place bu under the same /var/log main directory. The error.log.1 shows 3 lines but has much less information than the systrmctl logs had. No file name and therefore no line number where the error is occurring!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.