HELP - sure is a piece of cake for you

This is a discussion on HELP - sure is a piece of cake for you within the PHP Language forums, part of the PHP Programming Forums category; well, after deleting all and reinstalling apache server 2 (the latest version) and reconfiguring all. - still with SAME PROBLEM. nwo ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-27-2006
greenflame
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you

well,
after deleting all and reinstalling apache server 2 (the latest
version)
and reconfiguring all. - still with SAME PROBLEM.
nwo the server root is set to another directory/htdocs.
I have copied the directories:

htdocs, cgi-bin, modules, conf, and logs.

some due to a an error.

as said in this correspondence , phpinfo didn't work, as expected.
apache server does not give any error msgs.

I don't understand what I do wrong. please help.

thank you ,
Efry

greenflame כתב:
> IchBin כתב:
> > PTM wrote:
> > > "greenflame" <dynamic.efry@gmail.com> wrote in message
> > > news:1153945697.003650.20850@75g2000cwc.googlegrou ps.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.
> 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


Reply With Quote
  #12 (permalink)  
Old 07-27-2006
elyob
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you

What OS are you using? Windows? If so, why not consider getting a pre-built
solution and installing that.

http://en.wikipedia.org/wiki/Comparison_of_WAMPs



Reply With Quote
  #13 (permalink)  
Old 07-27-2006
greenflame
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you


elyob wrote:
> What OS are you using? Windows? If so, why not consider getting a pre-built
> solution and installing that.
>
> http://en.wikipedia.org/wiki/Comparison_of_WAMPs


yes, I do use Windows (XP).
I have installed MySQL and as well PHP. but it doesn't work.
the PHP file does load , but the syntax is ignored. the <? php ?>

I will try to do so as I get home and hope it will fix that problem.

Thank you once again.

Efry

Reply With Quote
  #14 (permalink)  
Old 07-27-2006
greenflame
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you

hello again,

I have viewed the page and read some about it.

I have installed all except Linux.

mmmmmmmmh

but i think i'll try anyway.

Efry

elyob wrote:
> What OS are you using? Windows? If so, why not consider getting a pre-built
> solution and installing that.
>
> http://en.wikipedia.org/wiki/Comparison_of_WAMPs


Reply With Quote
  #15 (permalink)  
Old 07-27-2006
IchBin
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you

greenflame wrote:
> IchBin כתב:
>> PTM wrote:
>>> "greenflame" <dynamic.efry@gmail.com> wrote in message
>>> news:1153945697.003650.20850@75g2000cwc.googlegrou ps.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-)
Reply With Quote
  #16 (permalink)  
Old 07-27-2006
greenflame
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you


IchBin wrote:
> greenflame wrote:
> > IchBin כתב:
> >> PTM wrote:
> >>> "greenflame" <dynamic.efry@gmail.com> wrote in message
> >>> news:1153945697.003650.20850@75g2000cwc.googlegrou ps.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
> __________________________________________________ ________________________


Thanks a lot, I believe that it is exactly what I need.
I will check it as I get home.
will keep yuo updated. Thank you :D:D:D:D
Efry

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


Reply With Quote
  #17 (permalink)  
Old 07-27-2006
Jerry Stuckle
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you

greenflame wrote:
> elyob wrote:
>
>>What OS are you using? Windows? If so, why not consider getting a pre-built
>>solution and installing that.
>>
>>http://en.wikipedia.org/wiki/Comparison_of_WAMPs

>
>
> yes, I do use Windows (XP).
> I have installed MySQL and as well PHP. but it doesn't work.
> the PHP file does load , but the syntax is ignored. the <? php ?>
>
> I will try to do so as I get home and hope it will fix that problem.
>
> Thank you once again.
>
> Efry
>


Maybe short tags is off?

<?php
phpinfo();
?>

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #18 (permalink)  
Old 07-28-2006
greenflame
 
Posts: n/a
Default Re: HELP - sure is a piece of cake for you


IchBin wrote:

> 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-)



I absolutely adore you!!! Thank you, thank you, and thank you again!!!!
PROBLEM SOLVED!!!!

short description of problem: PHP blank screen and source code can be
seen (is not recognized)

solution: follow IchBin's comment here.

Thanks also to the great person who wrote this:
http://www.tanguay.at/installPhp5.php5

step by step and all the little problems that may get in the middke

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0