1
sikey
Need to upgrade php and apache... help ;-)
  • 2005/11/29 18:29

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


I need to update my php and apache and was wondering what the best versions would be to choose for use with xoops?... i've heard there are probs with php5...

Any help would be much appreciated :)

2
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/11/30 11:36

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


I upgraded to apache 1.3.34 and php 4.4.1 and now on SOME? sites i get the message from the browser "save file as" when i want to go to the index.php or root of the domain... On some other XOOPS installs which are installed in subdirectories XOOPS works without a problem...

I should note, all other pages in the affected XOOPS installations work without problems...

Can anyone explain?

3
jdseymour
Re: Need to upgrade php and apache... help ;-)

I may be completely wrong, but here are some suggestions to look for.

First in the apache config file make sure apache recognizes the .PHP extension.

Next make sure that index.php is a registered document type.

HTH.

4
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/11/30 12:09

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


Hi,
well i guess the problem lays somewhere else... for instance,
when i access http://www.domain.com i get the error but when i type http://www.domain.com/index.php it works... there are several sites XOOPS on the same server and only some give this probem...

5
jdseymour
Re: Need to upgrade php and apache... help ;-)

That is the problem I mention, you have to specify index.php instead of it being automatically picked up by default.

6
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/11/30 12:23

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


Can you explain me how to do this? I don't understand where i would have to change anything... I would be ever so grateful :)

7
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/11/30 12:35

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


I think it has something to do with the mainfile.php (both XOOPS instances who have the problem are old XOOPS versions that were upgraded)

In mainfile.Php i have
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', 'http://www.agrreviews.com');
define('XOOPS_CHECK_PATH', 1);

While it should be
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
define('XOOPS_URL', '');
define('XOOPS_CHECK_PATH', 1);

as far as i know?

8
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/12/1 6:17

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


anyone?

9
jdseymour
Re: Need to upgrade php and apache... help ;-)

Here is an excerpt from a tutorial that may give some hints:

Quote:
Now you have to add another line to this httpd.conf file so that Apache invokes PHP parser whenever a file with extension php (.php) is accessed. When PHP parser is invoked by Apache it reads .php file which contains PHP code blocks, html tags and other text. Parser then executes PHP code found inside blocks and then merges PHP code results and other html content (as is). Resulting output is then sent back to Apache which in turn sends it to web browser which requested the file.

The line to be added is:

AddType application/x-httpd-php .php

To add this line search for word AddType in httpd.conf file. There will be a line like this:

AddType application/x-tar .tgz

Below this line add (on a new line):

AddType application/x-httpd-php .php

{Note} If you are unable to find any AddType line, then add the above line at the end of the file.

{Note} With Apache 2_0_28-beta line to be added at the end of httpd.conf file was:


SetOutputFilter PHP
SetInputFilter PHP


But with Apache 2.0.44 AddType syntax has to be used.

You can add any file extension in addition to .php if you want to invoke PHP parser for any other file extension also. Like:

AddType application/x-httpd-php .phtml

will invoke PHP parser whenever any file with phtml extension (.phtml) is accessed.

Save this file and then start Apache:


The full tutorial is Here.

10
sikey
Re: Need to upgrade php and apache... help ;-)
  • 2005/12/1 12:20

  • sikey

  • Not too shy to talk

  • Posts: 151

  • Since: 2003/4/29


This is what is in my httpd.conf under that section

AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps

AddType application/x-tar .tgz
AddType image/x-icon .ico

So that isn't the problem... strange thing also is when i type http://www.domain.com it doesn't work, and when i type http://www.domain.com/index.php it does work...

The two sites that don't work were sites that were upgraded from XOOPS 2.0.6 all the other were upgraded from 2.0.10 and do work...

Login

Who's Online

392 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 392


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits