CodeIgniter Forums
Problem with multidomain and symbolic link - no input file specified - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problem with multidomain and symbolic link - no input file specified (/showthread.php?tid=58469)



Problem with multidomain and symbolic link - no input file specified - El Forum - 06-14-2013

[eluser]Rwkzejedi[/eluser]
I have 1 dedicated server. The server has several IPs. Some IP are dedicated for one particular domain.

Ip1 = mysite.be
Ip2 = mysite.fr
Ip3 = mysite.com

There is only one project. Each domain goes on the same location

My website is on /var/www/vhosts/mysite.com/httpdocs

For all other domain, i create a symlink.

/var/www/vhosts/mysite.be/httpdocs -> /var/www/vhosts/mysite.com/httpdocs
/var/www/vhosts/mysite.fr/httpdocs -> /var/www/vhosts/mysite.com/httpdocs

...

When I go on mysite.com, all works. But when i go on mysite.be ... I have an output from codeIgniter :

No input file specified.

I search more information about this error and I see that : http://stackoverflow.com/a/14578219/905867

My .htaccess file is already well configured... I guess

Options +FollowSymLinks

RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|css|js|uploads|modules|public|timthumb\.php|\.htpasswd|google.*\.html|captcha)
RewriteRule ^(.*)$ /index.php?/$1 [L]

The fact that the domain linked with symlink display the error "No input file specified." proves that the symlink is OK and the acl on server are OK too (chown and chmod).

I think it's a little thing, but i don't know what. Anyone has a idea please ?


Problem with multidomain and symbolic link - no input file specified - El Forum - 06-14-2013

[eluser]Rwkzejedi[/eluser]
Problem soved... it wasn't a problem of codeigniter.

No input file specified is a CGI error.

So, I check and I see on my server that domains are configured on "Fast CGI" instead of PHP as module of apache.

Then, I change the "open base dir" option and... tadam it works.