I've been running a 32bit version of 8.2 for as long as it's been released. ROCK solid SINCE!
The box (finally, hardware-wise bit the big one) but one of the things I should've done and didn't, was to use the AMD64 version, thus making a restore to an AMD64 version wouldn't have been such an issue - but at the time - it didn't seem necessary.
So my issue is now, I've upgraded to 9.3 (AMD64), got it installed, most services up and running just fine with the exception of my compiling some of the ports (spamassassin won't compile either ) - the MOST important one is getting Apache (that came with 9.3) to let/get it to allow access to the folders I've defined in httpd-vhosts.conf file - I always get You Do Not Have Permission To Access / etc..when I go to those VirtualHosts /htdocs folder. (Yes, I've the proper "Directory Directives in the HTTPD.CONF" file.) And I've enabled to use that file, by uncommenting load httpd-vhosts.conf. The permissions on the /usr/local/www/vhosts_go_here I even tried
So I gave up on that, grabbed Apache 2.2 from the Apache Project and now the folder access is no longer an issue. (What changed there? and why would that be?)
Here's my BIGGEST issue - for the life of me, I cannot get Apache to load _any_ PHP modules. I've most of my "VirtualHosts" written in PHP so changing 'em to ALL HTML is nearly impossible.
What happens when I start Apache...
I compiled the PHP55 that comes inside the ports, no problems, there. Even running
I do realize that was likely not going to work. (Simply copying my old 32 libphp over from my backup, but gave it a shot.)
If I leave out to load that module, Apache works like a charm. (And WHY would I not get You Do Not Have Permission To / when I fire up Apache 2.4 that came with 9.3?
What is it that I need to do, to get it to use PHP. I tried copying both libphp5.so (which is nowhere to be found, I just put that file from my old backup, knowing it would NOT likely work (32 vs 64 bit) and libz.so.5 - different compilers/libs/etc... but why is permission denied? (Any help there?)
Bottom Line And BIGGER question and need help with is: What do I have to do to get Apache 2.2 and PHP (the PHP that/which came WITH FreeBSD 9.3) to work together.
I'm fluent ENOUGH, but not considered an expert - please go easy on me and assume I need hand-holding directions. (I've tried following others I've found Googlin' but they are for either OLD ways (and BROKE my box once already which I had to reinstall) or for other distributions.
I usually get some sort of alert saying this isn't the proper place to ask this question, so please accept my apologies ahead of time, if this is the case, (again).
I truly appreciate ALL/ANY help you can give me.
The box (finally, hardware-wise bit the big one) but one of the things I should've done and didn't, was to use the AMD64 version, thus making a restore to an AMD64 version wouldn't have been such an issue - but at the time - it didn't seem necessary.
So my issue is now, I've upgraded to 9.3 (AMD64), got it installed, most services up and running just fine with the exception of my compiling some of the ports (spamassassin won't compile either ) - the MOST important one is getting Apache (that came with 9.3) to let/get it to allow access to the folders I've defined in httpd-vhosts.conf file - I always get You Do Not Have Permission To Access / etc..when I go to those VirtualHosts /htdocs folder. (Yes, I've the proper "Directory Directives in the HTTPD.CONF" file.) And I've enabled to use that file, by uncommenting load httpd-vhosts.conf. The permissions on the /usr/local/www/vhosts_go_here I even tried
chmod 777 on that folder, still getting the permission denied issue.) I know, I know, I'll change it when I figure out what's wrong with the Apache that comes with FreeBSD 9.3, I believe it's Apache 2.4.So I gave up on that, grabbed Apache 2.2 from the Apache Project and now the folder access is no longer an issue. (What changed there? and why would that be?)
Here's my BIGGEST issue - for the life of me, I cannot get Apache to load _any_ PHP modules. I've most of my "VirtualHosts" written in PHP so changing 'em to ALL HTML is nearly impossible.
What happens when I start Apache...
Code:
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/lib/libz.so.5: unsupported file layout
I compiled the PHP55 that comes inside the ports, no problems, there. Even running
php -v comes up with all proper information as if it installed just fine.I do realize that was likely not going to work. (Simply copying my old 32 libphp over from my backup, but gave it a shot.)
If I leave out to load that module, Apache works like a charm. (And WHY would I not get You Do Not Have Permission To / when I fire up Apache 2.4 that came with 9.3?
What is it that I need to do, to get it to use PHP. I tried copying both libphp5.so (which is nowhere to be found, I just put that file from my old backup, knowing it would NOT likely work (32 vs 64 bit) and libz.so.5 - different compilers/libs/etc... but why is permission denied? (Any help there?)
Bottom Line And BIGGER question and need help with is: What do I have to do to get Apache 2.2 and PHP (the PHP that/which came WITH FreeBSD 9.3) to work together.
I'm fluent ENOUGH, but not considered an expert - please go easy on me and assume I need hand-holding directions. (I've tried following others I've found Googlin' but they are for either OLD ways (and BROKE my box once already which I had to reinstall) or for other distributions.
I usually get some sort of alert saying this isn't the proper place to ask this question, so please accept my apologies ahead of time, if this is the case, (again).
I truly appreciate ALL/ANY help you can give me.