|
|
|
|
|
|
| Author |
Message |
Yves Savoie *nix forums beginner
Joined: 19 Jul 2006
Posts: 2
|
Posted: Wed Jul 19, 2006 11:39 pm Post subject:
freebsd with apache, php and mysql
|
|
|
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 |
|
 |
Lars Eighner *nix forums addict
Joined: 03 Mar 2005
Posts: 64
|
Posted: Thu Jul 20, 2006 12:06 am Post subject:
Re: freebsd with apache, php and mysql
|
|
|
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
|
Posted: Thu Jul 20, 2006 4:15 pm Post subject:
Re: freebsd with apache, php and mysql
|
|
|
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 |
|
 |
james *nix forums Guru Wannabe
Joined: 08 Mar 2005
Posts: 282
|
Posted: Thu Jul 20, 2006 4:49 pm Post subject:
Re: freebsd with apache, php and mysql
|
|
|
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 |
|
 |
Helmut Schneider *nix forums Guru Wannabe
Joined: 23 Feb 2005
Posts: 144
|
Posted: Thu Jul 20, 2006 7:33 pm Post subject:
Re: freebsd with apache, php and mysql
|
|
|
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 |
|
 |
Helmut Schneider *nix forums Guru Wannabe
Joined: 23 Feb 2005
Posts: 144
|
Posted: Thu Jul 20, 2006 7:41 pm Post subject:
Re: freebsd with apache, php and mysql
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Mon Dec 01, 2008 6:30 pm | All times are GMT
|
|
Mortgages | Credit Cards | Loans | Credit Cards | Inkjet Printer
|
|
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
|
|