# Upload cakephp3 project to online server

**URL:** <https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801>\
**Category:** Site Feedback\
**Created:** [October 22, 2019, 8:42am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801 "2019-10-22T08:42:08Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 22, 2019, 8:42am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/1 "2019-10-22T08:42:09Z")

</div>

Hello  
i have installed a project in cakephp3.8 in localhost with oven using wamp and my project works well. when i have uploaded my project to a subdomain on a server, i have this error:

> Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
> 
> Please contact the server administrator at [webmaster@collector.oiecameroun.org](mailto:webmaster@collector.oiecameroun.org) to inform them of the time this error occurred, and the actions you performed just before this error.
> 
> More information about this error may be available in the server error log.
> 
> Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.  
> my database is well configured. i don’t what another configuration to do to resolve this problem. thks

---

<div class="post-metadata">

**Author:** ![Schlaefer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/schlaefer/32/1001_2.png) [@Schlaefer](https://discourse.cakephp.org/u/Schlaefer)\
**Post date:** [October 22, 2019, 9:40am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/2 "2019-10-22T09:40:11Z")

</div>

Depends on the server. Usually you forgot to upload the invisible .htaccess somewhere or tinkered with the .htaccess or if you have global apache/nginx config … well something is not right with that config.

Put only a simple `test.php` with an `echo` in the subfolder and check if you can access that.

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 22, 2019, 10:29am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/5 "2019-10-22T10:29:04Z")

</div>

i have try to put file oven.php in my subfolder to install cakephp3 online and it was a success but after i have the save problem to display my project. there is my .htaccess root file content:

```
# Uncomment the following to prevent the httpoxy vulnerability
# See: https://httpoxy.org/
#<IfModule mod_headers.c>
# RequestHeader unset Proxy
#</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^(\.well-known/.*)$ $1 [L]
    RewriteRule ^$ webroot/ [L]
    RewriteRule (.*) webroot/$1 [L]
</IfModule>
```

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 22, 2019, 10:30am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/6 "2019-10-22T10:30:10Z")

</div>

and there is my .htaccess webroot file content:  
  
RewriteEngine On  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteRule ^ index.php [L]

---

<div class="post-metadata">

**Author:** ![karmicdice](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/karmicdice/32/1298_2.png) [@karmicdice](https://discourse.cakephp.org/u/karmicdice)\
**Post date:** [October 23, 2019, 6:18pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/7 "2019-10-23T18:18:40Z")

</div>

This isn’t app level error. Your server configuration is mis-matching.  
What middleware are you using?

---

<div class="post-metadata">

**Author:** ![karmicdice](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/karmicdice/32/1298_2.png) [@karmicdice](https://discourse.cakephp.org/u/karmicdice)\
**Post date:** [October 23, 2019, 6:21pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/8 "2019-10-23T18:21:47Z")

</div>

Just went on the URL : [http://collector.oiecameroun.org](http://collector.oiecameroun.org)

Now it is app level configuration error.

So you solved the server error by yourself, well done!

Now… It redirected me to the login page, which tells me to replace home.ctp because it is default cakephp. Have you uploaded your source code?

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 24, 2019, 4:28pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/9 "2019-10-24T16:28:59Z")

</div>

ok my server is on LWS cpanel

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 24, 2019, 4:32pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/10 "2019-10-24T16:32:30Z")

</div>

which kind of server(with parameters) do i use to upload my cakephp3 project ?

---

<div class="post-metadata">

**Author:** ![Schlaefer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/schlaefer/32/1001_2.png) [@Schlaefer](https://discourse.cakephp.org/u/Schlaefer)\
**Post date:** [October 25, 2019, 4:11pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/11 "2019-10-25T16:11:43Z")

</div>

> which kind of server(with parameters) do i use to upload my cakephp3 project ?

Usually uploading a project to the server should just™ work. There’s nothing special about it. Maybe try uploading a new and empty Cake 3 skeleton app without any custom code that works locally and see if that gets served.

If you have an administration panel I would look for webserver (error) logs, that should give you a hint.

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [October 27, 2019, 12:45pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/12 "2019-10-27T12:45:08Z")

</div>

ok i will check it. thks

---

<div class="post-metadata">

**Author:** ![debendra986](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@debendra986](https://discourse.cakephp.org/u/debendra986)\
**Post date:** [November 7, 2019, 12:16pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/13 "2019-11-07T12:16:02Z")

</div>

Turn on your **DEBUG** mode (public\_html/config/app.php file)

> ‘debug’ =\> filter\_var(env(‘DEBUG’, **true** ), FILTER\_VALIDATE\_BOOLEAN),

Now if you run your site error cause will showed. If still showing Internal error.

Delete all previous log files from server **logs** folder (public\_html/logs).  
Then run your web site. Once your site loaded and you get that **internal error**.

goto **public\_html/logs** logs folder and check your **error.log** file. You can get each error details from there.

---

<div class="post-metadata">

**Author:** ![christ10](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@christ10](https://discourse.cakephp.org/u/christ10)\
**Post date:** [November 13, 2019, 2:18pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/14 "2019-11-13T14:18:11Z")

</div>

ok thanks you Debendra. i will apply it

---

<div class="post-metadata">

**Author:** ![Schlaefer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/schlaefer/32/1001_2.png) [@Schlaefer](https://discourse.cakephp.org/u/Schlaefer)\
**Post date:** [November 18, 2019, 3:50pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/15 "2019-11-18T15:50:13Z")

</div>

I just got feedback on a case where setting a `RewriteBase` was necessary in the `.htaccess` (see [https://book.cakephp.org/3/en/installation.html#url-rewriting](https://book.cakephp.org/3/en/installation.html#url-rewriting)). Otherwise the same error was shown. Never encountered that issue myself, but apparently that’s a thing.

Just a heads up.

---

<div class="post-metadata">

**Author:** ![drsemnaa](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@drsemnaa](https://discourse.cakephp.org/u/drsemnaa)\
**Post date:** [March 11, 2020, 12:20pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/16 "2020-03-11T12:20:44Z")

</div>

👏 thank u i had this problem

---

<div class="post-metadata">

**Author:** ![kalumbamic](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kalumbamic](https://discourse.cakephp.org/u/kalumbamic)\
**Post date:** [March 11, 2020, 2:40pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/17 "2020-03-11T14:40:11Z")

</div>

hello, how could you hosting this?  
I paid a server at lws.  
but a problem:  
I have downloaded all the directory and files on the server and I have this error:  
[**Warning** (2)](javascript:void(0);): Declaration of Cake\Chronos\Traits\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) [**ROOT/vendor/cakephp/chronos/src/MutableDate.php** , line **24**]

---

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [November 3, 2020, 11:28am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/18 "2020-11-03T11:28:35Z")

</div>

I have the same problem :  
**Warning** (2): Declaration of Cake\Chronos\Traits\FrozenTimeTrait::setTime($hours, $minutes, $seconds = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) [**ROOT/vendor/cakephp/chronos/src/MutableDate.php** , line **24**]

I just moved this site to another place.  
Worked perfectly before.  
Did not change a line.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [November 3, 2020, 4:10pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/19 "2020-11-03T16:10:08Z")

</div>

I expect that your new place has a different version of PHP; the microseconds was added at some point, and your version of Cake is not compatible with that version of PHP.

---

<div class="post-metadata">

**Author:** ![6120](https://avatars.discourse-cdn.com/v4/letter/6/278dde/32.png) [@6120](https://discourse.cakephp.org/u/6120)\
**Post date:** [January 1, 2021, 8:57am UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/20 "2021-01-01T08:57:09Z")

</div>

OK. I will check version of php.  
Thank you for your knowledge.

---

<div class="post-metadata">

**Author:** ![haihonline](https://avatars.discourse-cdn.com/v4/letter/h/db5fbb/32.png) [@haihonline](https://discourse.cakephp.org/u/haihonline)\
**Post date:** [February 3, 2021, 12:07pm UTC](https://discourse.cakephp.org/t/upload-cakephp3-project-to-online-server/6801/21 "2021-02-03T12:07:22Z")

</div>

I got same problem. thank you everyone.
