DeveloperSide.NET Forums
July 05, 2020, 10:40:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 ... 6 7 [8]
  Print  
Author Topic: After upgrade Gallery does not work!  (Read 138265 times)
0 Members and 2 Guests are viewing this topic.
WBragg
Member
*
Posts: 16


View Profile
« Reply #105 on: August 12, 2006, 07:30:25 PM »

I saw a post talking about a php 5 version that won't run with apache 2.2.2 because of it not being compiled for 2.2.
I am trying to downgrade to php4.3.0 I keep getting the windows event error
"Cannot load C:/www/php4/php4apache2.dll into server: The specified module could not be found. " You think this may be a compile problem? If so do you know where I can get a 2.2.2 compiled version of php 4?
Logged

--------------------------------------------------------
Lynx Web Design Utiliy - A FREE, online,
quick and extremely powerful web design tool.
Check it out! http://members.cox.net/wlbragg/
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #106 on: August 12, 2006, 07:42:00 PM »

Looking at the previous post...

1st, you need to figure out if you placed php 4.3 under \www\php or \www\php4 -- and update the apache config files.

Then you need to update php.ini to point to the new location of the extension dir.

Then you need to update the path to point to the php dlls dir.

And chances are, that module cannot be loaded because it does not exist under that php directory. Its under \www\php\sapi and needs to be copied to \www\php

http://www.devside.net/web/server/windows/php
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
WBragg
Member
*
Posts: 16


View Profile
« Reply #107 on: August 12, 2006, 08:06:02 PM »

I did all that. It's weird because I think it's all right.

I have the lines in httpd.conf:
#Include conf/Suite-extra/mod_php5.conf
Include conf/Suite-extra/mod_php4.conf

I have two files in Suite-extra mod_php5.conf and mod_php4.conf with the correct calls respectively:
PHPIniDir "/www/php5/php.ini"
LoadFile "/www/php5/php5ts.dll"
LoadModule php5_module /www/php5/php5apache2_2.dll
or
PHPIniDir "/www/php4/php.ini"
LoadFile "/www/php4/php4ts.dll"
LoadModule php4_module /www/php4/php4apache2.dll

/www/php4 is where all dlls and the sapi are moved to in both php4 & php5.

/www/php4 is where php.ini is.
It's pointed to using PHPIniDir "/www/php4/php.ini"

the  line for extensions php.ini in /www/php4 reads
extension_dir = "/www/php4/extensions/" which is where they are.

the system path has an entry of  c:\www\php4;

When I want to flop between the two I just change sys path and Include conf/Suite-extra/mod_php4.conf line.

I even change
<Directory "/www/webroot">
   Options Indexes FollowSymLinks
   # for php ver4
   AllowOverride All
   # for php ver5
   #AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

Like I said I thought I have it all covered. I am doing the exact same thing for php5 and it works.
Logged

--------------------------------------------------------
Lynx Web Design Utiliy - A FREE, online,
quick and extremely powerful web design tool.
Check it out! http://members.cox.net/wlbragg/
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #108 on: August 12, 2006, 08:16:27 PM »

php4apache2.dll will only work with Apache 2.0
php5apache2_2.dll will only work for Apache 2.2

To use PHP 4.4 or PHP 5.1 (non dev) with Apache 2.2, those handlers have to be recompiled under the Apache 2.2 codebase.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
WBragg
Member
*
Posts: 16


View Profile
« Reply #109 on: August 12, 2006, 08:32:58 PM »

I guess I am going to have to learn how to compile if I want to switch between the two, unless you know where I can get PHP 4.3 recompiled under the Apache 2.2 codebase. Or can you point me to some good docs on compiling php?

Thank you for your help!
Logged

--------------------------------------------------------
Lynx Web Design Utiliy - A FREE, online,
quick and extremely powerful web design tool.
Check it out! http://members.cox.net/wlbragg/
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #110 on: August 12, 2006, 09:02:59 PM »

Compiling PHP is a bit involved in terms that you have to download a bunch of different packages and bring them together. After that it is simple. Searching google for 'compile OR build php windows OR win32' should give you the results you are looking for. In the mean time, you can get the php handlers from apachelounge.com
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: 1 ... 6 7 [8]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!