|
Posted by Hilarion on 01/03/06 16:56
> I was asked to learn SQL for my employer. The book I'm starting in said that
> I would need; a web server(Apache), so that it can access the PHP language.
> In addition, I would need MySQL installed and PHP has to be able to
> recognize MySQL.
Are you sure you are reading the proper book?
Learning SQL does not require you to have webserver with PHP or even a MySQL
server (it can be any SQL engine, including - which does not mean it's
a good idea - plain MS Access file). If you do not want to learn how to
make dynamic HTML web-pages based on server-side PHP script, then dump
this book and look for some tutorials on SQL in the Internet.
> So..
> I downloaded :
> apache_2.0.55-win32-x86-no_ssl (windows apache installer package)
> mysql-essential-5.0.18-win32 (mySQL installer package)
> php-5.1.1-installer (PHP installer package)
>
>
> I installed apache i followed the directions exactly as on the site and then
> tested it by typing http://localhost/ in to my browser and a page came up
> that said it was installed.
It looks like you have the apache webserver installed OK.
> Then, I installed MySQL. Then it said to test that MySQL was working
> properly I would then open MySQL Command Line Client, simply enter the
> password, and if the client allows access with no errors, that MySQL would
> be working properly. .. There were no errors.
So it looks like you have MySQL database server installed OK.
> Lastly I installed the PHP. The instructions said that after installing PHP
> that we would need to configure a few options to make PHP work. It then said
> to edit the httpd.conf file. So i added these lines after the last line of
> the config file:
>
> ScriptAlias /php/ "c:/server/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> Next it said to create a file in htdocs folder called phpinfo.php.Then to
> open the file and place the following code within it:
>
> <?PHP phpinfo(); ?>
>
> Next to save and close the file then open IE and type
> http://localhost/phpinfo.php in the bar. If i saw a certain page come up
> that it worked. It didn't work but I followed all the instructions exactly
> as stated. Any idea why?
Looks like some configuration issue. I've never had a problem with WAMP
(Windows + Apache + MySQL + PHP) instalations, so I do not know what to
look for, but you'll probably find many articles about configuring PHP
to work with your Apache and MySQL with Google. There also may be something
about it in PHP manual and/or Apache manual and/or MySQL manual because
those three are used together very often (make sure you read about
Windows case).
Hilarion
Navigation:
[Reply to this message]
|