Passenger with apache fails with "End time can not be before or equal to begin time" - apache

Running Passenger 6.0.4 with Apache 2.4.18 on Ubuntu 64 bit server 16.04.
I have a virtual system set up and whenever I try to access it Passenger quits with the subject message. I have not been able to find any suggestion about what might be wrong.
I have a couple of cloud servers set up with over 100 virtual hosts using ubuntu 14.04 but I want to move up to a supported version.

I received the same error when attempting to setup an instance of Canvas LMS. I resolved this by simply adding a folder called "passenger" in the /tmp folder.
That's needed for Passenger to run properly and for some reason wasn't created on it's own.

Related

Does file copy deployments work with CakePHP?

I have a legacy CakePHP(1.3.13) app, running on Ubuntu server 16.04, on apache. It is using php 5.6. I'm trying to migrate the app to a development server, also Ubuntu 16.04, but running php 7.2.
On the production machine, php file(s) are being executed even before line 1 of index.php in the app I'm trying to migrate. On the dev box, this isn't happening.
I've sudo tar'ed the entire web server tree, and sudo untar'ed it on the dev box. I've copied the apache site configs, and only edited them for hostnames.
I don't understand why apache is running one or many php files PRIOR to running index.php on the production box. It is apparently loading a custom configuration php file, that sets up some global variable, but for the life of me I can't figure out why this is happening. I'm sure I'm just missing something dumb.
Greg Schmidt nailed it. There was a second auto_prepend_file=MagicallyExecutingScript.php in the php.ini.

How to remove this Apache page from my localhost address?

I was trying to get the Apache server to work. When I was done with it I uninstalled the service and deleted all the server files. However I noticed even after all that going to localhost address shows me this page
How do I go on about removing this page from my localhost? Thanks
To expand on the previous comment ... after killing all httpd processes (and this may be a problem because Apache will respawn children) ... then reboot the system to see if the problem persists.
If it does persist, then Apache has not been uninstalled and it'll have to be uninstalled. If the system uses sysvinit, look in /etc/init.d for a script that starts Apache and disable that script.
If the problem does not persist then Apache was properly uninstalled and the problem will not recur.

Apache running MongoDB and PHP

I'm using XAMPP in my Mac OSX. I've installed mongodb and copied the .so file into xampp plugins folder. My phpinfo() of the page shows that MongoDB section which is installed.
After i start Apache of XAMPP server, when i code
m = new MongoClient();
$db = $m->mydatabase;
$collection = $db->myCollection;
Its saying some Fatal Error.
If i run mongod command in Terminal window, its working. Then what is the use of installing mongodb in XAMPP server. My Questions are
Why its working like that..?
Is there any way to start mongod when we start Apache server.
Why its working like that..?
Installing the PHP driver and the MongoDB server are two completely different things.
This is very basic driver stuff; you require a library or communication layer that can route your PHP programming to the MongoDB server (basically).
Is there any way to start mongod when we start Apache server.
You could make an sh script that looks like:
/etc/init.d/xammp_service_dunno_what_it_is_called start
/etc/init.d/mongodb start
Then you could just attach to the startup, or even better you can just attach both services (XAMPP and MongoDB) to the startup of your computer.
However, as far as I know, there is no way to create a sort of trigger mechanism that will load up MongoDB when the OS detects that you have started running Apache.

subdomain for redmine via terminal

I installed redmine on a virtual server (Ubuntu 10.04) with this tutorial:
install guide
Everything seems to be correct, where I stuck is how to make my redmine installation accessible from browser or in other words how to add a subdomain to the existing.
The virtual Server is available under:
lvps46-163-79-1.dedicated.hosteurope.de
which points to a standard htdocs directory.(/var/www/vhosts/default/htdocs/)
My Redmine installation is under:
/usr/share/redmine/
I tried to setup a subdomain with plesk as written in the tut but this failed. Is there an easy (understandable for beginners) way by terminal to make the installation available under:
redmine.lvps46-163-79-117.dedicated.hosteurope.de
Kind regards,
toni
Just to make this complete. I followed the instructions with the apache doku. Unfortunately I couldn´t get the vhost working. I´m now using Mongrel Server on Port 3000 which works for me.

Basic Apache commands for a local Windows machine

I have installed XAMPP on my Windows 7 machine and created a number of virtual servers. This part is straightforward enough.
Each time I add a new virtual server I am having to reboot my computer in order to reboot the Apache server, which is of course quite time consuming.
I have googled and found the correct console commands to use to reboot Apache, but absolutely non of the references that I have found actually tell you where to type the relevant commands! A certain level of knowledge is assumed.
So my question is - where do I actually type apache -k restart?
Going back to absolute basics here. The answers on this page and a little googling have brought me to the following resolution to my issue.
Steps to restart the apache service with Xampp installed:-
Click the start button and type CMD (if on Windows Vista or later and Apache is installed as a service make sure this is an elevated command prompt)
In the command window that appears type cd C:\xampp\apache\bin (the default installation path for Xampp)
Then type httpd -k restart
I hope that this is of use to others just starting out with running a local Apache server.
For frequent uses of this command I found it easy to add the location of C:\xampp\apache\bin to the PATH. Use whatever directory you have this installed in.
Then you can run from any directory in command line:
httpd -k restart
The answer above that suggests httpd -k -restart is actually a typo. You can see the commands by running httpd /?