Problem installaion PHP with Nginx in opensuse

Discussion in 'Server Operation' started by shenron, Apr 13, 2012.

  1. shenron

    shenron New Member

    Hi,

    I've some difficulty with PHP and Nginx installation. I followed this tutorial.
    I've probleme with systemctl configuration. I know what I must put for: /etc/systemd/system/default.target.wants/nginx.service

    Code:
    [Unit]
    Description=Nginx HTTP daemon
    Requires=network.target syslog.target
    After=syslog.target networking.target
    
    [Service]
    Type=forking
    PIDFile=/var/run/nginx.pid
    ExecStartPre=/bin/echo 'Starting httpd (Nginx)'
    ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
    StandardOutput=syslog
    StandardError=syslog
    ExecStop=/usr/sbin/nginx -s quit
    
    [Install]
    #WantedBy=multi-user.target
    WantedBy=graphical.target
    
    But I don't know what I must put for php-fpm.service and mysql.service.

    Thank you for youre help.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You don't hve to touch these scripts.

    systemctl start php-fpm.service and systemctl start nginx.service work out of the box.
     
  3. shenron

    shenron New Member

    It's correct i've a redireciton of the service:
    Code:
    redirecting to systemctl
    Thank you
     

Share This Page