PHP5 guide
Adam Sommer
asommer70 at gmail.com
Tue Sep 4 11:42:15 UTC 2007
That's definitely a valid question, because the file /usr/bin/php5-cgi
that's installed with the php5-cgi file does allow you to execute PHP
scripts from the command line (found out after posting). However the
php5-cli package installs /usr/bin/php, which is a symlink to
/etc/alternatives/php, and /etc/alternaitves/php is intern a symlink to
/usr/bin/php5. Also, the output of dpkg -l php5-cgi is:
server-side, HTML-embedded scripting language (CGI binary)
and the dpkg -l php5-cli is:
command-line interpreter for the php5 scripting language
Just my opinion, but I think of executing a PHP script from the command line
I think of php script_name.php (just my experience though). This may have
been discussed on another mailing list or in the past as well.
I missed a reference to php5-cgi in the original diff file so here's a new
one. Either way thanks for considering it.
On 9/4/07, Phil Bull <philbull at gmail.com> wrote:
>
> Hi Adam,
>
> On Mon, 2007-09-03 at 14:51 -0400, Adam Sommer wrote:
> > I'm not sure if this is a typo but in the "PHP5 Scripting Language"
> > page there's a slight error. The guide mentions that to execute a PHP
> > file from the command line you need to install php5-cgi, but the
> > package to run PHP files from the command line is php5-cli. I
> > attached a diff file with the correction. If you need any more
> > information please let me know.
>
> Thanks for the patch. Can anyone else confirm that php5-cli is the
> correct package? It looks sensible, but I'm not 100%.
>
> Thanks,
>
> Phil
>
> --
> Phil Bull
> http://www.launchpad.net/people/philbull
>
>
--
Party On,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20070904/3e5aec71/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: web-servers.xml.diff
Type: text/x-patch
Size: 1249 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20070904/3e5aec71/attachment.bin>
More information about the ubuntu-doc
mailing list