PHP not working properly

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
dhenzler

PHP not working properly

Post by dhenzler »

I've just found GhostBSD 11.1, and am pleased that someone finally integrated all of the setup BS into a DVD. Can't begin to express my frustration with FreeBSD and their lack of doing this.

On to my issue.... I have loaded Apache24 PHP56 and MySQL in order to do two things. NextCloud, and WordPress. However my PHP doesn't seem to be running properly.

I loaded PHP56 first, and then Apache24. When I didn't get any JOY on the php test screen, I loaded PHP70. Perhaps that was a mistake in install order. The PHP test screen came up, but PHP doesn't work with apps like WordPress or NextCloud. I also loaded phpMyAdmin which removed PHP7 and loaded PHP56. At any rate I am unable to run PHP code. Looked around, but the setup is different here than in Linux Mint. I have no idea what to do.

Anyone ?

Dave
Attachments
Screenshot at 2018-01-23 12-09-43.png
Harion
Posts: 17
Joined: Sat Dec 30, 2017 3:30 pm

Re: PHP not working properly

Post by Harion »

Hello,

I got similar trouble when I tried to install a phpBB forum. Screen went blank, nothing displayed.

First you need to see what the error is. Open /usr/local/etc/php.ini and set display_errors = On. I think you need to restart apache24 service (service apache24 restart). Then, try again and take note of the text displayed (you have to reverse this setting before to open your site to internet for security reasons).

For me, it was php56-tokenizer which wasn't installed. May be it's the same for you.
dhenzler

Re: PHP not working properly

Post by dhenzler »

I got it working this afternoon. Just put it aside and let my brain rest. Found a good article on installing and configuring LAMP from ports binaries. https://www.digitalocean.com/community/ ... eebsd-10-1 Since that is the way I do things, it worked out for me. Now I have different problems... The new release of Firefox doesn't want to run Google.com, and even balked at Bing.com I dumped it for the time being and loaded Chromium. It will work until Firefox is fixed.

Now I get connecting to database problems that I didn't have initially. Because I cleaned up the MySQL database and set the root password. So will work on that next
dhenzler

Re: PHP not working properly

Post by dhenzler »

Problem resolved after adding:
sudo vi /usr/local/etc/apache24/Includes/php.conf
Post Reply