Got error 'Primary script unknown\n',

I'm talking about non working /roundcube /phpmyadmin aliases in $userdomain

On both servers I have that same httpd-hostname:

Code:
...
        <IfModule mod_fcgid.c>
                AddHandler fcgid-script .php
                FcgidWrapper /usr/local/safe-bin/fcgid54.sh .php
                <FilesMatch "\.php$">
                        Options +ExecCGI
                </FilesMatch>
        </IfModule>
        <IfModule mod_fcgid.c>
                AddHandler fcgid-script .php53
                FcgidWrapper /usr/local/safe-bin/fcgid53.sh .php53
         <FilesMatch "\.php53$">
                        Options +ExecCGI
                </FilesMatch>
        </IfModule>
...
 
Make sure you run the latest version of CB 2.0 on both servers, do "./build update" and then "./build apache" (suexec might be unpatched for /usr/local/safe-bin), then run "./build rewrite_confs" and please let us know the results. Thank you.
 
Nothing change. Still redirect (alias /roundcube) not working. "No input file specified."

./build update
./build apache
./build rewrite_confs

BUILDSCRIPT_VER=2.0.0-RC4 from 22.05.

OK I've found that on files6. is older version then on files. Changed to files.

build - from 29.05.

./build script_update - ok, latest one.
./build update
./build apache
./build rewrite_confs

Nothing change ;( "No input file specified." Only some new error (but related to something else):

Code:
[root@s55 custombuild]# ./build rewrite_confs
Skipping tar.gz tarball, needs more arguments in doclean_old_tarballs().
 
Last edited:
Nothing change. Still redirect (alias /roundcube) not working. "No input file specified."

./build update
./build apache
./build rewrite_confs

BUILDSCRIPT_VER=2.0.0-RC4 from 22.05.

OK I've found that on files6. is older version then on files. Changed to files.

build - from 29.05.

./build script_update - ok, latest one.
./build update
./build apache
./build rewrite_confs

Nothing change ;( "No input file specified." Only some new error (but related to something else):

Code:
[root@s55 custombuild]# ./build rewrite_confs
Skipping tar.gz tarball, needs more arguments in doclean_old_tarballs().

That is PHP-FPM, not php-fastcgi, isn't it? Then you'd need custom templates for it if you cannot use pre-release binaries.
 
No, its fastcgi.

Code:
./build options
PHP (default): 5.4 as fastcgi
PHP (additional): 5.3 as fastcgi

Server Version: Apache/2.4.4 (Unix) OpenSSL/1.0.0-fips mod_fcgid/2.3.7
Server Built: May 30 2013 01:41:25
 
No, its fastcgi.

Code:
./build options
PHP (default): 5.4 as fastcgi
PHP (additional): 5.3 as fastcgi

Server Version: Apache/2.4.4 (Unix) OpenSSL/1.0.0-fips mod_fcgid/2.3.7
Server Built: May 30 2013 01:41:25

It would be nice if you could PM me the details of this server. I would check it tomorrow and install DA pre-release binaries to it too (at no cost, of course).
 
Just to report, we were facing the "File not found" bug with php-fpm (for aliases like /roundcube and /pma) then we've updated to the latest pre-release of DA and the error went away but now this error appears for every url using parameters (with "?" sign).

Apache 2.4.4 / Latest CB 2 / Latest DA (pre-release) / php-fpm 5.4 / CentOS 6 x64
 
I've updated DA yesterday and tried to switchback to PHP-FPM (PHP5.0) but still ended up with "primary script unknown" in apache logs and "file not found" in the browser. Did ./build rewrite_conf and restart of fpm and apache but still no result.
[Tue Jun 25 16:51:15.391771 2013] [proxy_fcgi:error] [pid 13181:tid 140134808020736] [client xxx.xxx.xxx.xxx:32834] AH01071: Got error 'Primary script unknown\n'
 
Are you using cagefs ?
I've updated DA yesterday and tried to switchback to PHP-FPM (PHP5.0) but still ended up with "primary script unknown" in apache logs and "file not found" in the browser. Did ./build rewrite_conf and restart of fpm and apache but still no result.
[Tue Jun 25 16:51:15.391771 2013] [proxy_fcgi:error] [pid 13181:tid 140134808020736] [client xxx.xxx.xxx.xxx:32834] AH01071: Got error 'Primary script unknown\n'
 
no i do not use Cagefs.
Strangest thing was it only happened on some scripts making it very odd. And also it broke multiple links to normal image files making it even more strange.
 
Please see the templates posted above. You seem to still use the old templates.
 
@smtalk Could you please say when those templates get into the release candidates so we can upgrade more easily?
 
I'm having same issues with CB2.0.
Default is php 5.4 second one is 5.6
php-fpm
I'm receiving a lot of these errors in error log for each domain:
[Fri Feb 27 08:37:22.719726 2015] [proxy_fcgi:error] [pid 13076:tid 140031203895040] [client 66.249.xxx.xxx:58331] AH01071: Got error 'Primary script unknown\n'

It's a fresh install.
Any tips?
 
same problem, I have CB 2, last update, last DA.

xxxx.com.error.log:[Wed Aug 19 03:30:20.714542 2015] [proxy_fcgi:error] [pid 1450:tid 140340298155776] [client xxx.xxx.xxx.xxx:5029] AH01071: Got error 'Primary script unknown\n'

# ./build options
Apache: 2.4.16
mod_ruid2: no
ModSecurity: no
htscanner: no
Dovecot: 2.2.18
Dovecot configuration: yes
AWstats: 7.4
Exim: 4.86
exim.conf update: no
BlockCracking: no
Easy Spam Fighter no
SpamAssassin: no
ClamAV: no
MySQL: no
MySQL backup: yes
MySQL backup directory: /usr/local/directadmin/custombuild/mysql_backups
PHP (default): 5.3 as php-fpm
PHP (additional): 5.4 as php-fpm
phpMyAdmin: 4.4.13.1-all-languages
ProFTPD: no
Pure-FTPd: 1.0.42
RoundCube webmail: 1.1.2
Replace "php.ini" with './build all' and './build php_ini': no
Auto updates/notifications: no
Run "clean" every time: yes
Run "clean_old_webapps" every time: yes
Run "clean_old_tarballs" every time: yes
Show texts in bold: yes
SquirrelMail: 1.4.22
Zend Guard Loader: yes
ionCube loader: 5.0.14
Suhosin: 0.9.37.1
[root@zeus custombuild]#


I cant find the solution. some one have it?

thanks
mauro


I'm having same issues with CB2.0.
Default is php 5.4 second one is 5.6
php-fpm
I'm receiving a lot of these errors in error log for each domain:
[Fri Feb 27 08:37:22.719726 2015] [proxy_fcgi:error] [pid 13076:tid 140031203895040] [client 66.249.xxx.xxx:58331] AH01071: Got error 'Primary script unknown\n'

It's a fresh install.
Any tips?
 
Back
Top