php-general Digest 21 Sep 2011 00:03:34 -0000 Issue 7488

2011-09-20 Thread php-general-digest-help

php-general Digest 21 Sep 2011 00:03:34 - Issue 7488

Topics (messages 314956 through 314966):

Installing PHP
314956 by: Mateus Almeida
314958 by: Bastien
314959 by: Lester Caine
314960 by: Mateus Almeida
314961 by: Lester Caine
314962 by: Curtis Maurand
314963 by: Curtis Maurand

Re: PHP installations, usage, and popularity
314957 by: Bastien
314964 by: Tim Thorburn
314965 by: Tommy Pham

PHP Ad or Image Rotator Script
314966 by: Kim Briggs

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work. 

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.

I've tried to copy the recommended configurations from some sites, but it
haven't worked. 

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.

Thanks in advance.

---End Message---
---BeginMessage---


On 2011-09-19, at 5:32 PM, Mateus Almeida supor...@avanutri.com.br wrote:

 Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
 work. 
 
 Every time I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this server. OR
 (when I try to change some options) Forbidden You don't have permission to
 access /php/php-cgi.exe/test.php on this server.
 
 I've tried to copy the recommended configurations from some sites, but it
 haven't worked. 
 
 The machine runs Windows XP, I'm using an administrator account, no firewall
 is blocking me, PHP and Apache are the most recent versions.
 
 Thanks in advance.
 

The files need to go into the htdocs folder of the apache installation. They do 
no go in the php folder at all. 

You can also set the root directory in the httpd.conf file, the apache config, 
to place the root of the webserver elsewhere in your filesystem

Bastien Koert
905-904-0334---End Message---
---BeginMessage---

Mateus Almeida wrote:

Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work.

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.


Well that just looks totally wrong!
The test.php file should be in your apache site directory and you would never 
use the php directory inside a website setup.



I've tried to copy the recommended configurations from some sites, but it
haven't worked.

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.


Starting point ... what does http://localhost say when put into your browser.

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
---End Message---
---BeginMessage---
Yes, I've put the test.php in the htdocs.
The server works with an html file, but it doesn’t work with the php.

-Mensagem original-
De: Bastien [mailto:phps...@gmail.com] 
Enviada em: terça-feira, 20 de setembro de 2011 09:04
Para: Mateus Almeida
Cc: php-gene...@lists.php.net
Assunto: Re: [PHP] Installing PHP



On 2011-09-19, at 5:32 PM, Mateus Almeida supor...@avanutri.com.br
wrote:

 Hello, I'm newbie and I'm trying to install PHP with Apache, but it
doesn't
 work. 
 
 Every time I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this server. OR
 (when I try to change some options) Forbidden You don't have permission
to
 access /php/php-cgi.exe/test.php on this server.
 
 I've tried to copy the recommended configurations from some sites, but it
 haven't worked. 
 
 The machine runs Windows XP, I'm using an administrator account, no
firewall
 is blocking me, PHP and Apache are the most recent versions.
 
 Thanks in advance.
 

The files need to go into the htdocs folder of the apache installation. They
do no go in the php folder at all. 

You can also set the root directory in the httpd.conf file, the apache
config, to place the root of the webserver elsewhere in your 

Re: [PHP] Installing extensions

2011-09-20 Thread tamouse mailing lists
On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown danbr...@php.net wrote:
    You have to add the extensions to your php.ini file,

Yeah, did that, still not working.

 and - if
 using them on the web - remember to restart Apache.

Using lighty and fastcgi.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Richard Quadling
On 19 September 2011 22:08, Tedd Sperling tedd.sperl...@gmail.com wrote:
 Hi gang:

 I need information to convince administrators in management that PHP is a 
 viable subject that should be taught in college with credits going toward a 
 Degree or Certification.

 You see, I am pushing for a Web Development Certification program that would 
 include PHP/MySQL as well as several other Web Languages (i.e., html, css, 
 javascript, ajax).

 Currently the college teaches ASP in a regular course toward a IT 
 Certification, but class attendance has dropped considerably -- no one wants 
 to take the course.

 However, My PHP class has been maxed out. But my class is a special topic 
 class and not part of the regular coursework that would go towards a Degree 
 or Certification -- and that's where I would like this to go.

 As such, I need information regarding how wide-spread PHP is (i.e., number of 
 installations), who's using it (i.e., companies, organizations), and how it 
 compares with other Web Languages (i.e., ASP, Ruby, etc.).

 So, what say you? References will work.

 Thanks,

 tedd

Considering this is academia, how about WikiPedia?
http://en.wikipedia.org/wiki/MediaWiki

75 languages and over 3.5 million pages :
http://en.wikipedia.org/wiki/Special:Statistics

So, this is just 1 site.

Of course, you can easily have a Flash frontend with a PHP backend.

The whole nature of PHP is that it can fit anywhere. Web, Console, GUI
(with appropriate bindings). Multii-platform, architecture, OS, etc. -
probably preaching to the converted here.


I would also recommend the inclusion of a nosql module and MAYBE some
Windows specific elements (I use IIS/MSSQL/PHP no problem. MS SQL
driver for PHP is PDO and works very nicely).


-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Installing PHP

2011-09-20 Thread Mateus Almeida
Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work. 

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.

I've tried to copy the recommended configurations from some sites, but it
haven't worked. 

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.

Thanks in advance.



Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Bastien


On 2011-09-20, at 12:05 AM, Tommy Pham tommy...@gmail.com wrote:

 ASP? Not ASP.NET? Wow... I haven't any new sites deployed in ASP in almost
 10 years.  IIRC, ASP is nothing more but bunch of spaghetti codes and no
 OOP.  That's why attendance/registration is so low.  Only main web (server
 side) development languages are ASP.NET (C#), Java, and PHP (listed as
 alphabetical order - not based on demand/popularity).  You'd probably say
 Perl and/or Python too.  IMO, best way to convince the administration is job
 search for ASP under IT category and show them the results vs search for
 PHP ;)  No need for long explanations and comparisons since the point of
 having students certified is that they could get a job quickly.
 
 Best wishes,
 Tommy

Ha, tommy,

My workplace app is classic asp and it sucks! I'll let you decide which sucks 
;-).

It's over 1300 files, and spaghetti isn't the word. It's failure points are so 
many that the pen test tools used created reports of 3000 pages. 

I have been pushing to move to php for years but the geniuses at the top told 
me that php was a 'hobbiest language'. Note this same person told me that we 
were moving to c# because it had the most examples on the msdn network pages. ( 
yes, I know it's an account setting in the msdn network :-) )

Bastien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing PHP

2011-09-20 Thread Bastien


On 2011-09-19, at 5:32 PM, Mateus Almeida supor...@avanutri.com.br wrote:

 Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
 work. 
 
 Every time I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this server. OR
 (when I try to change some options) Forbidden You don't have permission to
 access /php/php-cgi.exe/test.php on this server.
 
 I've tried to copy the recommended configurations from some sites, but it
 haven't worked. 
 
 The machine runs Windows XP, I'm using an administrator account, no firewall
 is blocking me, PHP and Apache are the most recent versions.
 
 Thanks in advance.
 

The files need to go into the htdocs folder of the apache installation. They do 
no go in the php folder at all. 

You can also set the root directory in the httpd.conf file, the apache config, 
to place the root of the webserver elsewhere in your filesystem

Bastien Koert
905-904-0334
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Installing PHP

2011-09-20 Thread Lester Caine

Mateus Almeida wrote:

Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work.

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.


Well that just looks totally wrong!
The test.php file should be in your apache site directory and you would never 
use the php directory inside a website setup.



I've tried to copy the recommended configurations from some sites, but it
haven't worked.

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.


Starting point ... what does http://localhost say when put into your browser.

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RES: [PHP] Installing PHP

2011-09-20 Thread Mateus Almeida
Yes, I've put the test.php in the htdocs.
The server works with an html file, but it doesn’t work with the php.

-Mensagem original-
De: Bastien [mailto:phps...@gmail.com] 
Enviada em: terça-feira, 20 de setembro de 2011 09:04
Para: Mateus Almeida
Cc: php-general@lists.php.net
Assunto: Re: [PHP] Installing PHP



On 2011-09-19, at 5:32 PM, Mateus Almeida supor...@avanutri.com.br
wrote:

 Hello, I'm newbie and I'm trying to install PHP with Apache, but it
doesn't
 work. 
 
 Every time I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this server. OR
 (when I try to change some options) Forbidden You don't have permission
to
 access /php/php-cgi.exe/test.php on this server.
 
 I've tried to copy the recommended configurations from some sites, but it
 haven't worked. 
 
 The machine runs Windows XP, I'm using an administrator account, no
firewall
 is blocking me, PHP and Apache are the most recent versions.
 
 Thanks in advance.
 

The files need to go into the htdocs folder of the apache installation. They
do no go in the php folder at all. 

You can also set the root directory in the httpd.conf file, the apache
config, to place the root of the webserver elsewhere in your filesystem

Bastien Koert
905-904-0334


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: RES: [PHP] Installing PHP

2011-09-20 Thread Lester Caine

Mateus Almeida wrote:

Yes, I've put the test.php in the htdocs.
The server works with an html file, but it doesn’t work with the php.


Mateus

There are only tow things which need adding to httpd.conf to get PHP working.

LoadModule should point to your php installation
LoadModule php5_module c:/Network/PHP-5_2_6a/php5apache2_2.dll

And file type
AddType application/x-httpd-php .php .php5

I suspect you have an 'Action' line which should be commented out.

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand



try http://localhost/test.php



Mateus Almeida
wrote:
 Yes, I've put the test.php in the htdocs.
 The server works with an html file, but it doesnrsquo;t work with
the php.
 
 -Mensagem original-
 De:
Bastien [mailto:phps...@gmail.com]
 Enviada em:
terça-feira, 20 de setembro de 2011 09:04
 Para: Mateus
Almeida
 Cc: php-general@lists.php.net
 Assunto:
Re: [PHP] Installing PHP
 
 
 
 On
2011-09-19, at 5:32 PM, Mateus Almeida
supor...@avanutri.com.br
 wrote:
 

Hello, I'm newbie and I'm trying to install PHP with Apache, but it
 doesn't
 work.

 Every time
I try to run a test I receive the message Not Found The
 requested URL /php/php-cgi.exe/test.php was not found on this
server.
 OR
 (when I try to change some
options) Forbidden You don't have permission
 to
 access /php/php-cgi.exe/test.php on this server.

 I've tried to copy the recommended configurations
from some sites, but
 it
 haven't worked.

 The machine runs Windows XP, I'm using an
administrator account, no
 firewall
 is blocking me,
PHP and Apache are the most recent versions.


Thanks in advance.

 
 The files need to go
into the htdocs folder of the apache installation.
 They
 do no go in the php folder at all.
 
 You can
also set the root directory in the httpd.conf file, the apache

config, to place the root of the webserver elsewhere in your filesystem
 
 Bastien Koert
 905-904-0334
 
 
 --
 PHP General Mailing List
(http://www.php.net/)
 To unsubscribe, visit:
http://www.php.net/unsub.php
 



Re: RES: RES: [PHP] Installing PHP

2011-09-20 Thread Curtis Maurand



You've got a configuration issue.  You'll need to add a
directory directive to execute CGI scripts to the httpd.conf or
whereever the equivelent file is.  Normally, I would tell you to
download and install xampp which will give you a working setup out of the
box.

--Curtis


Mateus Almeida wrote:

Yes, Irsquo;ve tried http://localhost:1234/test.php. Same:
ldquo;Forbidden You don't
 have permission to access
/php/php-cgi.exe/test.php on this server.rdquo;
 
 
 
 This is my Apache conf. file:
 

-
 
 #
 
 # This is the main Apache HTTP server configuration file.  It
contains the
 
 # configuration directives that give the
server its instructions.
 
 # See
URL:http://httpd.apache.org/docs/2.2 for detailed information.
 
 # In particular, see
 
 #
URL:http://httpd.apache.org/docs/2.2/mod/directives.html


 # for a discussion of each configuration directive.


 #
 
 # Do NOT simply read the instructions in
here without understanding
 
 # what they do.  They're
here only as hints or reminders.  If you are
 unsure


 # consult the online docs. You have been warned.
 
 #
 
 # Configuration and logfile names: If the
filenames you specify for many
 
 # of the server's
control files begin with / (or drive:/ for
Win32),
 the
 
 # server will use that explicit
path.  If the filenames do *not* begin
 
 # with
/, the value of ServerRoot is prepended -- so
logs/foo.log
 
 # with ServerRoot set to
C:/Arquivos de programas/Apache Software

Foundation/Apache2.2 will be interpreted by the
 

# server as C:/Arquivos de programas/Apache Software

Foundation/Apache2.2/logs/foo.log.
 
 #


 # NOTE: Where filenames are specified, you must use forward
slashes
 
 # instead of backslashes (e.g.,
c:/apache instead of c:\apache).
 
 # If a drive letter is omitted, the drive on which httpd.exe is
located
 
 # will be used by default.  It is recommended
that you always supply
 
 # an explicit drive letter in
absolute paths to avoid confusion.
 
 
 
 #
 
 # ServerRoot: The top of the directory tree
under which the server's
 
 # configuration, error, and
log files are kept.
 
 #
 
 # Do not
add a slash at the end of the directory path.  If you point
 
 # ServerRoot at a non-local disk, be sure to point the LockFile
directive
 
 # at a local disk.  If you wish to share
the same ServerRoot for multiple
 
 # httpd daemons, you
will need to change at least LockFile and PidFile.
 

#
 
 ServerRoot C:/Arquivos de programas/Apache
Software Foundation/Apache2.2
 
 
 
 #
 
 # Listen: Allows you to bind Apache to
specific IP addresses and/or
 
 # ports, instead of the
default. See also the VirtualHost
 
 #
directive.
 
 #
 
 # Change this to
Listen on specific IP addresses as shown below to
 
 #
prevent Apache from glomming onto all bound IP addresses.
 
 #
 
 #Listen 12.34.56.78:80
 

Listen 1234
 
 
 
 #
 
 # Dynamic Shared Object (DSO) Support
 
 #
 
 # To be able to use the functionality of a module which
was built as a DSO
 you
 
 # have to place
corresponding `LoadModule' lines at this location so the
 
 # directives contained in it are actually available _before_ they
are
 used.
 
 # Statically compiled modules
(those listed by `httpd -l') do not need
 
 # to be
loaded here.
 
 #
 
 # Example:
 
 # LoadModule foo_module modules/mod_foo.so
 
 #
 
 LoadModule actions_module
modules/mod_actions.so
 
 LoadModule alias_module
modules/mod_alias.so
 
 LoadModule asis_module
modules/mod_asis.so
 
 LoadModule auth_basic_module
modules/mod_auth_basic.so
 
 #LoadModule
auth_digest_module modules/mod_auth_digest.so
 

#LoadModule authn_alias_module modules/mod_authn_alias.so
 
 #LoadModule authn_anon_module modules/mod_authn_anon.so


 #LoadModule authn_dbd_module modules/mod_authn_dbd.so


 #LoadModule authn_dbm_module modules/mod_authn_dbm.so


 LoadModule authn_default_module modules/mod_authn_default.so
 
 LoadModule authn_file_module
modules/mod_authn_file.so
 
 #LoadModule
authnz_ldap_module modules/mod_authnz_ldap.so
 

#LoadModule authz_dbm_module modules/mod_authz_dbm.so
 

LoadModule authz_default_module modules/mod_authz_default.so
 
 LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
 
 LoadModule authz_host_module
modules/mod_authz_host.so
 
 #LoadModule
authz_owner_module modules/mod_authz_owner.so
 

LoadModule authz_user_module modules/mod_authz_user.so
 
 LoadModule autoindex_module modules/mod_autoindex.so
 
 #LoadModule cache_module modules/mod_cache.so
 

#LoadModule cern_meta_module modules/mod_cern_meta.so
 

LoadModule cgi_module modules/mod_cgi.so
 
 #LoadModule
charset_lite_module modules/mod_charset_lite.so
 

#LoadModule dav_module modules/mod_dav.so
 
 #LoadModule
dav_fs_module modules/mod_dav_fs.so
 
 #LoadModule
dav_lock_module modules/mod_dav_lock.so
 
 #LoadModule
dbd_module modules/mod_dbd.so
 
 #LoadModule
deflate_module modules/mod_deflate.so
 
 LoadModule
dir_module modules/mod_dir.so
 
 #LoadModule
disk_cache_module modules/mod_disk_cache.so
 

#LoadModule 

Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Tim Thorburn

On 9/19/2011 5:08 PM, Tedd Sperling wrote:

As such, I need information regarding how wide-spread PHP is (i.e., number of 
installations), who's using it (i.e., companies, organizations), and how it 
compares with other Web Languages (i.e., ASP, Ruby, etc.).
Since it's a school, you might also want to point out Moodle 
http://moodle.org/ is another example of PHP based, open source software 
that is used by many educational institutions throughout Canada and 
Australia (I'd assume the rest of the world as well).


By my own completely unscientific research and experience - it's very 
strange to come upon a URL that ends with .aspx or .jsp.  Considering 
that Linux (and its variants) powers the overwhelming majority of the 
Internet's web servers - it seems fair to conclude that PHP would be the 
most accessible web language there is.


Best of luck breaking through the education bubble.


Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Tommy Pham
On Tue, Sep 20, 2011 at 5:00 AM, Bastien phps...@gmail.com wrote:



 On 2011-09-20, at 12:05 AM, Tommy Pham tommy...@gmail.com wrote:

  ASP? Not ASP.NET? Wow... I haven't any new sites deployed in ASP in
 almost
  10 years.  IIRC, ASP is nothing more but bunch of spaghetti codes and no
  OOP.  That's why attendance/registration is so low.  Only main web
 (server
  side) development languages are ASP.NET (C#), Java, and PHP (listed as
  alphabetical order - not based on demand/popularity).  You'd probably say
  Perl and/or Python too.  IMO, best way to convince the administration is
 job
  search for ASP under IT category and show them the results vs search
 for
  PHP ;)  No need for long explanations and comparisons since the point of
  having students certified is that they could get a job quickly.
 
  Best wishes,
  Tommy

 Ha, tommy,

 My workplace app is classic asp and it sucks! I'll let you decide which
 sucks ;-).

 It's over 1300 files, and spaghetti isn't the word. It's failure points are
 so many that the pen test tools used created reports of 3000 pages.

 I have been pushing to move to php for years but the geniuses at the top
 told me that php was a 'hobbiest language'. Note this same person told me
 that we were moving to c# because it had the most examples on the msdn
 network pages. ( yes, I know it's an account setting in the msdn network :-)
 )

 Bastien


You can tell those 'geniuses' that IBM, a 40 year old 500 pound gorilla that
started the PC industry, doesn't think so.  Google 'IBM PHP' shows
99,500,000 results.  The first link
http://www.ibm.com/systems/i/software/php/index.html shows how their systems
run PHP.

*Open to Innovation*
Are you looking to develop or deploy Web applications? PHP, the leading
scripting language for Web applications, provides an open and easy to use
alternative and gives you access to thousands of open source applications
and scripts.

Thousands of IBM i customers around the world have downloaded Zend’s PHP
products for i for a wide variety of web application development and
deployment initiatives.


.. i ... refers to their i series servers.  Also, ask them what does IBM
stand for and why would a company with that name supports PHP strongly.

And if that doesn't open their mind up, ask them of what they think about
Oracle.  Then Google Oracle PHP, showing 199,000,000 results, and let them
think if it's still a hobbyist language.  Oracle, another almost 40 year
old 500 pound gorilla, started the commercial RDBMS industry.  The examples
can go on and on... ;)


Regards,

Tommy


[PHP] PHP Ad or Image Rotator Script

2011-09-20 Thread Kim Briggs
Hi List,

This is a bit of an advertisement, I know, but I'm truly pleased with
my new PHP script and I want to share it with the list  (I do not sell
any products on my website).

http://kimbriggs.com/computers/computer-software/php-ad-image-rotator-script.file

Any questions or improvements, please CC my email address in the reply.

Cheers,
Kim

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RES: [PHP] Installing PHP

2011-09-20 Thread Alejandro Michelin Salomon (Hotmail)
Mateus:

Para configurar o php no apache :
1) Adicionar estas linhas no httpd.conf

Troca D:\PHP\ pelos dados da tua instalação.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Trocar o directory index do apache
IfModule dir_module
DirectoryIndex index.html index.php adicionar index.php como um arquivo
padrão para ele procurar
/IfModule

Inglish:

Mateus:
To configure php on apache:
1) Add this lines in httpd.conf

Change this D:\PHP\ to yours instalation data.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir D:\PHP\ 
LoadModule php5_module D:\PHP\php5apache2_2.dll

AddHandler application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

2 ) Change the directory index on apache
IfModule dir_module
DirectoryIndex index.html index.php == add index.php to be a default
file to search
/IfModule

Alejandro M.S.
PAO/RS
Brasil

-Mensagem original-
De: Mateus Almeida [mailto:supor...@avanutri.com.br] 
Enviada em: segunda-feira, 19 de setembro de 2011 18:32
Para: php-general@lists.php.net
Assunto: [PHP] Installing PHP

Hello, I'm newbie and I'm trying to install PHP with Apache, but it doesn't
work. 

Every time I try to run a test I receive the message Not Found The
requested URL /php/php-cgi.exe/test.php was not found on this server. OR
(when I try to change some options) Forbidden You don't have permission to
access /php/php-cgi.exe/test.php on this server.

I've tried to copy the recommended configurations from some sites, but it
haven't worked. 

The machine runs Windows XP, I'm using an administrator account, no firewall
is blocking me, PHP and Apache are the most recent versions.

Thanks in advance.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php