简体   繁体   English

如何部署Zend新项目

[英]How to deploy a Zend new project

I am currently trying to update a previous web site using Zend Framework. 我目前正在尝试使用Zend Framework更新以前的网站。

As I dont want to work in a local network, I subscrided to a pro offer of OVH server. 由于我不想在局域网中工作,因此我订阅了OVH服务器的专业版。

So I put my old website in the www folder, I uploaded the Zend Framework directory (ZendFramework-1.11.11), and then created a foder dev in the root directory as well. 因此,我将旧网站放在www文件夹中,我上载了Zend Framework目录(ZendFramework-1.11.11),然后也在根目录中创建了一个foder dev。

As I got this error when I try to create a new project with putty : Parse error : syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in xxxx/ZendFramework-1.11.11/bin/zf.php on line 38 当我尝试用腻子创建新项目时遇到此错误: 解析错误 :语法错误,意外的T_STRING,预期在xxxx / ZendFramework-1.11.11 / bin / zf.php上为T_OLD_FUNCTION或T_FUNCTION或T_VAR或'}' 38
This seems to come because the serveur is running with php 4 instead of 5. I created a .htaccess file including the following line : SetEnv PHP_VER 5 这似乎是因为Servur用的是php 4而不是5。我创建了一个.htaccess文件,其中包括以下行:SetEnv PHP_VER 5

When I use phpinfo(); 当我使用phpinfo(); in www/phpversion.php, it says it is PHP5. 在www / phpversion.php中,它表示是PHP5。 ... ...

But when I use php -v with putty, it keeps saying I am using php 4.4.9 但是当我将php -v与腻子一起使用时,它总是说我正在使用php 4.4.9

Annyone has an idea to help me upgrading the server php version, and to help me creating my new project ?? Annyone有一个想法可以帮助我升级服务器php版本,并帮助我创建新项目?

Many thanks 非常感谢

Assuming you use a LAMP setup with debian as the operating system do this as root: 假设您将带debian的LAMP设置用作操作系统,请以root用户身份执行此操作:

aptitude install libapache2-mod-php5 php5 php5-cli aptitude安装libapache2-mod-php5 php5 php5-cli

and then retry. 然后重试。 You may add some other packages like php5-gd or php5-suhosin etc. 您可以添加其他一些软件包,例如php5-gd或php5-suhosin等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM