# PHP in an AppDir

**URL:** <https://discourse.appimage.org/t/php-in-an-appdir/2779>\
**Category:** Creating AppImages\
**Created:** [August 8, 2022, 6:09pm UTC](https://discourse.appimage.org/t/php-in-an-appdir/2779 "2022-08-08T18:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michacassola](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/michacassola/32/737_2.png) [@michacassola](https://discourse.appimage.org/u/michacassola)\
**Post date:** [August 8, 2022, 6:09pm UTC](https://discourse.appimage.org/t/php-in-an-appdir/2779/1 "2022-08-08T18:09:36Z")

</div>

Hi, in the docs cmake and qmake examples are given. What would be the best way to put PHP into an AppDir which uses autotools (Searched for CMake for PHP and the stuff I found was from 13 years ago [PHP: Index of /php/cmake](http://svn.php.net/viewvc/php/cmake/))?  
Will `./configure --prefix=AppDir ...` work?

I am also thinking of running PHP, PHP-FPM and other binaries from an AppDir and not an AppImage, because I did not see info about several binaries in one AppImage. Can binaries be run in AppDirs using the dependencies therein like in an AppImage file?  
Is performance lost due to the fuse mount of the AppImage versus running the binaries sitting in a “normal” folder?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![michacassola](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/michacassola/32/737_2.png) [@michacassola](https://discourse.appimage.org/u/michacassola)\
**Post date:** [August 24, 2022, 7:23pm UTC](https://discourse.appimage.org/t/php-in-an-appdir/2779/2 "2022-08-24T19:23:07Z")

</div>

Moved on, seems there is no support here. Anyone stumbling upon this, I would advice the same.  
Hi and bye AppImage. 👋

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [September 25, 2022, 1:26pm UTC](https://discourse.appimage.org/t/php-in-an-appdir/2779/3 "2022-09-25T13:26:20Z")

</div>

Hello @michacassola. This is a community based support forum.  
Apparently no one here knows how to build PHP. I don’t have any experience with it. Sorry. You would need to ask the PHP authors whether the support `./configure --prefix=...`, or to simply try it out.
