You need to modify your /opt/local/apache2/conf/httpd.conf to include your PHP5 configuration file. I'm not at my own machine now but if you read the httpd.conf file it should be easy to figure it out. I think PHP5 configuration file is at extras-conf directory under /opt/ local/apache2/conf. Sent from my iPhone On 25-Feb-08, at 09:19, Jean-Luc BERTé <jean-luc.berte@laposte.net> wrote:
Le 24 févr. 08 à 13:30, Takashi Yoshida a écrit :
* copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
Yes, i have made all :
$ cd /opt/local/apache2/bin $ sudo ./apachetcl start $ sudo -u mysql mysql_install_db5
$ cd /opt/local/apache2/modules $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
[activating module `php5' in /opt/local/apache2/conf/httpd.conf]
$ * copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
-bash: httpd.exp: command not found
i tried to copy and rename php.ini-dist to php.ini in the /opt/ local/etc folder too but php5 doesn't work
Le 24 févr. 08 à 21:37, Takashi Yoshida a écrit :
You need to modify your /opt/local/apache2/conf/httpd.conf to include your PHP5 configuration file. I'm not at my own machine now but if you read the httpd.conf file it should be easy to figure it out.
I think PHP5 configuration file is at extras-conf directory under / opt/local/apache2/conf.
Sent from my iPhone
On 25-Feb-08, at 09:19, Jean-Luc BERTé <jean-luc.berte@laposte.net> wrote:
Le 24 févr. 08 à 13:30, Takashi Yoshida a écrit :
* copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
Yes, i have made all :
$ cd /opt/local/apache2/bin $ sudo ./apachetcl start $ sudo -u mysql mysql_install_db5
$ cd /opt/local/apache2/modules $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
[activating module `php5' in /opt/local/apache2/conf/httpd.conf]
$ * copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
-bash: httpd.exp: command not found
i tried to copy and rename php.ini-dist to php.ini in the /opt/ local/etc folder too but php5 doesn't work
I try to do what you say : in extras-conf i found "mod_php.conf" witch contains : <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> and i paste it at the end of httpd.conf $ * copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini -bash: extra: command not found i stopped and re-start apache2 ***WONDERFULL !!! ITS WORKS !!! **** *** GREAT THANKS ***
On Feb 24, 2008, at 20:05, Jean-Luc BERTé wrote:
I try to do what you say :
in extras-conf i found "mod_php.conf" witch contains :
<IfModule mod_php5.c>
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
</IfModule>
and i paste it at the end of httpd.conf
$ * copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
-bash: extra: command not found
You're not supposed to type the asterisk at the command line. Just type: sudo copy /opt/local/etc/php.ini-dist to /opt/local/etc/php.ini
i stopped and re-start apache2
***WONDERFULL !!! ITS WORKS !!! ****
*** GREAT THANKS ***
Great!
participants (3)
-
Jean-Luc BERTé
-
Ryan Schmidt
-
Takashi Yoshida