Got error 'Primary script unknown\n',

Marwen

Verified User
Joined
Nov 7, 2003
Messages
150
Location
germany
Hi.

I update to Custombuild Version: 2.0.0-RC2 and Directadmin pre binaries from:
wget -O new.tar.gz <private_link>

After rebuild
Apache: 2.4.4
Php: 5.3.22 (FPM)
and rewrite confs
i get a lot of error message in the apache error log
AH01071: Got error 'Primary script unknown\n'

and the website shows "File not found."

any ideas ?

Mario
 
checked but same error.

After your steps now roundcube and phpmyadmin got the same error "File not found." it works before.
 
For roundcube and phpmyadmin changes need to be done to /etc/httpd/conf/httpd-hostname.conf. If you'd like me, I may check what's wrong on your server (that's a free service). If it is a production box and you would not like to provide login details, you may switch to fastcgi/suphp/mod_ruid2 for now.
 
i have try it on another system (same build, same OS) with
Apache: 2.4.3
Php: 5.3.21 (FPM)

There are no problems.
 
Hi,
my webapps (roundcube, phpmyadmin) show "File not found", too after latest directadmin (1.43) update and custombuild 2.0.
I run php 5.3 and 5.4 through php-fpm. on a centos 5.9 64 machine.
Are there any updates to this? What changes should be done in /etc/httpd/conf/httpd-hostname.conf? (BTW it's /etc/httpd/conf/extra/httpd-hostname.conf on my machine)

Apache is 2.4.4
PHP's are 5.3.23 and 5.4.13

Thanks :)
 
Last edited:
OMFG. Lots of this errors. CB 2.0 DA 1.43, lastest Apache + php-fpm, config (build) from yesterday.

Code:
[Tue Mar 26 15:22:41.566788 2013] [proxy_fcgi:error] [pid 408195:tid 140099050260224] [client 44.78.478.57:56699] AH01071: Got error 'Primary script unknown\n'
[Tue Mar 26 15:22:41.649833 2013] [proxy_fcgi:error] [pid 408195:tid 140099039770368] [client 44.78.478.57:56699] AH01071: Got error 'Primary script unknown\n'
[Tue Mar 26 15:22:43.563811 2013] [proxy_fcgi:error] [pid 408195:tid 140098966341376] [client 44.78.478.57:56699] AH01071: Got error 'Primary script unknown\n'
[Tue Mar 26 15:22:43.627219 2013] [proxy_fcgi:error] [pid 408195:tid 140099029280512] [client 44.78.478.57:56699] AH01071: Got error 'Primary script unknown\n'

and
Code:
[Tue Mar 26 15:21:14.371666 2013] [include:warn] [pid 408194:tid 140098861442816] [client 81.421.194.241:56236] AH01374: mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed:
 
Could you say something more about this bugs? Only those two are knowns right now? First about PassMatch - OK, bug, but second about sockets - isn't rather feature request? (I know that unix sockets are better but for now works with TCP and besides performance isn't good?).

OK, but what with "Got error 'Primary script unknown\n'"? It's something got to do with this two or this is the third bug?

Thanks!

ps. I'm worried about this, I don't see any moves on Apache's bugzilla. It could be month, two, three or more ;(
 
Last edited:
First about PassMatch - OK, bug, but second about sockets - isn't rather feature request? (I know that unix sockets are better but for now works with TCP and besides performance isn't good?).

OK, but what with "Got error 'Primary script unknown\n'"? It's something got to do with this two or this is the third bug?
ps. I'm worried about this, I don't see any moves on Apache's bugzilla. It could be month, two, three or more ;(

The second one about sockets - it has a problem described in #5, it cannot be used in Directory block using RewriteRule. If any of these bugs get fixed, we could solve all the problems by moving ProxyPassMatch/RewriteRule to Directory block. About the TCP usage - that's not very suitable for shared hosting. For now PHP-FPM is recommended to be used with nginx only. With Apache you still have 3 other choises (mod_php (with or without mod_ruid2), FastCGI or suPHP).
 
Hi guys,
please do all comment on those bugs so they get a bit more attention and maybe priority to get fixed.
Thanks :)
 
As it seems to be the issue still and not resolved yet. Or anybody has a solution?

As a bypass as how I see it, we could redirect all requests for /roundcube/, /phpmyadmin/, etc to a special technical domain (let's say webmail.example.com/), which would be powered by suPHP for example and that would temporary solve the issue.
 
Latest pre-release of DA (Compile time: May 13 2013 or later) and latest CustomBuild 2.0-RC4 (latest version is always on files1.directadmin.com) have the fixes/patches included.
 
is there no way to fix it for those of us that can't access pre-release of DA (license from DC)?
 
anybody? What we need change to set up working /roundcube /phpmyadmin aliases?
It's quite long waiting for new DA release.

I've a possibility on one server to use pre-binaries - so I've updated, aliases working - and checked httpd-alias.conf and httpd-hostname.conf but they are that same like on second server (with DA 1.43) where aliases don't work.
 
Its already been resolved.

I assume you are talking about the fastcgi bug?

Make sure httpd-hostname.conf has the line like this and edit to fcgid54.php if you use php 5.4:

Code:
FcgidWrapper /usr/local/safe-bin/fcgid53.sh .php
 
Back
Top