By yilmazfaruk
Hi,
I tried 4 different OS but php didn’t work in any.
Now I’m on CentOS 6.5 x64 with nginx mysql & php If i go to “info.php” i got simply “nginx error!”
What shoould I do?
Thanks.
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!
That’s my default.conf ; <br> <br> <br>server { <br> listen 80; <br> server_name mydomain.com www.mydomain.com; <br> <br> #charset koi8-r; <br> <br> #access_log logs/host.access.log main; <br> <br> location / { <br> root /usr/share/nginx/html; <br> index index.html index.htm index.php; <br> } <br> <br> error_page 404 /404.html; <br> location = /404.html { <br> root /usr/share/nginx/html; <br> } <br> <br> # redirect server error pages to the static page /50x.html <br> # <br> error_page 500 502 503 504 /50x.html; <br> location = /50x.html { <br> root /usr/share/nginx/html; <br> } <br> <br> # proxy the PHP scripts to Apache listening on 127.0.0.1:80 <br> # <br> #location ~ .php$ { <br> # proxy_pass http://127.0.0.1; <br> #} <br> <br> # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 <br> # <br> location ~ .php$ { <br> root /usr/share/nginx/html; <br> fastcgi_pass 127.0.0.1:9000; <br> fastcgi_index index.php; <br> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; <br> include fastcgi_params; <br> } <br>
On Ubuntu, you have to create the <code>info.php</code> file, manually. <i>See</i> <a href=“https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04”>How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04</a>.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.