toggle menu

Site move for 1 server to new developed server LEMP
Getting error 403 Forbidden nginx/1.14.0 (Ubuntu) apt

  • 0 like
  • 1 comment

Dhananjay Kumar19 May at 09:05

We have reviewed and seems file directory permission is changed and seems below Error:
"/var/www/domain.com/xyz.php" failed (13: Permission denied), client: xx.xxx.xx.xx

Finally used below command :
sudo chown -R www-data:www-data /var/www/*
sudo chmod -R 0755 /var/www/*
and restart nginx : sudo service nginx restart
and all working fine

502 Bad Gateway nginx error

Dhananjay Kumar |04 Oct at 08:10

After creating new server LEMP on digital ocean getting below error, please any one heplon this.

502 Bad Gateway

 


nginx

  • 1 like
  • 2 comments

Dhananjay Kumar04 Oct at 10:10

I got the solution:
if you have on nginx server then go with error log here:
/var/log/nginx/error.log

in the log file, you seem proper issues.
Like i have issues with "fastcgi://unix:/run/php/php7.0-fpm.sock:"
just chage with new version php7.2 and working fine.

immwit work12 Dec at 01:12

don't know

PHP mail() function not working on digitalocean

Sanjay Kumar |29 Mar at 04:03

I have installed Postfix as per suggestion (on DigitalOcean) for PHP mail(), But its not working.
i have just create droplet and setup LEMP and all postfix steps executed without any issues, but not working mail.
$to      = 'youremail@email.com';
$subject = 'mail subject';
$message = 'Mail Body';
$headers = 'From: info@email.com' . "\r\n" .
   'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)){
    echo "done";
}else{
    echo "not sent";
}
?>

Run with ip address like (dummy ip) : http://122.21.23.21/emailfile.php
executed url and seems mail sent. But not getting mail.

Pleae any one have idea about this please suggest.

  • 2 likes
  • 4 comments

Dhanavi07 Apr at 08:04

Maybe, mail is going to spam.

vibhu09 Apr at 08:04

how to fix

vibhu09 Apr at 08:04

how to fix

vibhu09 Apr at 08:04

how to fix

How to set cronjob on nginx server degitalocean?

Dhananjay Kumar |10 Apr at 05:04

I have setup cronjob on nginx server using below command :
$ crontab -e

and adding below script :
00 10 * * * /usr/bin/php /var/www/project_domain.com/index.php xyz_controller cronmethod

Above for the codeigniter function to run.

Not working any suggest.

  • 3 likes
  • 0 comment

Gip Compression on Nginx Server

Sanjay Kumar |29 Mar at 06:03

I have put below value indie the /etc/nginx/nginx.conf inside http like below and its work fine for me

http {

 

    ##
    # Gzip Settings
    ##

        gzip on;
        gzip_vary on;
        gzip_disable "MSIE [1-6]\.";
        gzip_static on;
        gzip_min_length 1400;
        gzip_buffers 32 8k;
        gzip_http_version 1.0;
        gzip_comp_level 5;
        gzip_proxied any;
        gzip_types text/plain text/css text/xml application/javascript application/x-javascript application/xml application/xml+rss application/emacscript application/json image/svg+xml;

 

}

  • 2 likes
  • 3 comments

Vibhu Vikram Singh10 Apr at 07:04

how to solven

Vibhu Vikram Singh10 Apr at 07:04

fix

Vibhu Vikram Singh10 Apr at 08:04

fix

I have uploaded my android application webservice on digitalocean Nginx (LEMP) server and getting issues with some mobile device (mostly on Samsung Mobile), Request URL (like https://adc.com/sever_file.php) is JSON response is comes blank with below ERROR.

E/SMD: DCD OFF

E/Volley: [4828] BasicNetwork.performRequest: Unexpected response code 400

Any one have idea about the issues, please suggest.

  • 0 like
  • 0 comment

SSL installed successfully but getting issues

Dhananjay Kumar |30 Mar at 04:03

I have installed SSL on Nginx server on DigitalOcean and seems in a browser secure connection activated.

But when i check my SSL with SSL checker getting below issues:

"The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate."

Anyone can suggest about this.

  • 1 like
  • 0 comment

Is nginx is better than apache for PHP?

Dhananjay Kumar |28 Mar at 08:03

Please, help me with the proper solution which one I will use on digitalocean server.

Nginx or Apache?

 

  • 0 like
  • 0 comment

504 Gateway Time-out nginx/1.10.3 (Ubuntu)

Dhananjay Kumar |24 Mar at 07:03

Getting issues with import mysql large data file, any one suggest me the solution

  • 0 like
  • 0 comment

413 Request Entity Too Large on nginx server

Dhananjay Kumar |24 Mar at 07:03

Please any one help with this issues, when i am importing xyz.sql from phpmyadmin( file size 180MB), getting 413 Request Entity Too Large  issues on nginx server.

We have updated parameter in php.ini below:
upload_max_filesize, memory_limit and post_max_size with max size of changes.

If any one have solution confirm asap.

  • 2 likes
  • 0 comment