Re: how to activate php in apache

2013-12-04 Thread François Patte
Le 04/12/2013 02:33, Bob Proulx a écrit : François Patte wrote: Think back... How many times have someone asked you for help with something. And you asked them what did they do? And they said, I didn't do anything! And of those times how often did it turn out that they had actually done

Re: how to activate php in apache

2013-12-04 Thread Jerry Stuckle
On 12/4/2013 2:14 AM, Bob Proulx wrote: Jerry Stuckle wrote: Bob Proulx wrote: Jerry Stuckle wrote: Ownership of the directory is root:root, but the scripts should *never* be owned by root:root. Uhmm... No. There is no problem whatsoever with php files being owned by root:root. Why do

Re: how to activate php in apache

2013-12-04 Thread Bob Proulx
François Patte wrote: But in php.ini file (from debian), we can read: ; short_open_tag ; Default Value: On-- ; Development Value: Off ; Production Value: Off Those are comments. The ';' is a comment character. The file has templates for things people might want to

Re: how to activate php in apache

2013-12-03 Thread Bob Proulx
Jerry Stuckle wrote: Bob Proulx wrote: does not work in /var/ (with 644 permissions) How did /var/www get 644 permissions? That is also incorrect. chmod u=rwx,go+rx /var/www 'x' is not required for Apache php scripts. Unlike PHP CLI, the script itself is not an executable file

Re: how to activate php in apache

2013-12-03 Thread François Patte
Le 03/12/2013 00:14, Bob Proulx a écrit : François Patte wrote: I'd like to anable php with apache web server. apache2 is installed php5 is installed. apache php module is activated The above is just too vague and ambiguous. Do you mean this? Where is the ambiguity? apt-get install

Re: how to activate php in apache

2013-12-03 Thread Linux-Fan
On 12/03/2013 10:50 AM, François Patte wrote: You misunderstood the sentence: the file where the php command is written is in /var/www and has 644 permissions... (/var/www has, of course, 755 permissions). Re-reading my first message, I can't see any extra w in /var/www !

Re: how to activate php in apache[solved]

2013-12-03 Thread François Patte
Le 03/12/2013 14:07, Linux-Fan a écrit : On 12/03/2013 10:50 AM, François Patte wrote: You misunderstood the sentence: the file where the php command is written is in /var/www and has 644 permissions... (/var/www has, of course, 755 permissions). Re-reading my first message, I can't see any

Re: how to activate php in apache

2013-12-03 Thread Jerry Stuckle
On 12/3/2013 3:03 AM, Bob Proulx wrote: Jerry Stuckle wrote: Bob Proulx wrote: does not work in /var/ (with 644 permissions) How did /var/www get 644 permissions? That is also incorrect. chmod u=rwx,go+rx /var/www 'x' is not required for Apache php scripts. Unlike PHP CLI, the

Re: how to activate php in apache[solved]

2013-12-03 Thread Jerry Stuckle
On 12/3/2013 8:18 AM, François Patte wrote: Le 03/12/2013 14:07, Linux-Fan a écrit : On 12/03/2013 10:50 AM, François Patte wrote: You misunderstood the sentence: the file where the php command is written is in /var/www and has 644 permissions... (/var/www has, of course, 755 permissions).

Re: how to activate php in apache

2013-12-03 Thread Bob Proulx
Jerry Stuckle wrote: Bob Proulx wrote: Jerry Stuckle wrote: Bob Proulx wrote: does not work in /var/ (with 644 permissions) How did /var/www get 644 permissions? That is also incorrect. The OP is talking about a script. Look again: does not work in /var/ (with 644 permissions).

Re: how to activate php in apache

2013-12-03 Thread Bob Proulx
François Patte wrote: Le 03/12/2013 00:14, Bob Proulx a écrit : François Patte wrote: I'd like to anable php with apache web server. apache2 is installed php5 is installed. apache php module is activated The above is just too vague and ambiguous. Do you mean this? apt-get

Re: how to activate php in apache

2013-12-03 Thread Jerry Stuckle
On 12/3/2013 7:59 PM, Bob Proulx wrote: Jerry Stuckle wrote: Bob Proulx wrote: Jerry Stuckle wrote: Bob Proulx wrote: does not work in /var/ (with 644 permissions) How did /var/www get 644 permissions? That is also incorrect. The OP is talking about a script. Look again: does not

Re: how to activate php in apache

2013-12-03 Thread Bob Proulx
Jerry Stuckle wrote: Bob Proulx wrote: Jerry Stuckle wrote: Ownership of the directory is root:root, but the scripts should *never* be owned by root:root. Uhmm... No. There is no problem whatsoever with php files being owned by root:root. Why do you think it is a problem? For

how to activate php in apache

2013-12-02 Thread François Patte
Bonsoir, I'd like to anable php with apache web server. apache2 is installed php5 is installed. apache php module is activated But php is not working...ie.: ? phpinfo'); ? does not work in /var/ (with 644 permissions) Where is the magic? Thanks -- François Patte UFR de

Re: how to activate php in apache

2013-12-02 Thread David Guntner
François Patte grabbed a keyboard and wrote: Bonsoir, I'd like to anable php with apache web server. apache2 is installed php5 is installed. apache php module is activated But php is not working...ie.: ? phpinfo'); ? does not work in /var/ (with 644 permissions)

Re: how to activate php in apache

2013-12-02 Thread Bob Proulx
François Patte wrote: I'd like to anable php with apache web server. apache2 is installed php5 is installed. apache php module is activated The above is just too vague and ambiguous. Do you mean this? apt-get install apache2 libapache2-mod-php5 If you meant anything else by activated

Re: how to activate php in apache

2013-12-02 Thread Jerry Stuckle
On 12/2/2013 6:14 PM, Bob Proulx wrote: François Patte wrote: But php is not working...ie.: ? phpinfo'); ? If that is verbatim then that is the problem. Note the syntax errors in the above. Try this verbatim instead. ?php phpinfo(); ? Also the file extension must be .php. does not