<p>Well then. Apparently my shell user was using a different version of php than my domain. I was still at 5.6 on my shell user. I was all sorts of confused because I had a phpinfo.php file setup at my domain showing PHP 7.0, and in the web hosting domain panel, I had 7.0 chosen. Finally wrote to support and they sent directions on how to change it. Once I updated that, the security key was created just fine.</p>

CC BY-SA 4.0
2018-07-22T16:11:54.907Z
2018-07-22T16:11:54.907Z
Shad
<p>Try <code>php craft setup/security-key</code>?</p>

CC BY-SA 4.0
2018-07-22T14:32:12.707Z
Same response - still says I need php 7.0 or greater. Thanks for replying though!
Shad
CC BY-SA 4.0
2018-07-22T02:00:35.143Z
2018-07-22T02:00:35.143Z
Brian Larson
<p>I'm going on 5 days of banging my head on my desk here. </p>

<p>I'm simply not getting how to install it on my production server. I have Craft working beautifully locally...but getting it to my server is a whole other matter. </p>

<p>So I have ssh'd into my VPS, then run 'wget '<a href="https://craftcms.com/latest-v3.zip" rel="nofollow noreferrer">https://craftcms.com/latest-v3.zip</a>'' and unzipped it to try and get it running as just a barebones install. So now I'm going through the install instructions, and am running into an error when running the './craft setup/security-key' step:</p>

<pre><code>PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
</code></pre>

<p>Craft requires PHP 7.0 or later.</p>

<p>I created a phpinfo file and it's returning PHP Version 7.0.30.</p>

<p>Any ideas why I'm getting this error?</p>

<p>Thanks in advance.</p>

<craft3><install><security>
Manually creating Security Key gives PHP error
# Manually creating Security Key gives PHP error

(Asked by: username_0 on 2018-07-21)

I'm going on 5 days of banging my head on my desk here. 
I'm simply not getting how to install it on my production server. I have Craft working beautifully locally...but getting it to my server is a whole other matter. 
So I have ssh'd into my VPS, then run 'wget 'https://craftcms.com/latest-v3.zip'' and unzipped it to try and get it running as just a barebones install. So now I'm going through the install instructions, and am running into an error when running the './craft setup/security-key' step:
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0

Craft requires PHP 7.0 or later.
I created a phpinfo file and it's returning PHP Version 7.0.30.
Any ideas why I'm getting this error?
Thanks in advance.

**Tags:** craft3, install, security

---

## 2 answers

### Answer by username_0 on 2018-07-22. Score: 3 | Accepted answer

Well then. Apparently my shell user was using a different version of php than my domain. I was still at 5.6 on my shell user. I was all sorts of confused because I had a phpinfo.php file setup at my domain showing PHP 7.0, and in the web hosting domain panel, I had 7.0 chosen. Finally wrote to support and they sent directions on how to change it. Once I updated that, the security key was created just fine.


---

### Answer by username_1 on 2018-07-22. Score: 0

Try `php craft setup/security-key`?

> **Comments:**
> **username_0**: Same response - still says I need php 7.0 or greater. Thanks for replying though!  

---

