Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

PHP Newbie.. pls HELP !

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

PHP Newbie.. pls HELP !

Postby ullas » Mon Aug 05, 2002 4:49 am

Hey guys,

I am an absolute Newbie. I was just going through the PHP manual at PHP.net, so was testing a few PHP scripts

Just realised that I cannot test my scripts on the local machine, I always have to upload and then execute it from a server that supports PHP

Is there anyway I can turn my PC into a PHP server or can I install anything that will make my PHP scripts run on my machine for convenience sake ?? just like we have PWS to run ASP, something like that !

I am a total newbie.. and my OS is WIN98SE. Pls help !
ullas
New php-forum User
New php-forum User
 
Posts: 12
Joined: Fri Aug 02, 2002 11:58 pm

Postby Jay » Mon Aug 05, 2002 5:01 am

You can download PHP and install it? :D

Just be sure to select the correct version.
Jay
 

Re: PHP Newbie.. pls HELP !

Postby WiZARD » Mon Aug 05, 2002 7:16 am

ullas wrote:Hey guys,

I am an absolute Newbie. I was just going through the PHP manual at PHP.net, so was testing a few PHP scripts

Just realised that I cannot test my scripts on the local machine, I always have to upload and then execute it from a server that supports PHP

Is there anyway I can turn my PC into a PHP server or can I install anything that will make my PHP scripts run on my machine for convenience sake ?? just like we have PWS to run ASP, something like that !

I am a total newbie.. and my OS is WIN98SE. Pls help !


In some time i too have only Win98 i use Apache server http://httpd.apache.org/ it's best varian of server cause run under any platform. PWS not good variant cause Apache most popularity and easy server than PWS.
All installation have in manual.
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby ullas » Mon Aug 05, 2002 8:01 am

Hey Jay-Wizard,

Thanks for your help..dudes ! I just downloaded PHP and then installed it on PWS.

I really didn't get to test it, bcoz I cant locate PWS, although I have installed it and I can even locate it in Installed Programmes list. :roll:

Anyways right now I am downloading Apache !

Thanks again... I'll get back.. once I install it :wink:
ullas
New php-forum User
New php-forum User
 
Posts: 12
Joined: Fri Aug 02, 2002 11:58 pm

Postby WiZARD » Tue Aug 06, 2002 6:48 am

ullas wrote:Hey Jay-Wizard,

Thanks for your help..dudes ! I just downloaded PHP and then installed it on PWS.

I really didn't get to test it, bcoz I cant locate PWS, although I have installed it and I can even locate it in Installed Programmes list. :roll:

Anyways right now I am downloading Apache !

Thanks again... I'll get back.. once I install it :wink:

You're welcome! :wink:
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Pim » Tue Aug 06, 2002 7:16 am

If you really want to get a good idea.

you'll need:
Apache
PHP
mysql

These three are well known to each other. Only windows machines cause buggy responses.

But how much time do you have. I hope a lot!

Pim
Pim
New php-forum User
New php-forum User
 
Posts: 18
Joined: Tue Aug 06, 2002 3:51 am
Location: Netherlands

Postby ullas » Tue Aug 06, 2002 9:10 am

hey guys,

I downloaded the Apache MSI file for Windows and installed it, keeping most of the default settings (infact I didn't change any)

Then, I installed PHP 4.2.2 using the 'php-4.2.2-installer.exe' also available for download on the php.net, and I installed PHP to run on an 'Apache Server' when it gives the various server options

But at the end of the installation, it gave me an error, this is what it read

"Sorry, the software to automatically configure the Apache httpd.conf file has not yet been written. You will have to configure Apache manually. See the install.txt file for more details."

Also, when I see the 'Apache Service Monitor' on my taskbar it reads "No Services Installed" ... DUH ! I am confused.. I triad reading the installation manual at php.net and it went over my head :cry:

Yes I know manual install it should be, just wanted you guys to probably drop some hints or suggestions-guidance :roll:

P.S: And hey PIM, I downloaded all the 3 necessities that you suggested, and yes my OS is WIN98SE :( As far as time and commitment, I really will give it all that I've got to learn PHP !

I should say people have been really helpful on this board. Thanks :D
ullas
New php-forum User
New php-forum User
 
Posts: 12
Joined: Fri Aug 02, 2002 11:58 pm

Postby Pim » Tue Aug 06, 2002 1:27 pm

Hoi Ullas,

For Apache you have to check the following things:
Give you my bits and pieces. No guarantee though. (Make backup before change!!)
#
# ServerType is either inetd, or standalone. Inetd mode is only supported on
# Unix platforms.
#
ServerType standalone

#
# 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.
#
ServerRoot "C:/Apache Group/Apache"

# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
ServerName http://192.168.1.1/

#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution)
# will typically use:
#
#AddType application/x-httpd-php3 .phtml
#AddType application/x-httpd-php3-source .phps

#PHP 4 installation

AddType application/x-httpd-php-source .phps
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "c:/php/php.exe"

For mysql you have check whether you can logon using a command prompt. Just type >mysql

Type in mysql >show databases;

If that works you got mysql going. Install WinMySQl also extremely usefull tool!!!

For PHP you have to change PHP.ini and copy the right .exe to the windows system directory. You can find these kind off information in several documentations.

Good luck!!
Pim.
Pim
New php-forum User
New php-forum User
 
Posts: 18
Joined: Tue Aug 06, 2002 3:51 am
Location: Netherlands

Postby cho@ » Wed Aug 07, 2002 3:07 am

im a novice in php apache and them al as well...

so like i spend one all day to try to install php on PWS..i gave up and now i use apache...

but like i said i m a novice i used PHPTRIAD...
( http://www.cnet.com)

ok its not the latest version of all the stuff ...but at least it s very easy to install..so...its up to u..

c u mate
cho@
New php-forum User
New php-forum User
 
Posts: 39
Joined: Tue Aug 06, 2002 8:58 am
Location: UK

Postby ullas » Thu Aug 15, 2002 7:12 am

Hey guys,

Thanks for all your help and suggestions :D

I finally installed, PHP 4.1, Apache 1.3 and MYSQL on my Win98 system.

I used PHP Triad for this (as Cho@ suggested), so I really didnt have to configure anything. I know a lot of people would not agree it that way. But maybe as I get a better idea of how things work, I surely want to do a reinstallation and a MANUAL configuration later on ;)

So, finally I am ready to get started, I am already reading the PHP Manual at php.net as most of them say thats the best way to get started.

Well, thanks for everything, just wanted to let you guys know about all this. PHP surely is interesting \m/ THANK YOU !
ullas
New php-forum User
New php-forum User
 
Posts: 12
Joined: Fri Aug 02, 2002 11:58 pm


Return to PHP Installation

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.