Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser [message #180460 is a reply to message #180423] |
Tue, 19 February 2013 08:56 |
Cal Dershowitz
Messages: 36 Registered: February 2013
Karma:
|
Member |
|
|
On 02/12/2013 06:09 AM, Jerry Stuckle wrote:
>
> I think the easiest way for you to install PHP would be to use the
> ubuntu package manager. I understand ubuntu isn't much different than
> debian (which is what I use), and it will preconfigure a working system
> for you. It's also easy to change the configuration.
>
> And no, we aren't flaming. Just having a difference of opinion :).
>
Jerry, I'm glad you didn't, because I'm not quite there, and it would be
hard to double back if everyone knew this subthread was engulfed in
silliness.
It seems people have differing means of accomplishing what I have set
forth to do here, each catering to their own apache architecture needs.
IMO, the hands-down winner for how to get a LAMP capability on ubuntu
was supplied most the way with a one-liner by ben:
sudo apt-get install apache2 php5
Ultimately, I decided to go for a default installation, after having
taken steps in another direction. I've gone back and edited
/etc/apache2/sites-available/default
to have /var/www/
(tried /var/www as well)
restarted, yet I can't get output on this simplest of scripts
$ pwd
/var/www
$ ls -l
total 8
-rw-r--r-- 1 www-data automation 177 Feb 12 19:08 index.html
-rw-r--r-- 1 fred automation 20 Feb 18 23:02 test.php
$ cat test.php
<?php phpinfo(); ?>
$
What I get is firefox telling me that it cannot connect to the server at
localhost.
Fishing for tips.
--
Cal
|
|
|