Hello,
I am trying to get into php and learn as much as I can but I am having a big problem. I instaled Apache 2.0.** and php 5 on my system with mysql. When I double click the file I created in php with the php extension I just get a lot of dll not found errors. I have tried re-installing php 5 several times. PLEASE HELP...
PHP 5 DLL Errors on Windows XP
Moderator: General Moderators
-
jamcas2_2002
- Forum Newbie
- Posts: 4
- Joined: Mon Feb 04, 2008 11:43 pm
-
jamcas2_2002
- Forum Newbie
- Posts: 4
- Joined: Mon Feb 04, 2008 11:43 pm
Re: PHP 5 DLL Errors on Windows XP
I tried uninstalling php and apache then re-installing apache. Then I used the zip file and moved everything into the c:/php folder. Once all of this was done the php files no longer show up as php files but text files. When I used the php installer I got nothing but dll errors when opening the file.
I added C:\php to the path setting in my enviromental variables and then shut down my system and re-started it.
I changed the php.ini-dist into php.ini and left it in the C:\php directory and it turned into a config file.
As per the instructions I added the following lines to the apache config file.
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
I really am lost here please help.
I would attach my httph.conf file but I can not find an extension that will allow it.
I added C:\php to the path setting in my enviromental variables and then shut down my system and re-started it.
I changed the php.ini-dist into php.ini and left it in the C:\php directory and it turned into a config file.
As per the instructions I added the following lines to the apache config file.
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
I really am lost here please help.
I would attach my httph.conf file but I can not find an extension that will allow it.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: PHP 5 DLL Errors on Windows XP
PHP files need to be parsed by the server. Depending on which web server you are running (I think I saw Apache) you should place your PHP files somewhere in your server root path (typically C:\program files\Apache Software Foundation\Apache2\htdocs) and then call them in your web browser like this:
http://localhost/phpfile.php
This would tell the web server to push the file the the PHP engine (if you added the AddType declaration to your httpd.conf) and the file would get parsed.
http://localhost/phpfile.php
This would tell the web server to push the file the the PHP engine (if you added the AddType declaration to your httpd.conf) and the file would get parsed.
-
jamcas2_2002
- Forum Newbie
- Posts: 4
- Joined: Mon Feb 04, 2008 11:43 pm
Re: PHP 5 DLL Errors on Windows XP
Yah, I tried that acording to the book I have. I ended up getting wamp2 and installed it. When I installed it the php file extension did not mean anything to my computer. It made text files of the .php files I tried to make and showed the "I do not know what this file is" icon for the already made .php files.
I then tried to load php5 on my system with the php5 installer and the files now register on my system as php files. The only problem is I get dll errors when trying to open one in explorer, weather it be in my htdocs path or not. I then tried to reinstall wamp2 and now nothing works.
If I had bigger than a 40gb hd I would dule boot lynx and say screw windows!
I would be very apreciative if you or anybody else could just get the awesome language of php working on my stupid windows machine. 
-
jamcas2_2002
- Forum Newbie
- Posts: 4
- Joined: Mon Feb 04, 2008 11:43 pm
Re: PHP 5 DLL Errors on Windows XP
I have figured it out.
I was going down the wrong path all along. After installing wamp2 all I had to do is create a file in the www folder provided by wamp2 and create a php file. I then open the file by clicking om the projects link in wamp2 http://localhost screen and selecting the file from the file list provided in wamp2. I does not matter that windows does not have a clue what the file really is.
I hope others find this discussion helpful.
I hope others find this discussion helpful.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: PHP 5 DLL Errors on Windows XP
Glad you got it sorted. For others that may be reading this, it really is not that hard to install Apache, MySQL and PHP on Windows all by your onesy. It might actually be a good learning experience.