PHP pkg-readme clarification

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PHP pkg-readme clarification

Kurt Mosiejczuk-9
The current PHP package readme states that all one has to do to run
the Apache PHP module is make a symbolic link. That's only true if
you have the php-apache package installed. If it isn't installed the
supplied command making a symbolic links works (because of the -f) but
it does nothing since the /var/www/conf/modules.sample directory isn't
there and/or doesn't contain the php.conf we are linking. I think it is
fallout from the (appreciated) split so using PHP didn't pull in Apache.

This is just a small wording addition/change to make explicit that the
php-apache package must be installed for it to work.

--Kurt

Index: files/README-main
===================================================================
RCS file: /cvs/ports/lang/php/files/README-main,v
retrieving revision 1.8
diff -u -p -r1.8 README-main
--- files/README-main 23 Jan 2019 21:04:53 -0000 1.8
+++ files/README-main 29 Jan 2019 19:42:39 -0000
@@ -55,8 +55,9 @@ the two; therefore bugs in php can poten
 Another option is to use FastCGI via php-fpm as in the above section;
 you can use mod_proxy_fcgi to interface it with Apache.
 
-If you wish to use the Apache module, enable it by creating a
-symbolic link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
+If you wish to use the Apache module, make sure the php-apache-${PV}
+package is installed. Then the module enable it by creating a symbolic
+link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
 to ${MODPHP_CONFIG_PATH}/modules/php.conf. As root:
 
     ln -sf ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf \

Reply | Threaded
Open this post in threaded view
|

Re: PHP pkg-readme clarification

Tracey Emery
On January 29, 2019 12:53:19 PM MST, Kurt Mosiejczuk <[hidden email]> wrote:

>The current PHP package readme states that all one has to do to run
>the Apache PHP module is make a symbolic link. That's only true if
>you have the php-apache package installed. If it isn't installed the
>supplied command making a symbolic links works (because of the -f) but
>it does nothing since the /var/www/conf/modules.sample directory isn't
>there and/or doesn't contain the php.conf we are linking. I think it is
>fallout from the (appreciated) split so using PHP didn't pull in
>Apache.
>
>This is just a small wording addition/change to make explicit that the
>php-apache package must be installed for it to work.
>
>--Kurt
>
>Index: files/README-main
>===================================================================
>RCS file: /cvs/ports/lang/php/files/README-main,v
>retrieving revision 1.8
>diff -u -p -r1.8 README-main
>--- files/README-main 23 Jan 2019 21:04:53 -0000 1.8
>+++ files/README-main 29 Jan 2019 19:42:39 -0000
>@@ -55,8 +55,9 @@ the two; therefore bugs in php can poten
> Another option is to use FastCGI via php-fpm as in the above section;
> you can use mod_proxy_fcgi to interface it with Apache.
>
>-If you wish to use the Apache module, enable it by creating a
>-symbolic link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
>+If you wish to use the Apache module, make sure the php-apache-${PV}
>+package is installed. Then the module enable it by creating a symbolic
>
>+link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
> to ${MODPHP_CONFIG_PATH}/modules/php.conf. As root:
>
>     ln -sf ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf \

"installed. Then the module enable it by" sounds funny. Perhaps, "installed. Then, enable the module by"?

Sent from phone. Why it's not a diff.

Thanks,
Tracey
--
Tracey Emery
Reply | Threaded
Open this post in threaded view
|

Re: PHP pkg-readme clarification

Kurt Mosiejczuk-9
On Tue, Jan 29, 2019 at 01:03:54PM -0700, Tracey Emery wrote:

> "installed. Then the module enable it by" sounds funny. Perhaps,
"installed. Then, enable the module by"?

> Sent from phone. Why it's not a diff.

Yes. That is terrible. I tried to correct some other awkward wording I
did and managed to move the awkward elsewhere. Here is a (hopefully)
better attempt. Then I will go get my afternoon caffeine.

--Kurt

Index: files/README-main
===================================================================
RCS file: /cvs/ports/lang/php/files/README-main,v
retrieving revision 1.8
diff -u -p -r1.8 README-main
--- files/README-main 23 Jan 2019 21:04:53 -0000 1.8
+++ files/README-main 29 Jan 2019 20:20:21 -0000
@@ -55,8 +55,9 @@ the two; therefore bugs in php can poten
 Another option is to use FastCGI via php-fpm as in the above section;
 you can use mod_proxy_fcgi to interface it with Apache.
 
-If you wish to use the Apache module, enable it by creating a
-symbolic link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
+If you wish to use the Apache module, make sure the php-apache-${PV}
+package is installed. Then enable the module by creating a symbolic
+link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
 to ${MODPHP_CONFIG_PATH}/modules/php.conf. As root:
 
     ln -sf ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf \

Reply | Threaded
Open this post in threaded view
|

Re: PHP pkg-readme clarification

Stuart Henderson-6
In reply to this post by Kurt Mosiejczuk-9
On 2019/01/29 14:53, Kurt Mosiejczuk wrote:

> The current PHP package readme states that all one has to do to run
> the Apache PHP module is make a symbolic link. That's only true if
> you have the php-apache package installed. If it isn't installed the
> supplied command making a symbolic links works (because of the -f) but
> it does nothing since the /var/www/conf/modules.sample directory isn't
> there and/or doesn't contain the php.conf we are linking. I think it is
> fallout from the (appreciated) split so using PHP didn't pull in Apache.
>
> This is just a small wording addition/change to make explicit that the
> php-apache package must be installed for it to work.
>
> --Kurt
>
> Index: files/README-main
> ===================================================================
> RCS file: /cvs/ports/lang/php/files/README-main,v
> retrieving revision 1.8
> diff -u -p -r1.8 README-main
> --- files/README-main 23 Jan 2019 21:04:53 -0000 1.8
> +++ files/README-main 29 Jan 2019 19:42:39 -0000
> @@ -55,8 +55,9 @@ the two; therefore bugs in php can poten
>  Another option is to use FastCGI via php-fpm as in the above section;
>  you can use mod_proxy_fcgi to interface it with Apache.
>  
> -If you wish to use the Apache module, enable it by creating a
> -symbolic link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
> +If you wish to use the Apache module, make sure the php-apache-${PV}
> +package is installed. Then the module enable it by creating a symbolic
> +link from ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf
>  to ${MODPHP_CONFIG_PATH}/modules/php.conf. As root:
>  
>      ln -sf ${MODPHP_CONFIG_PATH}/modules.sample/php-${PV}.conf \

Thanks, I think that makes sense. Similar diff committed.