Click to See Complete Forum and Search --> : PHP & FreeBSD 5.1... help?


BSDAdmyn
07-27-2004, 01:01 PM
Hello all, first time on the board, have a little question for everyone. This is not my first time installing php, but my first time having a problem with it, and haven't seen this before so i thought i'd ask you guys for help.
My setup is FreeBSD 5.1, PHP Version 4.3.8,
Apache/1.3.31 (Unix) PHP/4.3.8 mod_ssl/2.8.19 OpenSSL/0.9.7d.

Here is the issue, apache was installed from ports, with mod ssl, works like a charm, mod_php4 was installed via ports, and well, i made the php test page and it's showing me the whole php configuration, and when i try to use a simple little php line of code, something so simple as two lines written, it works just fine, but, I am trying to get php to work, so i can use Acid to check on a snort DB, here is the issue, and where i am now, so it looks like php works, i try to get to acid, initially, it gave me an error about an undefined call to function, i quickly realized, in the /usr/local/etc/ directory, the php.ini was empty, the port didn't put it there, but there was a php.ini-dist and i changed it to my needs, and made it php.ini, now when i go to the /acid directory, instead of the error, the screen is just white, i see the title on the top of the browser for Acid, but it doesn't display anything, what could i be doing wrong???? Any help would be greatly appreciate, like i said, i have done this many times and it's worked great for me, what did i do wrong this time? i added everythring i needed into apache config as well... so i dont know, this is strange. my test page is named index.php and it exposes the whole php config, so php is working, but what isn't?

badcpu
08-06-2004, 03:46 PM
Start on version 4.3.8 on FreeBSD systems, PHP is splitted into two parts.

1. The BASE system.

2. The extensions.

When you install mod_php4 from ports it will only install the base system.

You need to install the following port:

php4-extensions

Make sure you update all of your ports before you do this.

You would have found this out if you read:

/usr/ports/UPDATING

Enjoy!

dalecosp
08-11-2004, 07:43 PM
Seems likely that when you changed php.ini, you also changed the method of error reporting. For starters, see if the same error you had before is now in the httpd-error log (/var/log/httpd-error.log, maybe) instead of being reported to the browser.

As for why you're having the error, probably the post above hits it on the head.

Also, 5.2.1 is much better for most things than 5.1 ... but if you wanna wait 7 weeks or so, we get 5.3 :cool: