PHP and freebsd

Moogy

New member
Hello

I've been work on seting up my own web server...
My provider recomended FreeBSD.
So I try it... This is not a user friendly OS for noobs like me.
I've played with madriva and suse... was ok, but freebsd...

Anyhow after many hour of pain and trouble I able acces the next from the server.
Apache works, but php doesn't work. I've created the php.ini file and install mod_php5
Doesn't seem to work.
I user a browser to acces the index.php and I just get a text file.
I'm trying to run xoop in the end.

Any help is welcome

Moogy
 
you need to reference that you have php in your apache http.conf or mod.conf or somewhere similar, just go to /etc/apache (assuming it's installed there) and run:

grep -i php *

and see what files contain php, you may only need to uncomment it and reload apache or HUP it's PID.
 
php problem

php problem

This is my result of the grep

php5 seem to be loaded

Anything I should look for now?

Thanks for the help



httpd.conf:LoadModule php5_module libexec/apache/libphp5.so
httpd.conf:AddModule mod_php5.c
httpd.conf: <IfModule mod_php3.c>
httpd.conf: <IfModule mod_php4.c>
httpd.conf: DirectoryIndex index.php index.php3 index.html
httpd.conf: <IfModule !mod_php4.c>
httpd.conf: DirectoryIndex index.php3 index.html
httpd.conf: <IfModule !mod_php3.c>
httpd.conf: <IfModule mod_php4.c>
httpd.conf: DirectoryIndex index.php index.html
httpd.conf: <IfModule !mod_php4.c>
httpd.conf: <IfModule mod_php3.c>
httpd.conf: AddType application/x-httpd-php3 .php3
httpd.conf: AddType application/x-httpd-php3-source .php3s
httpd.conf: <IfModule mod_php4.c>
httpd.conf: AddType application/x-httpd-php .php
httpd.conf: AddType application/x-httpd-php-source .phps
httpd.conf:DirectoryIndex index.html index.php
httpd.conf-dist: <IfModule mod_php3.c>
httpd.conf-dist: <IfModule mod_php4.c>
httpd.conf-dist: DirectoryIndex index.php index.php3 index.html
httpd.conf-dist: <IfModule !mod_php4.c>
httpd.conf-dist: DirectoryIndex index.php3 index.html
httpd.conf-dist: <IfModule !mod_php3.c>
httpd.conf-dist: <IfModule mod_php4.c>
httpd.conf-dist: DirectoryIndex index.php index.html
httpd.conf-dist: <IfModule !mod_php4.c>
httpd.conf-dist:<Files ~ "\.(cgi|shtml|phtml|php3?)$">
 
First of all, this is not the proper place to ask..

The proper place would be here: http://www.rage3d.com/board/forumdisplay.php?f=61

Second of all, how can it be hard to install Apache2+PHP on FreeBSD when you can do it with about 2 lines of text by using ports :bleh2:

And your provider is an idiot, you should never recommend something to your customer they do not have the experience to manage properly - as much as FreeBSD gets praise, it will be a swiss cheese just like every other operating system unless the maintainer actually has a clue on what they're doing.

Unless you're willing to spend X hours on learning how to properly manage a *BSD system, stick to something close to home.
 
Last edited:
Come on guys, be nice!

He is a freind of mine to which i recommended this board.

Mods will move the thread in due time.

daPheonix, can you recommende a PHP solution for Suse or Mandrake?
 
if you want ease of use, just use ubuntu, and then run a package manager to install php4 or 5, it takes care of the rest.
 
MasterGoa said:
Come on guys, be nice!
Sorry, I might have come on a little too hard.

daPhoenix, can you recommende a PHP solution for Suse or Mandrake?
SuSE (I recommend 10.0, 10.1 has rough edges) ships with Apache2+PHP almost pre-configured, you just have to remember to pick them while installing the system.

Once you choose the PHP packages and Apache2 the server will be automatically configured with them. Naturally you must always remember to run the online update system before deploying the server to keep it up to date and prevent known security holes.

Or you can go with UDHAs recommendation of Ubuntu - it's also very easy to install and maintain system - it uses .deb packages and apt-get so it should be a breeze to install and configure.
 
php problem

php problem

OK guys... I see the war coming.. sorry about this.

If apache a php is simple install... why doesn't work?
I've install apache and mod_php5 all went fine.

What are those 2 lines of magical text that will make it work..??

Thanks for the help

/\/\oogy
 
Moogy said:
OK guys... I see the war coming.. sorry about this.

What are those 2 lines of magical text that will make it work..??
Nah, no war - I came on too aggressively and it's my bad - sorry.

Anyway, read the URL (My DigitalLife) I posted in my previous post - it should give you a straightforward, step-by-step tutorial how to install everything from scratch and configure it accordingly.
 
working

working

Thank for the help... it's working now

I had copied the wrong filr to my php.ini file.

Thanks for the help

/\/\oogy
 
Yay! Rage3D FTW!
URL]
 
Last edited:
Back
Top