You are here: Re: HELP - sure is a piece of cake for you « PHP Programming Language « IT news, forums, messages
Re: HELP - sure is a piece of cake for you

Posted by IchBin on 07/27/06 15:51

greenflame wrote:
> IchBin כתב:
>> PTM wrote:
>>> "greenflame" <dynamic.efry@gmail.com> wrote in message
>>> news:1153945697.003650.20850@75g2000cwc.googlegroups.com...
>>> hi, Phil, and thank you for your rapid response.
>>>
>>> mmmm. to be honest, I'd be glad to have more instructions since I have
>>> no idea what or hw to use this function. phpinfo();
>>>
>>> and what does it mean to run something through a server? just rephrase,
>>> please.
>>> :D
>>>
>>> thank you
>>> Efry
>>> PTM ???:
>> - Create a php file, say you call it 'phpinfo.php', with this:
>> <?php
>> phpinfo();
>> ?>
>>
>> - Find in your Apache2.conf where the 'DocumentRoot' is set and save
>> that file in that subdirectory.
>>
>> - Then load the file in a browser.
>>
>> http://localhost/phpinfo.php
>>
>> This will show you the PHP configuration.
>>
>> Thanks in Advance...
>> IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
>> __________________________________________________________________________
>>
>> 'If there is one, Knowledge is the "Fountain of Youth"'
>> -William E. Taylor, Regular Guy (1952-)
>
> Hello all,
> thank you for your kind assistance.
>
> as you all think, I believe as well that I have installed it badly.
>
> I have changed the root server to another directory, and it doesn't
> recognize php files. i'll go over your suggestions to see if there's
> anything I can do.
> now, on the new directory I have copied the - htdocs, conf & logs
> directories.

You do not want to move htdocs, conf & logs directories. Just leave them
alone. You only need to change the 'DocumentRoot' to point where you
want to load your php scripts. You could just leave the 'DocumentRoot'
the default and put your scripts in htdocs.

> on http://localhost/ I still see the list of files.
> I'll check on your suggestions and see if I manage to change anything.
> Thank you all.
> Efry
>

Did you add these changes to your apache.conf:

- Add index.php to 'DirectoryIndex index.html index.html.var'
- Add these:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Add (I am on Windoze and run Apache2 so)
LoadModule php5_module "C:/php5.2/php5apache2.dll"
- I keep my PHP.ini in the PHP_Base_folder, so I configure to the PHP
ini:
PHPIniDir "C:/php5.2"
SetEnv PHPRC "C:/php5.2"

Take a look at this link:
http://www.tanguay.at/installPhp5.php5

Specifically items:
6. Configure PHP5 to Work with Apache
7. Test PHP5

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация