# Apache failed in xampp

**URL:** <https://discourse.cakephp.org/t/apache-failed-in-xampp/9647>\
**Category:** Need Help\
**Created:** [August 18, 2021, 6:08pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647 "2021-08-18T18:08:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 18, 2021, 6:08pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/1 "2021-08-18T18:08:52Z")

</div>

|1:49:46 PM [Apache] |Return code: 0|  
|1:49:46 PM [Apache] |Status change detected: running|  
|1:49:47 PM [Apache] |Status change detected: stopped|  
|1:49:47 PM [Apache] |Error: Apache shutdown unexpectedly.|  
|1:49:47 PM [Apache] |This may be due to a blocked port, missing dependencies, |  
|1:49:47 PM [Apache] |improper privileges, a crash, or a shutdown by another method.|  
|1:49:47 PM [Apache] |Press the Logs button to view error logs and check|  
|1:49:47 PM [Apache] |the Windows Event Viewer for more clues|  
|1:49:47 PM [Apache] |If you need more help, copy and post this|  
|1:49:47 PM [Apache] |entire log window on the forums|  
|1:51:41 PM [main] |Executing notepad.exe c:\xampp\apache\logs\error.log|

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [August 18, 2021, 7:35pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/2 "2021-08-18T19:35:34Z")

</div>

Maybe you already have some software running on port 80?  
Maybe you need to run the software as administrator?

Basically this error message doesn’t tell anything usefull other than the fact, that apache stopped unexpectedly.

Maybe tell us more about your system? Which OS? Which version of XAMPP?

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 18, 2021, 10:04pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/3 "2021-08-18T22:04:00Z")

</div>

Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.3.29

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 18, 2021, 10:13pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/4 "2021-08-18T22:13:27Z")

</div>

I had updated apache/httpd.conf with the virtualhost code from a 2015 xampp install thread. When Apache failed to start, I removed it and Apache server started. So now i am confused at how to get cakephp environment to run.  
I download the cakephp zip file and copied the files to a jake folder in htdocs. I am getting conflicting info about the configuration to get the mvc/cms environment working.

---

<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:** [August 18, 2021, 10:49pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/5 "2021-08-18T22:49:12Z")

</div>

CakePHP depends on the webserver (e.g. Apache) to run, not the other way around. If Apache is not working, it’s not because of Cake, and you’re likely to get much better help on Apache-specific forums.

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 18, 2021, 11:27pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/6 "2021-08-18T23:27:18Z")

</div>

OK…I agree and I did figure that out and have local/jack.com opening in a browser.  
I am now having trouble finding the files to configure the database. This is the statement that makes no sense: there is no azibappconfig folder! Please point me in the right direction.  
“Start off setting up your database connection by renaming the database configuration file to database.php/app.php file from database.php/app.php.default file, as found in the C:xampphtdocs azibappconfig folder. Now open the database.php/app.php file and enter a username, password, and database name to the ‘$default’ connection variable:”

---

<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:** [August 19, 2021, 12:04am UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/7 "2021-08-19T00:04:39Z")

</div>

How old a version of CakePHP are you using, and where did you find these terrible directions?

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 1:16am UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/8 "2021-08-19T01:16:54Z")

</div>

I downloaded 4.2 and those instructions were in multiple places. I think one was from an xampp person

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 1:19am UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/9 "2021-08-19T01:19:20Z")

</div>

This link:  
[https://easytolearning.com/cakephp-installation-on-windows](https://easytolearning.com/cakephp-installation-on-windows)

---

<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:** [August 19, 2021, 2:01am UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/10 "2021-08-19T02:01:40Z")

</div>

That link includes this line: “Extract the CakePHP (version 1.3.8) zip file”. CakePHP has evolved TREMENDOUSLY between 1.3.8 and 4.2, and nothing about the installation process for 1.3.8 would reasonably be expected to apply to 4.2. I’d suggest that the official [CakePHP documentation](https://book.cakephp.org/4/en/installation.html) would be the place to go for how to install it.

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 4:33pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/11 "2021-08-19T16:33:59Z")

</div>

Background: html programming for many years, this is my first time trying to use a cms. I cannot get cakephp install in my xampp\htdocs folder.  
Is still an xampp issue? The instructions seem to assume I’m a unix/linux cocder…never used them. I am in windows 7 using xampp server to build/test. I finally figured out the when “bin” is used it means a directory I want to install to? Is there any hope for me using this cms? Thanks for your patience.

---

<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:** [August 19, 2021, 5:40pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/12 "2021-08-19T17:40:04Z")

</div>

First off, CakePHP is not a CMS, it’s a framework. There are CMSes built on CakePHP, but it is not, by itself, a CMS.

I think the instructions generally tend to assume not Unix/Linux, but rather familiarity with configuring your web server and running command line tools. Like how a car manual doesn’t explain traffic lights or speed limits. If you’re not sure how to get _anything_ running under Apache, then your solution won’t lie in the Cake documentation, but generic Apache or XAMPP docs.

That said, it’s 100% possible to run CakePHP applications in the environment you’re dealing with.

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 7:04pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/13 "2021-08-19T19:04:46Z")

</div>

I appreciate the response but there is no other info than the 1.3 software. I have been looking n it seems there is no docs for xampp using cakephp 4.xxx. I am comfortable using the command or php window. But not setting up/configuring apache xampp for cakephp. xampp sets itself up and I have made changes to php.ini for my web apps but need a framework to build better modern websites. Any help I can get is appreciated.

---

<div class="post-metadata">

**Author:** ![dirk](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dirk/32/2174_2.png) [@dirk](https://discourse.cakephp.org/u/dirk)\
**Post date:** [August 19, 2021, 7:26pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/14 "2021-08-19T19:26:23Z")

</div>

maybe this could help

[![](https://img.youtube.com/vi/0SkEU6KP7HM/hqdefault.jpg "CakePHP 4 installation using composer (2).") ](https://www.youtube.com/watch?v=0SkEU6KP7HM)

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 8:38pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/15 "2021-08-19T20:38:29Z")

</div>

Thanks…but could there be another without an Indian narrator? I can’t understand everything he says especially when he talks faster.

---

<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:** [August 19, 2021, 8:53pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/16 "2021-08-19T20:53:01Z")

</div>

Have you followed the steps on the link I provided to get CakePHP installed on your system? Have you noticed that there’s a section on that page that tells you how to [configure Apache](https://book.cakephp.org/4/en/installation.html#production) for production environments? Those directions do all assume a Linux filesystem, but the differences between that and Windows are pretty straight-forward and surely how to specify the different format in the Apache config would be covered in detail in the Apache documentation.

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 9:47pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/17 "2021-08-19T21:47:44Z")

</div>

I have been trying to use command prompt to install like video shows but the attached pics show it not working and the path is correct.  
 ![IntialComposer.jpg](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/1/19d0968c841ed8fc172e9b189e9e26d63f36e9da.jpeg)

---

<div class="post-metadata">

**Author:** ![artmgmt](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@artmgmt](https://discourse.cakephp.org/u/artmgmt)\
**Post date:** [August 19, 2021, 9:50pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/18 "2021-08-19T21:50:20Z")

</div>

This is the second try that failed

![ComposerWithPath.jpg](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/7/7b367bb2021c391d617b5a81022f05f4baeb833d.jpeg)

---

<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:** [August 19, 2021, 9:51pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/19 "2021-08-19T21:51:46Z")

</div>

Where did that comma in your command line come from?

---

<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:** [August 19, 2021, 9:57pm UTC](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647/20 "2021-08-19T21:57:32Z")

</div>

Also, you’re not telling compose to _do_ anything here. Just that it should use that as your working folder. If “dam” is where you’ve installed CakePHP to, you _might_ be able to `cd` to that folder and then run `composer install`. Or maybe not, as it’s unclear what “install” even means to you due to your trying to use very old unofficial sources instead of the actual Cake installation documentation which I’ve already linked you to

[Here](https://book.cakephp.org/4/en/installation.html#create-a-cakephp-project) is what you _should_ be doing to create a brand new empty CakePHP application with composer.

[Next page](https://discourse.cakephp.org/t/apache-failed-in-xampp/9647.md?page=2)
