Problème utilisation "The requested URL was not found on this server" .htaccess ??

1,271 views
Skip to first unread message

Bertrand Torchy

unread,
May 14, 2015, 10:23:58 AM5/14/15
to jor...@googlegroups.com
Bonjour,
J'ai un problème pour utiliser Jorani... problème à priori classique, mais pour l'instant sans solution malgré ce forum.

J'ai installé Jorani 0.3.2 sur un hébergeur (amen)
A priori, pas de problème pour le module Apache de réécriture des URLs chez eux.(Question posée à leur SAV, et il suffit de mettre un .htaccess.

Voici le résultat de mon requirements.php

Web Server

Requirement Value / Description
 Server softwareApache
 Allow overwrite (.htaccess files)Off (used for cool URLs).
 Apache module rewrite (mod_rewrite).htaccess not visited (used for cool URLs).
 openssl is LOADED PHP Extension openssl speeds up the log in page
 ldap is LOADED PHP Extension ldap is optional and allows you to use LDAP for authentication.
 zip is LOADED PHP Extension zip allows you to use the export to Excel feature.
 xml is LOADED PHP Extension xml allows you to use the export to Excel feature.
 gd is LOADED PHP Extension gd2 allows you to use the export to Excel feature.
 mysqli is LOADED mysqli is the recommended database driver.

Database

Requirement Value / Description
 Configuration fileFound
 Database connectionOK
 Database nameFound
 Database queryOK

A priori, rien que du déjà vu, bien que je ne comprennes pas pourquoi il indique "Allow overwrite" à Off.

J'ai fait des tests : Le .htaccess est bien visité.

Voici mon .htaccess (rien que du standard)

SetEnv ALLOW_OVERWRITE On
<IfModule mod_rewrite.c>
    Options +FollowSymLinks

    RewriteEngine On
    # Tell PHP that the mod_rewrite module is ENABLED.
    SetEnv HTTP_MOD_REWRITE On

    ### Canonicalize codeigniter URLs
    RewriteRule ^(welcome(/index)?|index(\.php)?)/?$ / [L,R=301]
    RewriteRule ^(.*)/index/?$ $1 [L,R=301]
 
    # Removes trailing slashes (prevents SEO duplicate content issues)
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)/$ $1 [L,R=301]
 
    # Enforce www
    # If you have subdomains, you can add them to
    # the list using the "|" (OR) regex operator
    #RewriteCond %{HTTP_HOST} !^(www|subdomain) [NC]
    #RewriteRule ^(.*)$ http://www.domain.tld/$1 [L,R=301]
 
    # Enforce NO www
    #RewriteCond %{HTTP_HOST} ^www [NC]
    #RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]
 
    ###
     # Removes access to the system folder by users.
    # Additionally this will allow you to create a System.php controller,
    # previously this would not have been possible.
    # 'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]
 
    # Checks to see if the user is attempting to access a valid file,
    # such as an image or css document, if this isn't true it sends the
    # request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # Without mod_rewrite, route 404's to the front controller
    SetEnv HTTP_MOD_REWRITE Off
    ErrorDocument 404 "Error : Module rewrite is not available check your system with requirements.php"
 </IfModule>

Le problème : J'ai une erreur 500

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Si j'enlève le dernier RewriteRule du .htaccess ("RewriteRule ^(.*)$ index.php/$1 [L]"), je n'ai plus d'erreur 500, mais la fameuse erreur "The requested URL was not found on this server"

Not Found

The requested URL /session/language was not found on this server.

 

Si quelqu'un peux m'expliquer, je suis preneur...
Merci d'avance
Bertrand TORCHY
www.vignoux.fr
 

Benjamin BALET

unread,
May 17, 2015, 5:29:18 AM5/17/15
to jor...@googlegroups.com
Bonjour,

La version 0.3.2... n'existe pas. Il existe la 0.3.1 et la 0.4.0 (de la semaine dernière).

Si "Allow overwrite" est à Off, c'est que ton hébergeur n'autorise pas le passage de variables d'environnements du .htacces vers le PHP (Ce qui est fait avec la premier ligne du .htaccess SetEnv ALLOW_OVERWRITE On), astuce utilisée pour tester si le fichier .htaccess a été visité.

Certains hébergeurs (Free, Amen, etc.) interdissent certaines directives ou limitent les options disponibles.

C'est un problème spécifique à l'hébergeur, je te conseille donc de poser la question sur un forum dédié. Une petite recherche sur Google semble indiquer une piste:

Mais je ne peux pas assurer le support des hébergeurs...

Benjamin

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/565cf287-6727-4fc5-b8f1-071e0b6ce302%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bertrand Torchy

unread,
May 23, 2015, 9:38:47 AM5/23/15
to jor...@googlegroups.com
Bonjour,

Merci pour cette première réponse.
Tout d'abord, il s'agit bien de la version 0.3.1 de Jorani...

AMEN m'assure que la réécrtiture des URLs est active.
ET j'ai testé la visite de mon .htaccess (en suivant la procédure décrite ici : http://www.expreg.com/rewrite.php)

1) J'ai créer un fichier test.php
2) J'ai un simple fichier .htaccess pour permettre la réécriture de test.html en test.php

RewriteEngine on
RewriteRule ^test\.html$ /test.php [L]

3) et en lançant monsite/php.html, j’exécute bien le fichier test.php

Mon problème ne vient donc pas du passage dans .htaccess, car celui ci est bien visité.

Donc, même si je ne comprends pas pourquoi requirements.php indique que "Allow overwrite" à Off, le problème ne vient pas de la visite de .htaccess.




Benjamin BALET

unread,
May 23, 2015, 10:38:44 AM5/23/15
to jor...@googlegroups.com
Je n'ai pas dit que le fichier htaccess n'était pas visité. Par contre, j'ai dit:
"Si "Allow overwrite" est à Off, c'est que ton hébergeur n'autorise pas le passage de variables d'environnements du .htaccess vers le PHP"

Et je me cite moi-même:
"Certains hébergeurs (Free, Amen, etc.) interdissent certaines directives ou limitent les options disponibles"

Merci de voir avec le SAV d'Amen ou sur un forum d'entraide Amen. à moins qu'un des utilisateurs de Jorani soit sur Amen (j'en doute, la plupart utilisant un VPS ou un serveur dédié dans leur intranet).




--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.

Sisantha K Godawela

unread,
May 23, 2015, 11:50:26 AM5/23/15
to jor...@googlegroups.com

Hi good day,

May I ask a small request if you do not mind regarding the web access to lms please?

If it's ok, here is it: using  the correct credentials of the database owners "name" and "password",  it always rejects: "the given name or the pawssord is wrong", given that all the required necessary data to "database.php" are correct.

I've tried this on many FreeBSD servers, includine jails as well and  but it gives the same result

Besides, I'm ruining a lot more, almost similar applications of this type and but I don't get this phenomena straight unfortunately.

Kind regards,

Sisantha

PS.: sorry that I can't write in french!

 

On 2015-05-23 15:38, Bertrand Torchy wrote:

Bonjour,

Merci pour cette première réponse.
Tout d'.abord, il s'agit bien de la version 0.3.1 de Jorani...

 

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/32d6102e-fdb0-4f81-88ef-9433b8a3bb1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--

 

 

On 2015-05-23 15:38, Bertrand Torchy wrote:

Bonjour,

Merci pour cette première réponse.
Tout d'.abord, il s'agit bien de la version 0.3.1 de Jorani...

 

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.
To view this discussion on the web visit https://groups.google.com/d/msgid/jorani/32d6102e-fdb0-4f81-88ef-9433b8a3bb1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

--
Buirer Str. 25
50170 Kerpen
 
Mobile: 015750749218/015255759167
 

Benjamin BALET

unread,
May 23, 2015, 12:41:43 PM5/23/15
to jor...@googlegroups.com
Hi,

I am not sure to understand your problem. Provided you didn't change the default values into the database:
  • The default username is bbalet
  • The default password is bbalet
Benjamin


Sisantha K Godawela

unread,
May 23, 2015, 1:43:31 PM5/23/15
to jor...@googlegroups.com

Hi, thank you for the prompt answer.

 I changed in "database.php" in many variants, e.g.:

1)'hostname' -> from 'localhost' to '127.0.0.1', and again to '192-168.2.2' - > to 'localhost' ter

2)'username' -> lms database owners 'name' ( not 'root')

3) 'database' -> here -> 'lms' ( name of the Joranis database name)

4) 'dbdriver' -> from 'mysqli' -> 'mysql' ( mysql55-server5.5.42 on up-to-date FreeBSD Release v. 10.1, x64)

5) php55-5.5.22 ( with almost all extensions )

Now, I can access over web ( no SSL) the link to "/lms/index.php/session/login" ; but I get this " Invalid login id or password"  after entering the correct credentials.

Hope you get the picture clealy now.

I would really appreciate for an remedy for this situation.

Cheers,

 

Sisantha

 

 

On 2015-05-23 18:41, Benjamin BALET wrote:

Hi,

Hi, thank you for the prompt answer.

 I changed in "database.php" in 'hostname' -> 'localhost' to '127.0.0.1', and again to

Benjamin BALET

unread,
May 23, 2015, 1:51:03 PM5/23/15
to jor...@googlegroups.com
did you change the content of the table users ?

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.

Sisantha K Godawela

unread,
May 23, 2015, 2:19:29 PM5/23/15
to jor...@googlegroups.com

No, I did not, only imported the /sql/lms.sql to the lms database.

Do I need to do any more confurations?

cheers,

sisantha

---

Benjamin BALET

unread,
May 23, 2015, 3:00:48 PM5/23/15
to jor...@googlegroups.com
Here is the tutorial of installation for Ubuntu (need some changes for BSD) : http://jorani.org/how-to-install-jorani.html

Could you run the script requirements.php, for example http://localhost/jorani/requirements.php
and export the result?

Sisantha K Godawela

unread,
May 23, 2015, 3:44:28 PM5/23/15
to jor...@googlegroups.com

Hi,

I went through this ubuntu tutorial some few days ago as well before I started the installation, thank.

herewith I'm sending the "requirements.php" output.

Cheers,

SisanthaS.: I think apache

 Allow overwrite (.htaccess files) Off   " is a problem?
---

uG0oGMmp

Benjamin BALET

unread,
May 24, 2015, 2:04:48 AM5/24/15
to jor...@googlegroups.com
1 - Do you see any visual difference between http://demo.jorani.org/index.php/session/login and your login page.
2 - If you know how to use the developer tools of your browser, open Javascript console and report any error.
3 - On the server side, do you see anything into the error files? I don't know where they are on your system.

Sisantha K Godawela

unread,
May 24, 2015, 12:39:38 PM5/24/15
to jor...@googlegroups.com

Hi, first of all, I must thank for answer today as I didn't expect it so early on Sunday:-)

I checked the below:

1. visual difference between http://demo.jorani.org/index.php/session/login and your login page, nand mine -> http://www.nirmana.eu/jorani/index.php/session/login, and sees a difference!

(@the moment it is not accesible over internet only on  lan as proxy in front of it )

mine is after the Alias name jorani/index.php and yours is: direct /index.php!  It could be that yours is direct an virtual server.

2. and 3. I'm attaching the javascript on firefox Inspector and a apache error log which says "authz_core:error with pid 288

(I think Ihave to enable those Autz_mod in httpd.conf, but such a thing never occurred earlier for othe applications, and I'll do it in one of my other freebsd server.)

Hope you got some clues for the answer.

Have nice weekend and cheers,

 

Sisantha

ApacvheErrorLogJordani
joraniAccesJScript

Bertrand Torchy

unread,
May 25, 2015, 6:14:56 AM5/25/15
to jor...@googlegroups.com
Bonjour,
J'avance... à pas de souris !
Pas encore de réponse de AMEN... J'ai donc installé Jorani chez Web4All : Plus de problème de passage de variables d'environnements, et tous les faux sont au vert pour requirements.php.

Web Server

Requirement Value / Description
 Server softwareApache
 Allow overwrite (.htaccess files)On (used for cool URLs).
 Apache module rewrite (mod_rewrite)On (used for cool URLs).
 openssl is LOADED PHP Extension openssl speeds up the log in page
 PHP 5.3+ Ignore this message if you are running an exotic PHP runtime
 ldap is LOADED PHP Extension ldap is optional and allows you to use LDAP for authentication.
 zip is LOADED PHP Extension zip allows you to use the export to Excel feature.
 xml is LOADED PHP Extension xml allows you to use the export to Excel feature.
 gd is LOADED PHP Extension gd2 allows you to use the export to Excel feature.
 mysqli is LOADED mysqli is the recommended database driver.

Database

Requirement Value / Description
 Configuration fileFound
 Database connectionOK
 Database nameFound
 Database queryOK

Par contre : Jorani ne fonctionne toujours pas : A chaque tentative d'accès à une page, j'ai un message "No input file specified"
Que peut-il se passer ?

Bertrand Torchy

unread,
May 25, 2015, 6:16:36 AM5/25/15
to jor...@googlegroups.com
J'ai oublié : Jorani est insallé sur le site suivant :
www.torchy.eu

Benjamin BALET

unread,
May 25, 2015, 7:08:43 AM5/25/15
to jor...@googlegroups.com
Vous avez encore choisi un hébergeur qui limite les possibilités:

Je suis désolé, mais je ne peux pas assurer le support des hébergeurs. Je ne sais pas pourquoi, mais ils s'acharnent à modifier le comportement normal des serveurs web. Merci de voir ça avec eux et/ou sur un forum de l'hébergeur.

Avec OVH par exemple vous n'auriez aucun souci de ce type.


2015-05-25 12:16 GMT+02:00 Bertrand Torchy <bertran...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "jorani" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jorani+un...@googlegroups.com.
To post to this group, send email to jor...@googlegroups.com.
Visit this group at http://groups.google.com/group/jorani.

Bertrand Torchy

unread,
May 25, 2015, 8:29:49 AM5/25/15
to jor...@googlegroups.com
Désolé... je suis loin d'être un spécialiste de htaccess et des hébergeurs.
J'avais cherché une solution à mon problème avec de mettre la question ici, mais je n'avais pas trouvé.
ça a l'air de fonctionner avec la modification décrite dans le lien que vous m'avez fourni.
Merci.

Benjamin BALET

unread,
May 26, 2015, 7:07:32 AM5/26/15
to jor...@googlegroups.com, sisa...@nirmana.eu
There is a problem into your Apache configuration
Or Google the error : "AH01630: client denied by server configuration"
I think you've made a mistake with Deny/Allow directives.
Reply all
Reply to author
Forward
0 new messages