php updated from 3.1 to 3.3 - failure

I do like Mediawiki and kept away from updating my php as I read the version 3.2 was not working. Now I dared and updated to :

php -v

PHP 5.3.2 (cli) (built: Apr 3 2010 12:55:58)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

trying to start mediawiki resulted in:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404

the same story happens with any other php based application I tried.

What went wrong?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What is the URL you are accessing? Where is the .php in the server
filesystem? What do you get in your /var/log/apache2/error_log and
/var/log/apache2/access_log files when you try this and it fails?

Good luck.

On 11/05/2010 07:06 AM, MrSolar wrote:
>
> I do like Mediawiki and kept away from updating my php as I read the
> version 3.2 was not working. Now I dared and updated to :
>> # php -v
>> PHP 5.3.2 (cli) (built: Apr 3 2010 12:55:58)
>> Copyright (c) 1997-2010 The PHP Group
>> Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
>>
> trying to start mediawiki resulted in:
>> Object not found!
>>
>> The requested URL was not found on this server. If you entered the URL
>> manually please check your spelling and try again.
>>
>> If you think this is a server error, please contact the webmaster.
>> Error 404
> the same story happens with any other php based application I tried.
>
> What went wrong?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM1A+lAAoJEF+XTK08PnB5NvsP/j6Q2ajKx5Xwd4YU+RNU7Lbh
vLdgorTnqgXo+8D2QyJ1y7Rmx5lmprhvmI44fyuki++fECpN4lfitJkwsPnnFvxv
vFEzoSoW1ugbajIRIm7PJrjPDxZcwVeKXL5KhAy6BO74xJnr0dr3PrCj2izCcqwA
j89TG31zIWVmRPc78QbfBA3M4yxFu2BbOMQ3yV4GXgWrt7szHsPTVmJXMT8v5I8W
3GZQjFe1VqL+QrpzOB3bjo7wB4sgGp/HuHjYetd/U2kgltWjn+AUjqsk9VYvpIXh
y5xE7PiCMDlQAsG6c9cmCohlKogIkLvtEpblqFP/6dWtGaxS9Sel7SaYJg8heUzQ
KlaWJLS4W/j0voTfrhEnUidnqqD4rsmg7IzAxpdZkKkp2vogVSg7PFQtJVfehAeF
Viq+LjgfYceyzJR8l5sg42fP3YFJ5s30oH6hYpg9yW5whgiAfsJLpg2QQ7y5qJmn
gObKYamaIedyBYDtSQ/SbM6uGrR3G3F5TQgtsTVo+nZ/AeNuLJMVc/hgKMG5n8Mh
4qzpEgJdsacl8M0kE5KHgB6Q1t9aHx2Q7uRWTbxoy/AbmgSdgB6Md24AaykOjxHA
3IBJJlnJ2TviYoP24uMUBWAnkpj7M8i2ftM6oVY7EXVZLkTxym8BGH6yPKcPkwoY
qx5p5mexeKglqlwFhRqh
=0hTG
-----END PGP SIGNATURE-----

soltec83:/var/log/apache2 # whereis php
php: /usr/bin/php /usr/bin/X11/php /usr/local/bin/php /usr/local/lib/php /usr/share/man/man1/php.1.gz
soltec83:/var/log/apache2 #

URL:

http://192.168.0.83/mwiki/index.php5/Main_Page

access_log:

192.168.0.4 - - [03/Nov/2010:17:32:18 +0200] “GET /mwiki/ HTTP/1.1” 403 1043 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10”
192.168.0.4 - - [03/Nov/2010:17:35:39 +0200] “GET /mwiki/index.php5/Main_Page HTTP/1.1” 404 1039 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10”
192.168.0.6 - - [05/Nov/2010:13:20:27 +0200] “GET /mwiki/index.php5/Main_Page HTTP/1.1” 404 1039 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10”
192.168.0.6 - - [05/Nov/2010:13:20:27 +0200] “GET /favicon.ico HTTP/1.1” 200 302 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10”
192.168.0.6 - - [05/Nov/2010:14:25:04 +0200] “GET /mwiki/index.php5/Main_Page HTTP/1.1” 404 1039 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12”
192.168.0.6 - - [05/Nov/2010:14:25:04 +0200] “GET /favicon.ico HTTP/1.1” 200 302 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12”
192.168.0.6 - - [05/Nov/2010:14:48:45 +0200] “GET /weberp HTTP/1.1” 301 317 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12”
192.168.0.6 - - [05/Nov/2010:14:48:45 +0200] “GET /weberp/ HTTP/1.1” 403 1043 “-” “Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12”

error_log:

[Mon Oct 25 16:52:23 2010] [error] [client 192.168.0.101] File does not exist: /srv/www/htdocs/mwiki/index.php/Main_Page
[Mon Oct 25 16:52:33 2010] [error] [client 192.168.0.101] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Thu Oct 28 12:26:25 2010] [error] [client 192.168.0.102] Directory index forbidden by Options directive: /srv/www/htdocs/weberp/
[Thu Oct 28 13:11:25 2010] [error] [client 192.168.0.107] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Sat Oct 30 18:14:12 2010] [error] [client 192.168.0.6] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 08:15:54 2010] [error] [client 192.168.0.5] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:14:55 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:15:10 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index
[Wed Nov 03 17:15:17 2010] [error] [client 192.168.0.4] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Wed Nov 03 17:19:05 2010] [error] [client 192.168.0.4] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Wed Nov 03 17:19:09 2010] [error] [client 192.168.0.4] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Wed Nov 03 17:19:19 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:20:11 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:20:40 2010] [error] [client 192.168.0.4] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Wed Nov 03 17:20:46 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index
[Wed Nov 03 17:30:38 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:32:07 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Wed Nov 03 17:32:18 2010] [error] [client 192.168.0.4] Directory index forbidden by Options directive: /srv/www/htdocs/mwiki/
[Wed Nov 03 17:35:39 2010] [error] [client 192.168.0.4] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Fri Nov 05 13:20:27 2010] [error] [client 192.168.0.6] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Fri Nov 05 14:25:04 2010] [error] [client 192.168.0.6] File does not exist: /srv/www/htdocs/mwiki/index.php5/Main_Page
[Fri Nov 05 14:48:45 2010] [error] [client 192.168.0.6] Directory index forbidden by Options directive: /srv/www/htdocs/weberp/

Hi,

First thing : you cannot provide this kind of URL for us to test, it is an IP address that is part of you’re local network. We can’t access it. :wink:

Did you check if apache is started? Maybe a restart of apache server is advisable here.

File does not exist: /srv/www/htdocs/mwiki/index.php/Main_Page

Is this file really exist ans if so, do you still have rights to access it?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Apache is obviously active as it is returning the 404, and its logs also
indicate as much.

MrSolar, does this exist in any form?

/srv/www/htdocs/mwiki/index.php5/Main_Page

I’m going to guess it does not, but that’s not too bad perhaps. The
index.php5 file should exist at least (unless you changed your MediaWiki
version, which you didn’t mention) so then the next thing is ensuring
Apache knows to interpret .php5 files with PHP. On my system the
following file has info:

/etc/apache2/conf.d/php5.conf

but the following command could be useful to see the output of in lieu of
the above exact file:

cd /etc/apache2
sudo grep -iR php5 *

Post back what you get, please.

Good luck.

On 11/05/2010 11:06 AM, DaaX wrote:
>
> Hi,
>
> First thing : you cannot provide this kind of URL for us to test, it is
> an IP address that is part of you’re local network. We can’t access it.
> :wink:
>
> Did you check if apache is started? Maybe a restart of apache server is
> advisable here.
>
>> File does not exist: /srv/www/htdocs/mwiki/index.php/Main_Page
>
> Is this file really exist ans if so, do you still have rights to access
> it?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJM1NzHAAoJEF+XTK08PnB5JswQAItvdsMhy2HA722rBb5WK/xw
dXxzzcXefc22GT0tHGuyIGAHiaghs9kokpsHBoN8Qc0pTuhY8trWdWA8Chs2vCqF
W8uImg9XfqJbczwGEdsjUJOaeGZq3Je2/GN8iYFgjsT8mHOxMcrSdnXfDNk3hM0Q
FU3fH4TPJ3baq3JDh5v4l2l/CmxNjA44Vf+1hufP6VXQmXULZLjmUKPI6Gj+Ythm
XkKvXuSiRSqALjmlRqwTYrX9bC9DclH8UOOMuLcukAO+LIGePegRoT5/FYfoSzYm
Sa0RuBmgaAGbbOJIPNyFTQhemXtL44YzJ80sz+tfReAC5zFWoeFXFN5aMEcL1kbo
huq1qHwhIGKP00NE6a8z1SF/aX672qveldsHXPgBCKGZUj8Pg2awA/vEtfp/0hD1
fLkETOXs9lRvbzgJtghRGtfNzYUQDxAdcz+4YLnXYCblvs939REEXr5mkGPCElTZ
86I+H84UGE6/j/L+4Focl9YKHdfw9bTwXuyi8aLcqn1wz9a6qi9KAZ3+FeB92oHv
hOtmC203aJ21PU0VFAe84RhGOegU5Uj9rdTCwl+R/1BDDWly0GEnQ5wa4xjXnb9/
vBtQlvHruqUsQJLnHvtmb2zj0V4TFr+3W8cS8nE+bI/SZJZABoVzPc5bMgU1RtTn
SGU8zbCDikL0ylxpBHaS
=Xflj
-----END PGP SIGNATURE-----

Thank you ab!

Apache is running, so is Mysql

I assumed access rights first and change all of the folder to wwwrun:www, than to myself, than back to apache, no success.

“/srv/www/htdocs/mwiki/index.php5/Main_Page” does not exist, but even if I enter “/srv/www/htdocs/mwiki/index.php5” I get an error!

“/etc/apache2/conf.d/php5.conf” does exist and I did in-between delete the Mediawiki folder and restored it and meanwhile tried the a new installation, but all to the same effect.

I installed on another machine Mediawiki from scrap (without restoring the contents of this specific wiki) with the same php version and that worked fine. I can´t event get a new installation going on the machine in question.

soltec83:/etc/apache2 # grep -iR php5 *
conf.d/php5.conf:<IfModule mod_php5.c>
conf.d/php5.conf: AddHandler application/x-httpd-php .php5
conf.d/php5.conf: AddHandler application/x-httpd-php-source .php5s
conf.d/php5.conf: DirectoryIndex index.php5
vhosts.d/vhost.template: # Include /etc/apache2/conf.d/php5.conf
soltec83:/etc/apache2 #

???

Check the line in your httpd.conf like
DirectoryIndex index.html index.htm …
If there is no index.php5 there - add it.
Secondly, why there is no question mark between the URI and parameters in the URL “/mwiki/index.php5/Main_Page”? Are you sure “/mwiki/index.php5?/Main_Page” is wrong?

Thank you sunders

added index.php index.php5 to httpd.conf : no change in result
added ? so URL looks like “http://192.168.0.83/mwiki/index.php5?/Main_Page” : <?php require ‘./index.php’;
you are on the right track, but I am still lost …

After editing httpd.conf httpd demon should be restarted.
Does your browser open files with .php extension on your web-server properly? If it does but sends contents of a .php5 file instead of the results of its’ running check a line “AddHandler application/x-httpd-php .php5” in httpd.conf or php5.conf. If there is no such line add it in appropriate place.
If your server does not process PHP files as scripts at all, check “LoadModule php5_module” string in Apache configuration files. Location of the module on OpenSuse may be /usr/lib/apache2/mod_php5.so

Thanks again, sunders

did that

this is exactly what happens now after the last changes
did not find any “LoadModule” in http.conf, how & where must I add that - or should I reinstall Apache?

did not find any “LoadModule” in http.conf

Maybe LoadModule resides in sysconfig.d/loadmodule.conf or some other file included from httpd.conf

Thanks again!
I have meanwhile loaded the php5 module, it was not active, reinstalled apache2, funilly the system request prefork and worker.
Still the results are faulty. I do not know what has changed the system so drastically by just updating ???
Shall do a complete new machine, thanks for your support, but I am giving up now!

No good giving in, Linux takes no prisoners :wink:
If reinstall does not help look in configuration files.
What shall you see in your browser for http://localhost/info.php if the info.php’s contents is “<?php phpinfo(); ?>”?
What changes if you rename the file to info.php5?

I admire your patience!
& I have no clue at what to look :frowning:

http://192.168.0.83/info.php

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.0.83
Tue Nov 9 12:37:17 2010
Apache/2.2.15 (Linux/SUSE)

and
http://192.168.0.83/info.php5

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.0.83
Tue Nov 9 12:39:04 2010
Apache/2.2.15 (Linux/SUSE)

sunders,

I made it :)) ! Do not know what and how, but I reinstalled the wiki and can run weberp again, Thank you for teaching me patience! When you come to Windhoek I owe you a beer or two!

mm… interesting for me, thanks!