Can't Get PHP to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I sure hope someone here can help me. I spent the entire day yesterday and most of the evening setting up a webserver on my Windows 2000 Pro system. I've got PHP 5.04, MySQL 4.1.12, ActivePerl 5.8.6, Java Runtime Environment, Tomcat 5.5.9, ZendOptimizer 2.5.10, MyODBC 3.5.11 and phpMyAdmin 2.6.2 all installed.

From what I can tell, all is working well except PHP and phpMyAdmin.

I added PHP to my path like this:

C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php;C:\Apache2\bin;C:\mysql\bin;C:\php\dlls;C:\Program Files\Common Files\Ulead Systems\MPEG;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier"

I've got a copy of php.ini in both my c:/php directory and in c://winnt. I've listed my user directory as c:/apache/apache2/htdocs and I've placed phpmyadmin in htdocs.

But when I try to view a php page I get an error or page cannot be displayed. On a couple of occassions I viewed the raw php data in my browser.

Also, when I try to add a php extension using "LoadModule" in my httd.conf file I get an error loading Apache telling me that "the file cannot be found" (but I've verified it exists - like php5apache.dll and php5ts.dll).

Can someone please help me figure out where I'm screwing up at?

Thanks in advance!

Edited to say I'm getting Closer!!!

Now when I go to [url=http://localhost/phpmyadmin]http://localhost/phpmyadmin[/url] I get the following info:

cannot load mysqli extension;
please check PHP configuration
[u]Documentation[/u]

And the documentation says:
[b][1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". [/b]To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.

I have tried using both mysql and mysqli in config.inc.php (phpmyadmin config file) and either way I get the same error message. And in php.ini I have enabled the following extensions:

extension=php_mysql.dll
extension=php_mysqli.dll

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux