Ubuntu installation


(Vaclav) #1

Hi,
I was installed playsms on my Ubuntu with this guide:

playsms is work and i have pids, but http and nginx didnt work.

I didnt configure this:

  • Prepare virtual host directory
  • Setup Nginx to enable my.textng.com site
  • Copy this to my.textng.com.conf and save it
  • Enable my.textng.com

But i was try config default file with this guide:

Edit Nginx default website config file:

1 vi /etc/nginx/sites-enabled/default

Look for this part and insert index.php :

6 root /var/www/html ;

# Add index.php to the list if you are using PHP

index index.html index.htm index.php index.nginx-debian.html;

server_name _;

Look for this part and uncomment 2 lines to look like below snippet:

8 location ~ \.php$ {

include snippets /fastcgi-php .conf;

#

# # With php7.0-cgi alone:

# fastcgi_pass 127.0.0.1:9000;

# # With php7.0-fpm:

fastcgi_pass unix: /run/php/php7.2-fpm.sock;

}

I was change php.ini
Edit php.ini and look for ;cgi.fix_pathinfo=1 :

1 vi /etc/php/7.2 /fpm/php .ini

Remove the comment and change the value to 0 , it must be set to this:

1 cgi.fix_pathinfo=0`

reload php 7.2 works, but nginx not
Job for nginx.service failed because the control process exited with error code


(Anton Raharja) #2

my.textng.com is just an example, replace it with your own domain for playSMS.

Use manual for 1.4.2 if you use 1.4.2 dont mix it up.

Anton


(Vaclav) #3

Oki, what i must change, when i could start server as localhost/playsms? Thank you


(Vaclav) #4

I was install 1.4.2 with your manual. I was change my.textng.com to playsms everywhere. In browser i put localhost and show me nginx page. What url is to playsms? Thx