Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have problem with database.It seem like , the site is not load at any controller that have database function
How to solve this problem http://192.241.242.90/fb/.
I have already registerDir for directory that have Facebook class.
It working fine in my localhost.
Can somebody confirm if my rewrite for nginx (LEMP) is correct to replace the .htaccess files when using virtual hosts?
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule (.*) public/$1 [L] </IfModule>
Becomes in nginx (LEMP): location /var/www/virthost1/public_html/application_name { rewrite ^/$ /public/ break; rewrite ^(.*)$ /public/$1 break; }
Next the following .htaccess:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L] </IfModule>
Becomes:
location /var/www/virthost1/public_html/application_name/public { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?_url=/$1 break; } }
Thanks!
@screwgravityinfo: The first one could simply be: <pre>location /application_name { rewrite ^(.)$ /public$1 break; } </pre>And the second one should be: <pre>location /public { try_files $uri $uri/; rewrite ^(.)$ /index.php?_url=$1 break; } } </pre> Try not using <code>if</code> if possible (<a href=“http://wiki.nginx.org/IfIsEvil”>wiki.nginx.org/IfIsEvil</a>).
My .htaccess file in project/ is <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule (.*) public/$1 [L] </IfModule> when i point the browser to project folder i can see the folder structure , when i point to project/public then i can see “Hello world.” I am using ubuntu elementary os. Am i Following correctly or is there any errror in my installation.
Please help.
@Nitheesh: Is the mod_rewrite module enabled? What happens if you remove the two <IfModule lines?
@Kamal Nasser, Yes, the command “a2enmod rewrite” shows that “Module rewrite already enabled” And same result after removing the <IfModule mod_rewrite.c> sowing folder structure when point to localhost/project/.
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory compilation terminated. make: *** [phalcon.lo] Error 1
Can oyu help me?
It looks like you are missing the header files for libpcre which is needed to build phalcon. In order to continue you first need to install:
apt-get install libpcre3-dev