John Davidson

php - zf create project project-name creates empty folder

0 comments
Message:


I am using ZendFramework-1.12.20 on Ubuntu 18.04 LTS and PHP version is 7.4.
When I run command zf create project zendtest, it creates an empty folder.



  1. I downloaded
    https://packages.zendframework.com/releases/ZendFramework-1.12.20/ZendFramework-1.12.20.tar.gz

  2. Extracted the package in /var/www/html/ZendFramework-1.12.20

  3. ln -s /var/www/html/ZendFramework-1.12.20/bin/zf.sh /usr/local/bin/zf

  4. In /var/www/html/ I execute "zf create project zendtest". It creates an empty folder.


I have followed https://framework.zend.com/manual/1.12/en/zend.tool.framework.clitool.html


Please help. It will be really appreciated.



My Answer:
It seems like you are trying to create a project using the Zend_Tool component of Zend Framework 1. However, the zf.sh script you are using may not be properly configured or there may be some issue with the setup.

Here are a few things you can try to troubleshoot the issue:

1. Make sure that the zf.sh script is executable. You can run the following command to make it executable:

chmod +x /var/www/html/ZendFramework-1.12.20/bin/zf.sh


2. Try running the zf.sh script directly with the create project command instead of creating a symbolic link:

/var/www/html/ZendFramework-1.12.20/bin/zf.sh create project zendtest


3. Check the permissions of the directory where you are trying to create the project. Make sure that the user running the command has write permissions to that directory.

4. Verify that the Zend_Tool component is properly configured and set up in your Zend Framework installation.

If none of these steps resolve the issue, you may want to consider updating to a newer version of Zend Framework or using a different method for creating projects, such as using Composer to install Zend Framework components.

I hope this helps! Let me know if you have any other questions.

Rate this post

5 of 5 based on 7630 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us