Ubuntu 14.04 and CGI wrapper mode 404 not found error

5 posts / 0 new
Last post
#1 Sat, 03/07/2015 - 22:33
agarwalls

Ubuntu 14.04 and CGI wrapper mode 404 not found error

Hello,

Presently I used virtualmin free on CentOS 7 VPS and have problem with CURL with Cloudflare Enabled website. So I decided to move Ubuntu 14.04 (as I will get newer version of PHP too).

Virtualmin is working fine with mod_php and FCGId (run as virtual server owner). but with 1024mb RAM I don't want to use FCGId.

If I switched to "CGI wrapper (run as virtual server owner)" mode and I get 404 not found error. only with index.php (index.html works fine).

Not Found

The requested URL http://www.mysite.com/cgi-bin/php5.cgi/index.php was not found on this server.

Note- I have tested it on multiple demo VPS and all have same result.

Sun, 03/08/2015 - 00:03
andreychek

Howdy,

Hmm, is that a new domain, or was that domain imported from a backup on another system? I'm wondering if maybe there's something awry with the php.ini file associated with that Virtual Server. Does a newly created domain work properly?

-Eric

Sun, 03/08/2015 - 00:28
agarwalls

Its all with new/fresh installation and new domain. :-(

Thu, 05/12/2016 - 15:09
gnilebein

Do you have any updates on that issue? I have the same problem :-(

Thu, 05/12/2016 - 15:52
gnilebein

Ah, in my case i found a solution. CGI was not enabled...

Just execute

a2enmod cgi
service apache2 restart
Topic locked