Module Creation and Phing issue

Hello,

I have been trying to create a new language module and automate the step of copying all english xml files to one place, but without any success.

I am running an Apache serve and I have managed to install Phing with all its dependencies using the following commands:

pear channel-discover pear.phing.info

pear install --alldeps phing/phing

Phing 2.16.4 (the lastest stable verion) was installed successfully.

With the following command, I've found the Phing Directory:

pear config-get php_dir

Phing is installed here:

/opt/cpanel/ea-php73/root/usr/share/pear

Now the problem is the command phing package_all_langs doesn't work.

My test site is installed on a subdomain. I copied the build.xml file from https://github.com/unaio/una and pasted it in UNA root folder (the subdomain). From the root of that UNA site (xxxx.yyyyy.com) whenever I run phing package_all_langs It returns this error:

-bash: phing: command not found

Did I miss something? Please help.

Thanks

  • 516
  • More
Replies (2)
    • There are various methods of installing phing - https://www.phing.info/

      I think the easiest one is to just download phar binary and run it like this:

      php phing.phar package_all_langs
      • Hi Alex T⚜️,

        I want to thank you for taking the time to answer my question. I got it to work now!

        First of all, I have uninstalled the Phing I've installed using the pear command.

        Then I run the command you provided but i slightly changed it because the file I downloaded from https://www.phing.info/  was phing-latest.phar

        So the final command I run was:

        php phing-latest.phar package_all_langs

        and it works perfectly. Once again, thanks for the support!

        Login or Join to comment.