Click to See Complete Forum and Search --> : [RESOLVED] Installing PHP5 on APACHE 2.2.x


mpasternak
06-12-2007, 11:02 AM
I'm trying to do a new install of PHP5 on Apache 2.2.x and i'm running into a serious snag.

It wont load anything! after it's installed, I've checked my configure files and then load it. When i open a page i get nothing. just blank pages no matter what.

Then if i turn on the startup error reporting i get errors galore telling me that *.dll's could not be loaded. I've checked my paths, and checked my sources, permissions and everything. The files are there!

whats going o!N!?!?!?

mpasternak
06-12-2007, 11:17 AM
First hurdle is complete.

the HTTPD.CONF file is setup incorrectly by the default PHP installer.

the directory path was setup as "C:\\APACHE\\PHP"
Removing the extra "\" allowed PHP to start up.

Still no Modules

////

Have now Added the .dll modules for mysql. uncommented the line to load the module in php.ini. No errors reported when program starts

however, Still unable to execute certain commands like "mysql_connect()"

////

Now upon restarting the apache server, I get no error messages, However, no php page loads. I get a blank page everytime

////

somethings are now working. Some aren't. I still get a lot of missing parts of the pages where I use Includes

bradgrafelman
06-12-2007, 02:34 PM
Can you show us all of the additions you've made to your httpd.conf file that are related to PHP?
Did you add the PHP directory to your system's PATH environment variable? Instructions can be found here (http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath) (yes, restart your computer after making the change is a required step)
If you do a simple PHP script: <?php phpinfo(); ?>and save it as a .php file, does it show information about PHP? OR, if you view the source of the page does it show the raw PHP code?

EDIT: Then if i turn on the startup error reporting i get errors galore telling me that *.dll's could not be loaded.In your php.ini, find the "extension=" section and comment out (place a semicolon at the beginning of the line) all extensions that you don't need. Most likely, fixing your PATH variable as described above will fix these errors (most of them, anyway).

mpasternak
06-12-2007, 03:34 PM
Dll probablem fixed by re-writing the httpd conf defaults as I said.

now it's a matter of rewriting all my pages to match PHP5s correct ways.

just having problems now with my "session_starts()"

used to work, now ti's telling me session already started.. but i can't find any reference to it

bradgrafelman
06-12-2007, 04:02 PM
Make sure the session.auto_start directive is set to Off.

mpasternak
06-12-2007, 04:12 PM
nope. session.auto_start=0 in my php.ini

this.. is going to be a while.

I'm making the move from PHP4 to PHP5 with my web application

it's a lot more difficult than i expected