<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: Need help installing PHP</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060320#M234986</link>
    <description>&lt;P&gt;Yes this works now. Flashed the image and in console php -v works. But the apache2 server cannot serve any .php files. It returns 'File not found. '&lt;/P&gt;&lt;P&gt;In my conf/local.conf i have set this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PACKAGECONFIG:append:pn-php = " apache2 mysql sqlite3"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 09:41:49 GMT</pubDate>
    <dc:creator>intosite</dc:creator>
    <dc:date>2025-03-12T09:41:49Z</dc:date>
    <item>
      <title>Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2055384#M234699</link>
      <description>&lt;P&gt;Trying to run a webserver on the imx8mpevk.&lt;/P&gt;&lt;P&gt;Managed to install Nginx and run. But having issues with PHP.&lt;/P&gt;&lt;P&gt;in local.conf, added IMAGE_INSTALL:append = " php"&lt;/P&gt;&lt;P&gt;bitbake imx-image-full with no errors.&lt;/P&gt;&lt;P&gt;Loaded the image onto emmc, but trying to run php -v gives command not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In /opt/yocto/imx-6.6.52-2.2.0-build/build_fsl-imx-xwayland/tmp/work/armv8a-poky-linux/php/8.2.20/temp install logs show no errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to proceed&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 09:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2055384#M234699</guid>
      <dc:creator>intosite</dc:creator>
      <dc:date>2025-03-04T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2059345#M234915</link>
      <description>&lt;P&gt;Please add the following line in file&amp;nbsp;conf/local.conf.&lt;/P&gt;
&lt;P&gt;IMAGE_INSTALL:append = " php-dbg php-cli php-cgi php-fpm php-fpm-apache2 php-dev php-staticdev php-doc php"&lt;/P&gt;
&lt;P&gt;Then rebuild rootfs filesystem.&lt;/P&gt;
&lt;P&gt;$&amp;nbsp;&lt;SPAN&gt;bitbake imx-image-full&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 08:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2059345#M234915</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-03-11T08:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2059971#M234955</link>
      <description>&lt;P&gt;Does not work.&lt;/P&gt;&lt;P&gt;Get error and it stops there.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-staticdev&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i try to bitbake them individually, i get all the same errors.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bitbake php-dbg
ERROR: Nothing PROVIDES 'php-dbg'. Close matches:
  php RPROVIDES php-dbg

bitbake php-cli
ERROR: Nothing PROVIDES 'php-cli'. Close matches:
  php RPROVIDES php-cli

bitbake php-cgi
ERROR: Nothing PROVIDES 'php-cgi'. Close matches:
  php RPROVIDES php-cgi

bitbake php-fpm
ERROR: Nothing PROVIDES 'php-fpm'. Close matches:
  php RPROVIDES php-fpm

bitbake php-fpm-apache2
ERROR: Nothing PROVIDES 'php-fpm-apache2'. Close matches:
  php RPROVIDES php-fpm-apache2

bitbake php-dev
ERROR: Nothing PROVIDES 'php-dev'. Close matches:
  php RPROVIDES php-dev

bitbake php-doc
ERROR: Nothing PROVIDES 'php-doc'. Close matches:
  php RPROVIDES php-doc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only bitbake php works and completes.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 03:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2059971#M234955</guid>
      <dc:creator>intosite</dc:creator>
      <dc:date>2025-03-12T03:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060076#M234969</link>
      <description>&lt;P&gt;Please delete&amp;nbsp;php-staticdev from the list.&lt;/P&gt;
&lt;P&gt;Please add the following line in file&amp;nbsp;conf/local.conf.&lt;/P&gt;
&lt;P&gt;IMAGE_INSTALL:append = " php-dbg php-cli php-cgi php-fpm php-fpm-apache2 php-dev php-doc php"&lt;/P&gt;
&lt;P&gt;Then rebuild rootfs filesystem.&lt;/P&gt;
&lt;P&gt;$&amp;nbsp;bitbake imx-image-full&lt;/P&gt;
&lt;P&gt;If your problem persists, please provide your build error log.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 05:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060076#M234969</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-03-12T05:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060320#M234986</link>
      <description>&lt;P&gt;Yes this works now. Flashed the image and in console php -v works. But the apache2 server cannot serve any .php files. It returns 'File not found. '&lt;/P&gt;&lt;P&gt;In my conf/local.conf i have set this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PACKAGECONFIG:append:pn-php = " apache2 mysql sqlite3"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 09:41:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060320#M234986</guid>
      <dc:creator>intosite</dc:creator>
      <dc:date>2025-03-12T09:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060386#M234995</link>
      <description>&lt;P&gt;This works now and compiles. Flash the image and load it. php -v works. But apache2 still unable to serve .php files&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 10:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060386#M234995</guid>
      <dc:creator>intosite</dc:creator>
      <dc:date>2025-03-12T10:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060884#M235025</link>
      <description>&lt;P&gt;Please check whether this file exist in your system.&lt;/P&gt;
&lt;P&gt;/usr/lib/php7/build/run-tests.php&lt;/P&gt;
&lt;P&gt;I didn't find other *.php file provided by php package.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 03:54:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060884#M235025</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-03-13T03:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060953#M235033</link>
      <description>&lt;P&gt;I uploaded my own php file to '/usr/share/apache2/default-site/htdocs'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// /usr/share/apache2/default-site/htdocs/info.php
&amp;lt;?php
phpinfo();
?&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to access it, browser returns 'File not found.' index.html and plain text .txt files work, so I can confirm apache is server files from the folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:/var/files# ls /usr/lib/php7/build/run-tests.php
ls: cannot access '/usr/lib/php7/build/run-tests.php': No such file or directory&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found the file in '/usr/lib/php8/build' and ran it. Below is the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mpevk:/usr/lib/php8/build# php run-tests.php

=====================================================================
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 8.2.20
ZEND_VERSION: 4.2.20
PHP_OS      : Linux - Linux imx8mpevk 6.6.52-lts-next-ge0f9e2afd4cf #1 SMP PREEMPT Tue Nov 19 23:01:49 UTC 2024 aarch64
INI actual  : /etc/php/apache2-php8/php.ini
More .INIs  :
---------------------------------------------------------------------
PHP         : /usr/bin/php-cgi
PHP_SAPI    : cgi-fcgi
PHP_VERSION : 8.2.20
ZEND_VERSION: 4.2.20
PHP_OS      : Linux - Linux imx8mpevk 6.6.52-lts-next-ge0f9e2afd4cf #1 SMP PREEMPT Tue Nov 19 23:01:49 UTC 2024 aarch64
INI actual  : /etc/php/apache2-php8/php.ini
More .INIs  :
---------------------------------------------------------------------
CWD         : /usr/lib/php8/build
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2025-03-13 05:46:32
=====================================================================
No tests were run.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 05:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060953#M235033</guid>
      <dc:creator>intosite</dc:creator>
      <dc:date>2025-03-13T05:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help installing PHP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060957#M235035</link>
      <description>&lt;P&gt;Would you please create a new thread to address the&amp;nbsp;&lt;SPAN&gt;apache2 server running problem?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 05:58:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-help-installing-PHP/m-p/2060957#M235035</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2025-03-13T05:58:32Z</dc:date>
    </item>
  </channel>
</rss>

