Apache HTTP Server offline installation - linux

Is is possible to use Apache web server with out installing latest rpm for Apache HTTPD using rpm Uvh httpd<version>.<arch>.rpm or yum install httpd , like we can do for tomcat on Linux machines? Because i don't have root access to run rpm or yum
We can achieve this for tomcat just by copy the tomcat directory toany desired location and run startup.sh , it would start the server running on default port 8080 and could be accessed using hostname:/8080.
But when I looked for such ready to use dump on Apache site i didn't find it for Linux.
However for windows i have such feature available on apachelounge.com... Is offline installation of Apache HTTP Server possible on Linux?
On windows we can download the binaries from http://www.apachelounge.com/download/
and just run the executable httpd.exe which would get the work done in couple of minutes.

Related

Install Plesk on existing server with nginx website running

I would like to install Plesk on a VPS with Debian 10. The VPS has nginx running with one site pointing from a domain using the /etc/nginx/sites-available/mysite.com configuration. Can I install plesk via the plesk installer and then afterwards still have my site running?
Thanks for any help

How to upload laravel project on remote server

I'm trying to install new laravel project via ssh connection on remote server based on ubuntu. I've faced following problem:
This project requires php 7.2 zip extension I guess. But I've already had php 7.2.
Can someone help me with this?
P.S. I've tried every command like sudo apt-get install php7*- and etc...

I am having issues while deploying react and node application on unix standalone server

I have developed my application on a windows machine and have to deploy this on a standalone UNIX server and while running commands like: npm start, it says that package is not available but I checked and everything is available in the project's npm modules.
Do I need to use docker or how can I achieve that without any container such as docker or kubernete.
Can I try cloning my repo in some other Linux machine and npm install and then use the same folder to deploy on UNIX CentOS running on the server?

Deploying my node.js app from Github to a VPS

I have an node.js application on Github. I have never done any VPS deployment before and I am learning on the go.
I am using the VPS by Hostinger.in, the OS being used is Ubuntu 14.04. So far this is what I have done:
Connected to their SSH successfully from my Terminal
Installed node.js on the server [https://www.hostinger.com/tutorials/vps/how-to-install-node-js-on-ubuntu]
Installed Git on the server [https://www.hostinger.com/tutorials/how-to-install-git-on-ubuntu]
I could not find any online resources for deploying my node.js to Hostinger VPS so I am following the ones written for DigitialOcean.
The one tutorial I followed is this: https://code.tutsplus.com/tutorials/setting-up-continuous-integration-continuous-deployment-with-jenkins--cms-21511
I cloned my repository doing:
git clone https://github.com/myusername/node-project.git
and it seems it was deployed (didnt give me any errors).
All the installations I did on the server I did as the root/admin user. So far I have not created any separate user to perform any of these tasks.
The server hostname given to me is dangerous-pigs.com. Now I am assuming my node.js application is deployed, but when I go to dangerous-pigs.com it shows me server not found error.
I also installed forever for my node app and when I run
forever start app.js
it says:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info: Forever processing file: app.js
error: Cannot start forever
error: script /root/app.js does not exist.
Which means the app is either not installed or installed somewhere other than the root folder.
There is a lot going on and I am confused where to start fixing issues.
How can I deploy the app to running it on the dangerous-pigs.com?
Update
So it seems I have to go inside the project folder in root and do the
npm install --production
after which I did
node app.js
The server seems to be running but, I can only access my application if I do to the actual IP provided by the service.
So if I type http://93.188.163.249:8000 --> that's my application.
How do I change it to point to a domain?
After some more research this is what I found:
Currently by default Apache2 runs on port 80. To run nodejs on port 80 first I need to install libcap2-bin in my Ubuntu server by doing:
sudo apt-get install libcap2-bin
after which I do
sudo setcap cap_net_bind_service=+ep /usr/bin/nodejs
the above command works if you have a mac, for windows the command maybe
sudo setcap cap_net_bind_service=+ep /usr/local/bin/node
but please confirm before doing it.
Also your nodejs server needs to be stopped before you make these changes else it will not work. In my case I had forgotten to stop my node server and kept running the sudo setcap command but it did not changed the port (for obvious reasons).
If you are using forever to run node then do:
forever stopall

/xampp/lang.php not found

I am new to linux(ubuntu). I installed XAMPP server in my system.. but after installing when i am using browser it shows the following error:
Not Found
The requested URL /xampp/lang.php was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
If you are using linux, you don't need xampp, linux has native packages for PHP development, called lamp (linux, apache, MySQL, PHP). In fact almost all web servers around the world that runs PHP are linux servers.
There are some easy steps that you can quickly install lamp unsing ubuntu's terminal.
sudo apt-get install lamp-server^
Note The caret (^) at the end of the command is important.
This will install the latest PHP, MySQL and Apache2 that is it in the Ubuntu repository (depending on your ubuntu version)
You can also install each component individually, here you can find the complete steps
Install LAMP Server on Ubuntu with a 1-line Command
It is also a good idea for development environment to setup a workspace directory in your home folder to hold your projects and than making virtualhost files in your /etc/apache2/sites-available folder (you need sudo privileges).
More about virtual hosts on Apache virtual hosts
This approach helps a lot with permissions of read/writes on your project files.
Best regards,

Resources