• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Problem Plesk : File not found. & 5.5.9 by OS vendor Module Apache in red

Macha

Basic Pleskian
Hello

I can't post subjet here : http://forum.odin.com/forums/plesk-12-x-for-linux.735/

I have 3 problems with Plesk :

1.


If i don't have a file and i go to http://site.com/dl.php he say : File not found.

I have : PHP 5.6.16 with "Application PHP servi(e) par Apache"

I have try :

Code:
DefaultLanguage fr-FR

Options -Indexes

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^dl\.php$ / [R=301,L]
OR
RewriteRule ^dl\.php$ /clic.php [NC,R=301,L]

Doesn't work

2.

Here : https://****.fr:8443/admin/php-handler/list

I have 5.5.9 by OS vendor Module Apache in red, how to fix it ? :(

xXrZZfx.png


3.

In my logs, i have this error : AH01071: Got error 'Primary script unknown\n'

How to fix it ? please

Thanks you :)
 
Last edited:
Hello,

> I can't post subjet here : http://forum.odin.com/forums/plesk-12-x-for-linux.735/
Plesk has been splitted from Odin. Based on it, we have changed our forum link to http://talk.plesk.com. Please use this thread for any questions you have.

As for your questions:
1. Please clarify, where did you try to perform the following:

>I have try :

>Code:
>DefaultLanguage fr-FR

>Options -Indexes

>Options +FollowSymlinks
>RewriteEngine on

>RewriteRule ^dl\.php$ / [R=301,L]
>OR
>RewriteRule ^dl\.php$ /clic.php [NC,R=301,L]

Was it done under 'Plesk > Subscriptions > example.com > Apache&nginx settings > Apache Additional directives'? OR in '/var/www/vhosts/example.com/httpdocs/.htaccess' file?

2. >I have 5.5.9 by OS vendor Module Apache in red, how to fix it ?
Please set cursor on the red exclamation point. In case you see the message:
"The handler cannot be enabled because the corresponding Apache module is turned off."

Please follow the instruction below in order to fix the issue:
1) Go to the Tools&Settings > Apache Web Server > MPM mode = select Prefork, Press 'Apply'
2) Enable 'php5' module, Press 'Apply' again.
3) Tools&Settings > PHP Settings > Enable 'Apache module handler'.


3. >In my logs, i have this error : AH01071: Got error 'Primary script unknown\n'

Issue may be related to the orphaned files after upgrade.
1) Please clarify where exactly you get this error? In the '/var/log/sw-cp-server/error_log' file?
In the '/var/log/plesk/panel.log' file?
2) If it is appears in some domain's 'error_log' file, then use 'tail' utility to find out what page or file exactly causes this error. For example,
# tail -fn0 /var/www/vhosts/system/example.com/logs/error_log
 
1. All .htaccess is here :/ in the first post

In the parameters of 'Plesk > Subscriptions > example.com > Apache&nginx settings > Apache Additional directives'?

ALL IS EMPTY :(


2. Thanks, Work :)


3. In Website > My Website (site.com) > Logs :p Its the log of my website

Example :

**@sd-83285:/var/www/vhosts/system/**.me$ sudo tail -fn0 /var/www/vhosts/system/**.me/logs/error_log
[Mon Dec 21 23:33:20.631139 2015] [proxy_fcgi:error] [pid 12111] [client **.**.**.**:34110] AH01071: Got error 'Primary script unknown\n'

Thanks for you're help
 
Hello,
> 1. All .htaccess is here :/ in the first post
>In the parameters of 'Plesk > Subscriptions > example.com > Apache&nginx settings > Apache Additional directives'?
>ALL IS EMPTY :(

You can check your rewrite rules on the following tester:
http://htaccess.mwl.be/

Please also note, set and configure rewrite rules is a administrative task. I would like to recommend you use rewrite rules generator to ensure if they are correct:
http://www.webconfs.com/htaccess-redirect-generator.php

Additionally, you may check information from the apache documentations:

https://httpd.apache.org/docs/2.4/rewrite/remapping.html
https://httpd.apache.org/docs/2.2/rewrite/remapping.html

>3. In Website > My Website (site.com) > Logs :p Its the log of my website
>
>Example :
>**@sd-83285:/var/www/vhosts/system/**.me$ sudo tail -fn0 /var/www/vhosts/system/**.me/logs/error_log
>[Mon Dec 21 23:33:20.631139 2015] [proxy_fcgi:error] [pid 12111] [client **.**.**.**:34110] AH01071: Got error 'Primary script unknown\n'

This issue was caused by the first issue with rewrite rules. You need to set correct rewrite rules to fix it as well.
 
My .htacces don't have an error :(

I have try with you're site, but he say : File not found. grr :(

I have Try this :

Code:
Options +FollowSymlinks
RewriteEngine on
rewriterule ^clic_dl.php(.*)$ http://ww.site.com/clic.php$1 [r=301,nc]

RewriteCond %{QUERY_STRING} (?:^|&)id=(.+)(?:&|$) [NC]
RewriteRule ^clic_dl\.php$ /clic.php?id=%1 [NC,R=301,L]

RewriteRule ^clic_dl\.php$ /clic.php [R=301,L]
RewriteRule ^/clic_dl\.php$ /clic.php [R=301,L]
 
I would like to draw your attention that creating/modifying custom rewrite rules is excluded from Plesk technical support obligations. Please refer to apache mod_rewrite manuals for details as well as you always can contact public community where you could get answers on your questions.
 
Yes but if anynone can help me i love it ! :)

PS : if the file clic_dl.php exist, redirect ok, but if the file doesn't here, he don't redirect :( i don't understand
 
Hello,
2. >I have 5.5.9 by OS vendor Module Apache in red, how to fix it ?
Please set cursor on the red exclamation point. In case you see the message:
"The handler cannot be enabled because the corresponding Apache module is turned off."

Please follow the instruction below in order to fix the issue:
1) Go to the Tools&Settings > Apache Web Server > MPM mode = select Prefork, Press 'Apply'
2) Enable 'php5' module, Press 'Apply' again.
3) Tools&Settings > PHP Settings > Enable 'Apache module handler'.

I have a fresh install of Plesk Onyx on CentOS 7 and I have the same error and understand your solution. However, why not stating this solution there? It's confusing to have a fresh installation and run in errors. Same for creating new domains, the subscription state it's unsynced. Why should that happen? Why is in a fresh install the plan of new domains not synced to e.g. Unlimited or set without errors to Custom? It's a bad user experience handling.

So I would expect here or latest in Apache Web Server settings: The handler hasn't been enabled, because Apache is in Worker/Event (default was Event) mode, please change mode to Prefork and enable PHP in Apache Web Server settings to enable the handler. Maybe with a link to what the modes are and when to choose which with advantages and disadvantages.
 
Back
Top