Lorenzo Camaione
Lorenzo Camaione

Reputation: 525

Apache2 not working

I'm a newbie developer at my first serious project! I'm trying to set up an AWS EC2 virtual machine using:

-Ubuntu 14.02.02

-Ruby 2.2.1

-Rails 4.2.4

-Apache2 last version.

After all configuration when I try to restart apache2 I get this error:

"mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: No such file or directory /etc/init.d/apache2: 91: /etc/init.d/apache2: cannot create : Directory nonexistent * * The apache2 configtest failed. Not doing anything."

I've googled it without results. Thanks for your help!!

Upvotes: 0

Views: 2160

Answers (1)

SWiggels
SWiggels

Reputation: 2296

You need to make the temp folder /tmp writable for your apache.

You can do this by running: sudo chmod 1777 /tmp

Common right for /tmp are 1777, which ls shows as drwxrwxrwt.

EDIT:

If the folder is not existent first run: sudo mkdir /tmp

Upvotes: 1

Related Questions