Menu

#4666 Nginx webserver create virtual host

1.770
open
nobody
lemp (1)
5
2019-01-29
2015-10-23
thedave
No

I'm not sure where to post this but I guess I will start here. I'm using this Centos7 LEMP VM from here http://www.osboxes.org/centos/ I installed webmin and it detected nginx (or it seems). I updated yum and installed epel so I can install phpmyadmin for mariadb. After I installed it using yum I see that it had created a config for apache but not nginx. So I went to the nginx section and went to create a virtual host which is giving me this error.

Failed to open /etc/nginx/sites-available/myphpadmin for writing : No such file or directory

Call Stack Trace

File Line Function
../web-lib-funcs.pl 8703 WebminCore::error
../web-lib-funcs.pl 3187 WebminCore::open_tempfile
/usr/libexec/webmin/nginx/create_server.cgi 25 WebminCore::flush_file_lines
(eval 34) 6 (eval)
/usr/libexec/webmin/miniserv.pl 2386 (eval)
/usr/libexec/webmin/miniserv.pl 914 miniserv::handle_request

Related

Bugs: #4666

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-10-24

    Does the directory /etc/nginx/sites-available exist on your system?

     
    • thedave

      thedave - 2015-11-02

      It does not

      On Fri, Oct 23, 2015 at 5:28 PM, Jamie Cameron jcameron@users.sf.net
      wrote:

      Does the directory /etc/nginx/sites-available exist on your system?

      Status: open
      Group: 1.770
      Labels: lemp
      Created: Fri Oct 23, 2015 06:22 PM UTC by thedave
      Last Updated: Fri Oct 23, 2015 06:22 PM UTC
      Owner: nobody

      I'm not sure where to post this but I guess I will start here. I'm using
      this Centos7 LEMP VM from here http://www.osboxes.org/centos/ I installed
      webmin and it detected nginx (or it seems). I updated yum and installed
      epel so I can install phpmyadmin for mariadb. After I installed it using
      yum I see that it had created a config for apache but not nginx. So I went
      to the nginx section and went to create a virtual host which is giving me
      this error.

      Failed to open /etc/nginx/sites-available/myphpadmin for writing : No such
      file or directory

      Call Stack Trace

      File Line Function
      ../web-lib-funcs.pl 8703 WebminCore::error
      ../web-lib-funcs.pl 3187 WebminCore::open_tempfile
      /usr/libexec/webmin/nginx/create_server.cgi 25 WebminCore::flush_file_lines
      (eval 34) 6 (eval)
      /usr/libexec/webmin/miniserv.pl 2386 (eval)
      /usr/libexec/webmin/miniserv.pl 914 miniserv::handle_request


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/webadmin/bugs/4666/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #4666

  • thedave

    thedave - 2015-10-24

    No, It does not.

     
  • thedave

    thedave - 2015-10-24
    [osboxes@osboxes nginx]$ ls -ls                                                                                                                                                                                    
    total 68                                                                                                                                                                                                           
    0 drwxr-xr-x. 2 root root    6 Jul  3 05:44 conf.d
    0 drwxr-xr-x. 2 root root    6 Jul  3 05:44 default.d
    4 -rw-r--r--. 1 root root 1034 Jul  3 05:44 fastcgi.conf                                                                                                                                                           
    4 -rw-r--r--. 1 root root 1034 Jul  3 05:44 fastcgi.conf.default                                                                                                                                                   
    4 -rw-r--r--. 1 root root  964 Jul  3 05:44 fastcgi_params                                                                                                                                                         
    4 -rw-r--r--. 1 root root  964 Jul  3 05:44 fastcgi_params.default                                                                                                                                                 
    4 -rw-r--r--. 1 root root 2837 Jul  3 05:44 koi-utf                                                                                                                                                                
    4 -rw-r--r--. 1 root root 2223 Jul  3 05:44 koi-win                                                                                                                                                                
    4 -rw-r--r--. 1 root root 3957 Jul  3 05:44 mime.types                                                                                                                                                             
    4 -rw-r--r--. 1 root root 3957 Jul  3 05:44 mime.types.default                                                                                                                                                     
    4 -rw-r--r--. 1 root root 2165 Dec 25  2014 nginx.conf                                                                                                                                                             
    4 -rw-r--r--. 1 root root 2151 Dec 25  2014 nginx.conf~                                                                                                                                                            
    4 -rw-r--r--. 1 root root 2656 Jul  3 05:44 nginx.conf.default                                                                                                                                                     
    4 -rw-r--r--. 1 root root 1516 Jul  3 05:42 nginx.conf.rpmnew                                                                                                                                                      
    4 -rw-r--r--. 1 root root  596 Jul  3 05:44 scgi_params                                                                                                                                                            
    4 -rw-r--r--. 1 root root  596 Jul  3 05:44 scgi_params.default                                                                                                                                                    
    4 -rw-r--r--. 1 root root  623 Jul  3 05:44 uwsgi_params                                                                                                                                                           
    4 -rw-r--r--. 1 root root  623 Jul  3 05:44 uwsgi_params.default                                                                                                                                                   
    4 -rw-r--r--. 1 root root 3610 Jul  3 05:44 win-utf                                                                                                                                                                
    [osboxes@osboxes nginx]$
    
     
  • Jamie Cameron

    Jamie Cameron - 2019-01-29

    You may need to adjust the config in /etc/webmin/virtualmin-nginx/config to remove the add_file line.

     

Log in to post a comment.

MongoDB Logo MongoDB