FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using scripting languages to automate a browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: getting a php capability on ubuntu was Re: using scripting languages to automate a browser [message #180470 is a reply to message #180460] Tue, 19 February 2013 12:12 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 19/02/13 08:56, Cal Dershowitz wrote:
> 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.
>
try connecting to 127.0.0.1 instead. If that fails its likely apache
isn't running

Maybe an error in the config. scripts.

try (as root, or using sudo )

/etc/init.d/apache3 restart

and look to see what errors show up.,

also check /var/log/apache2/error.log



> Fishing for tips.


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CMS Recommendation
Next Topic: On click button in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 16:56:24 GMT 2024

Total time taken to generate the page: 0.03759 seconds