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/
[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/
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.
>
>
> 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/
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.
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?
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
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?
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
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 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!