niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
freebsd with apache, php and mysql
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
Helmut Schneider
*nix forums Guru Wannabe


Joined: 23 Feb 2005
Posts: 144

PostPosted: Thu Jul 20, 2006 7:41 pm    Post subject: Re: freebsd with apache, php and mysql Reply with quote

Helmut Schneider <jumper99@gmx.de> wrote:
Quote:
Yves Savoie <maxwell@globetrotter.net> wrote:
Did you enable LoadModule php5_module libexec/apache2/libphp5.so
in httpd.conf and restart the server?

I try LoadModule php5_module libexec/apache2/libphp5.so but the file
libphp5.so don't exist!! I search in libexec and with the command find /
libphp5.so and the file does not exist anywhere!! I don't know why?

'pkg_info | grep php' says?

cd /usr/ports/lang/php5
make config

'Build Apache module' is checked?

Sorry, package:

tar -tf php5-5.1.4.tbz *libphp5*

Does it print out libphp5.so?
Back to top
Helmut Schneider
*nix forums Guru Wannabe


Joined: 23 Feb 2005
Posts: 144

PostPosted: Thu Jul 20, 2006 7:33 pm    Post subject: Re: freebsd with apache, php and mysql Reply with quote

Yves Savoie <maxwell@globetrotter.net> wrote:
Quote:
Did you enable LoadModule php5_module libexec/apache2/libphp5.so
in httpd.conf and restart the server?

I try LoadModule php5_module libexec/apache2/libphp5.so but the file
libphp5.so don't exist!! I search in libexec and with the command find /
libphp5.so and the file does not exist anywhere!! I don't know why?

'pkg_info | grep php' says?

cd /usr/ports/lang/php5
make config

'Build Apache module' is checked?

Helmut
Back to top
james
*nix forums Guru Wannabe


Joined: 08 Mar 2005
Posts: 282

PostPosted: Thu Jul 20, 2006 4:49 pm    Post subject: Re: freebsd with apache, php and mysql Reply with quote

Yves Savoie wrote:
Quote:
I install the package apache-2.0.58_1.tbz , php5-5.1.4.tbz ,
mysql-client-5.0.22.tbz , mysql-server-5.0.22.tbz with the pkg_add command

you may also want php5-extensions from ports. has handy functions such
as "session" and such. required for many programs to run right.

any errors? see php.ini and look at "error_reporting". what do you mean
by "but it don't execute my php script"

don't forget to update your DirectoryIndex if you want index.php

--
- - james <at> hal-pc.org - -
(.) _ _ (.)
_O\-< (_\/_) >-/O_ Live Free or Die
_\_ (/\) _/_ -FreeBSD
- - - - - - - - - - - - - - -
Back to top
Yves Savoie
*nix forums beginner


Joined: 19 Jul 2006
Posts: 2

PostPosted: Thu Jul 20, 2006 4:15 pm    Post subject: Re: freebsd with apache, php and mysql Reply with quote

Lars Eighner wrote:

Quote:
In our last episode, <0pzvg.142020$S61.8535@edtnps90>, the lovely and
talented Yves Savoie broadcast on comp.unix.bsd.freebsd.misc:

Hello!

I install freebsd 6.1 and it work fine.

I want to work with apache, php and mysql

I install the package apache-2.0.58_1.tbz , php5-5.1.4.tbz ,
mysql-client-5.0.22.tbz , mysql-server-5.0.22.tbz with the pkg_add
command

If i connect to my database with mysql client it work fine.
In the command line i can execute php scripts
If i try to access a html file to my apache server from another computer
it work fine but it don't execute my php script.

I had this line in httpd.conf

Addtype application/x-httpd-php .php

But it don't change anything.

apache do not execute my php scripts

How can i resolve my trouble??

Thank!

Did you enable LoadModule php5_module libexec/apache2/libphp5.so
in httpd.conf and restart the server?


I try LoadModule php5_module libexec/apache2/libphp5.so but the file
libphp5.so don't exist!! I search in libexec and with the command find /
libphp5.so and the file does not exist anywhere!! I don't know why?



--
oo_[:]o
Yves Savoie
maxwell@globetrotter.net
Back to top
Lars Eighner
*nix forums addict


Joined: 03 Mar 2005
Posts: 64

PostPosted: Thu Jul 20, 2006 12:06 am    Post subject: Re: freebsd with apache, php and mysql Reply with quote

In our last episode, <0pzvg.142020$S61.8535@edtnps90>, the lovely and
talented Yves Savoie broadcast on comp.unix.bsd.freebsd.misc:

Quote:
Hello!

I install freebsd 6.1 and it work fine.

I want to work with apache, php and mysql

I install the package apache-2.0.58_1.tbz , php5-5.1.4.tbz ,
mysql-client-5.0.22.tbz , mysql-server-5.0.22.tbz with the pkg_add command

If i connect to my database with mysql client it work fine.
In the command line i can execute php scripts
If i try to access a html file to my apache server from another computer it
work fine but it don't execute my php script.

I had this line in httpd.conf

Addtype application/x-httpd-php .php

But it don't change anything.

apache do not execute my php scripts

How can i resolve my trouble??

Thank!

Did you enable LoadModule php5_module libexec/apache2/libphp5.so
in httpd.conf and restart the server?

--
Lars Eighner SAVE BEASTIE!
eighner@io.com http://larseighner.com/
Xemacs is a great operating system,
but it lacks a good text editor.
Back to top
Yves Savoie
*nix forums beginner


Joined: 19 Jul 2006
Posts: 2

PostPosted: Wed Jul 19, 2006 11:39 pm    Post subject: freebsd with apache, php and mysql Reply with quote

Hello!

I install freebsd 6.1 and it work fine.

I want to work with apache, php and mysql

I install the package apache-2.0.58_1.tbz , php5-5.1.4.tbz ,
mysql-client-5.0.22.tbz , mysql-server-5.0.22.tbz with the pkg_add command

If i connect to my database with mysql client it work fine.
In the command line i can execute php scripts
If i try to access a html file to my apache server from another computer it
work fine but it don't execute my php script.

I had this line in httpd.conf

Addtype application/x-httpd-php .php

But it don't change anything.

apache do not execute my php scripts

How can i resolve my trouble??

Thank!




--
oo_[:]o
Yves Savoie
maxwell@globetrotter.net
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 1:37 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix smtp authentication using mysql stored user/pass rtresidd Postfix 0 Fri Oct 03, 2008 5:58 am
No new posts Postfix + MySQL error: very strange variable %s iWarior Postfix 0 Mon Aug 25, 2008 2:01 pm
No new posts Anyone managed to install policyd on x86_64 and mySQL 5.0x? SupaDucta Postfix 5 Mon Nov 13, 2006 3:18 am
No new posts postfix dovecot mysql issues gnetcon Postfix 0 Thu Aug 03, 2006 9:19 pm
No new posts MySQL Max Build Policy Kaj Arnö MySQL 0 Fri Jul 21, 2006 2:08 pm

Ipod shuffle | Car Finance | Personal Loans | Debt Consolidation | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2192s ][ Queries: 20 (0.1099s) ][ GZIP on - Debug on ]