logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Strange problem with apache and PHP
Author
wuh



Joined: 26 Jun 2006
Posts: 1
Location: Wales, UK

PostPosted: Mon 26 Jun '06 16:47    Post subject: Strange problem with apache and PHP Reply with quote

Today I've made the move from apache 1.x and php4 to apache 2.2.2, php5 and mysql5 - which wasn't a particularly pleasant experience. I followed the advice given here and now have it working - well, partially.

phpinfo() works as expected, and indeed when I create a test file to echo some text this works too. However, when i move my archived site development into the htdocs folder apache refuses to even attempt parsing the files. What's odd is that when i run
Code:
php c:\apache2\htdocs\archive\index.php
it parses. Even though it's currently not connecting to the database, it at least outputs this to the console - Apache gives no such output.

Any help would be appreciated, I just can't understand why Apache seems to be totally disregarding my older files.

Huw
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 26 Jun '06 19:34    Post subject: Reply with quote

For commandline you have to use the php-cli
Secondly how did you integrade PHP in the httpd.conf? Any error in the error log?
The Database thing I think the SQL server is not running, is it? Or isn't php_mysql.dll loaded in php.ini? Used PHPIniDir in httpd.conf? What about register globals?
Back to top


Reply to topic   Topic: Strange problem with apache and PHP View previous topic :: View next topic
Post new topic   Forum Index -> Apache