instalacion de servidor nginx

572 views
Skip to first unread message

Brandon Bran

unread,
Oct 23, 2019, 2:18:31 PM10/23/19
to AtoM Users
Hola, buena tarde:

tengo un problema con la configuracion del servidor nginx en esta línea de comando estoy en la configuracion e instalacion de AtoM y me llego a ver con este problema.


sudo touch /etc/nginx/sites-available/atom
al finalizar de ejecutar este comando me manda un error el cual me dice no se puede efectuar "Touch" No existe el archivo en el directorio.

sudo rm /etc/nginx/sites-enabled/default
con el ultimo comando me da un error el cual me dice no se puede borrar, No existe el archivo en el directorio. 
por si alguien pudiese apoyarme,
Gracias.


Dan Gillean

unread,
Oct 23, 2019, 2:57:52 PM10/23/19
to ICA-AtoM Users
Hi Brandon, 

Some initial questions for you:
  • What operating system and version are you installing on - are you using Ubuntu 16.04 or 18.04 as our documentation recommends for AtoM 2.5.x?
  • What version of AtoM are you installing?
  • Did you run the command to install Nginx first?
    • sudo apt install nginx
  • Are you installing everything on the same server, or are you attempting to install Nginx in a different location?
The error you mentioned for the touch command seems strange to me, because the touch command is used to CREATE files. A couple of ideas to try:
  • First, as I mentioned above, make sure you ran the command to install Nginx
  • What do you get if you run nginx -v ?
  • Does it make any difference if you run sudo apt-get update first?
  • Do you get any different result if you try adding a file extension? try: 
    • sudo touch /etc/nginx/sites-available/atom.conf 
  • Does it make any difference if you navigate to the directory first, THEN create the file, like so?
    • cd /etc/nginx/sites-available
    • sudo touch atom
    • Or else: sudo touch atom.conf
If those suggestions don't work, can you try doing it with some of the other options available in the Unix command-line to create files? See for example: 
So for example, if you have the nano text editor installed (sudo apt-get install nano), you could try:
  • nano /etc/nginx/sites-available/atom.conf
And then paste the configuration block in. 


Regarding the other error, this too suggests to me that Nginx might not be properly installed. Can you use cd to navigate to the directory and see if the file is there? Does the nginx directory exist? For example: 
  • cd /etc
  • cd nginx
  • cd sites-available
  • ls
 Please let us know how it goes and what you find! If my suggestions don't work, please be sure to answer the questions above in your reply, so we can investigate further. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/8d389800-1c02-4c77-8b7b-08876daecc9a%40googlegroups.com.

Brandon Bran

unread,
Oct 23, 2019, 4:20:58 PM10/23/19
to ica-ato...@googlegroups.com
Buenas tardes agreadezco la pronta respuesta, ahora bien le comentare como va mi configuracion:

estoy utilizando Linux Server 16.04.6 LTS
estoy tratando de instalar AtoM 2.5 

y si prescisamente utilizo para instalar el nginx  sudo apt nginx instalar

revisando el resto del mensaje si estoy intentando instalar en el mismo servidor el AtoM y el nginx asi como los demas componentes PHP, etc.


En cuanto al otro error, esto también me sugiere que Nginx no se haya instalado correctamente. ¿Puede usar cd para desplazarse al directorio y ver si el archivo está allí? ¿Existe el directorio de nginx? Por ejemplo:
  • cd / etc
  • cd nginx
  • -sitios disponibles cd
  • ls
aca justamente ejecutando el CD/sites-availables y luego el comando "ls"
me lista lo siguiente
atom    default.

entiendo que esto quiere decir que el servidor nginx esta bien configurado hasta el momento?

y lo que continua es ya crear el bloque para la configuracion propia del servidor?

y otra duda si puede apoyarme en como crear el bloque para la configuracion del servidor que comandos utilizar?

gracias.

Dan Gillean

unread,
Oct 24, 2019, 6:15:02 PM10/24/19
to ICA-AtoM Users
Hola Brandon, 

Thank you for supplying the requested information. It seems the atom configuration file was created - so I'm not sure why you are seeing those permission denied messages. 

I prefer using nano as my command-line text editor over the default (vim) which I find confusing, but I believe nano is also installed by default, so let's use that. If it is not installed for some reason, my last message included installation instructions, but here they are again: 
  • sudo apt-get update
  • sudo apt-get install nano
Now, it *should* work for you to copy the configuration block from our documentation, and then in the command-line enter: 
  • sudo nano /etc/nginx/sites-available/atom
Then paste in the contents. Remember if you are used to Windows or Mac, cutting and pasting may not be the same - see: 
You can press CTRL+X to exit nano - it will ask if you want to save (type "Y"), and then press enter to confirm the same filename will be used. Your changes should now be saved, and you can proceed. If you skipped it earlier, don't forget this command: 
  • sudo ln -sf /etc/nginx/sites-available/atom /etc/nginx/sites-enabled/atom
Then you can enable and reload Nginx: 
  • sudo systemctl enable nginx
  • sudo systemctl reload nginx

If you run into problems when trying to run the first nano command, try navigating to the file first to see if it helps: 
    • cd /etc
    • cd nginx
    • cd sites-available
    • sudo nano atom
    Once you have the server block in place, don't forget to follow all the rest of the installation instructions! 

    Let us know how it goes, and good luck! 

    Dan Gillean, MAS, MLIS
    AtoM Program Manager
    Artefactual Systems, Inc.
    604-527-2056
    @accesstomemory

    Brandon Bran

    unread,
    Oct 28, 2019, 6:07:06 PM10/28/19
    to ica-ato...@googlegroups.com
    Buena tarde Dan Guillean,

    te comento que logre llegar hasta este paso 

    sudo nano / etc / nginx / sites-available / átomo 

    en este directorio utilizando la herramienta de nano guardo el bloque y realice los siguientes pasos:

    • sudo ln -sf / etc / nginx / sites-available / átomo / etc / nginx / sites-enabled / átomo
    A continuación, puede activar y recargar Nginx:
    • sudo systemctl permiten nginx
    • sudo systemctl recarga nginx

    cuando intento hacer el ultimo comando "sudo systemctl recarga nginx" 

    me marca un error el cual me dice que no se a podido iniciar el servicio de NGINX.
    utilizando el siguiente comando: systemctl status nginx.service  me da este error:

    [emerg] invalid number of arguments in "location" directive in /etc/nginx/sites-enabled/atom:27
    configuration file /etc/nginx/nginx.config test failed
    nginx.service: control process exited, code=exited status=1
    "Failed to start A High performance web server and reverse proxy server"
    nginx.service: unit entered failed state.
    nginx.service: Failed with result 'exit-code'.
    Stopped A high performance web server and a reverse proxy server.

    por si puedes apoyarme te lo agradeceria bastante, quedo a la espera de tu respuesta,
    Gracias.

    José Raddaoui

    unread,
    Oct 31, 2019, 12:49:07 PM10/31/19
    to AtoM Users
    Hola Brandon,

    Pare que hay un error en el archivo de configuración de AtoM (/etc/nginx/sites-available/atom) en la línea 27. ¿Podrías comprobar si el contenido del archivo es el mismo que sugerimos en la documentación?


    Un saludo.
    To unsubscribe from this group and stop receiving emails from it, send an email to ica-ato...@googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "AtoM Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to ica-ato...@googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "AtoM Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to ica-ato...@googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "AtoM Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to ica-ato...@googlegroups.com.
    Reply all
    Reply to author
    Forward
    0 new messages