Apache does not process PHP after zend-server fun

General discussion forum for the Zend Server
cc0028
Posts: 14
Joined: Mon Jun 07, 2010 8:53 pm

Re: Apache does not process PHP after zend-server fun

Post by cc0028 » Wed Jun 09, 2010 7:15 am

Hi Jess,

I really am grateful to you for taking an interest in this.

First, the quick answer. I thought I needed the platform because your Web site said so. Having said that, though, I find your Web site so confusing that I could have completely mistaken what it was trying to say.

Now the long(ish) answer. I'm a Web developer. Over recent years I've done mainly enterprise Web applications using an n-Tier, distributed architecture using the .NET Framework (WCF these days) and SQL Server. However, I have my own company (http://www.peredur.net) as well, which is taking up more and more of my time and which I intend to devote myself to exclusively from this autumn onwards; and where the main emphasis is on static HTML. PHP, though, is becoming increasingly important so I'm looking at setting up a more organised development environment on my development box (Ubuntu Lucid 32-bit; PHP 5.3.2 (IIRC); MySQL 5.1.4 (IIRC); Apache2). I have an old(ish) version of ZDE (5.5.1) and I'm happy to pay to upgrade that if I can get a good environment established. I've played with the Zend IDE before - and lots of great help from Zend, I have to say - so I'm probably a bit of a nuisance; however the increase in interest from my customers means that I really do need to get this sorted, now.

What I really need is advice on what I need and how to set it up. I'm the first to admit that I'm not the world's best admin. Each to their own, and I'm a halfway decent programmer in at least half a dozen languages. As I said, your Website confuses me no end. Should I use the standalone IDE or the Eclipse plugin? If I use the plugin (I currently have PDT installed) do I have to have a clean installation of Eclipse? Does the IDE give me remote debugging or do I need the Server for that? How is the Server configured for debugging? etc etc.

So there we are: in a nutshell.

Thanks again,

Cheers


Peter
http://www.peredur.net

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Apache does not process PHP after zend-server fun

Post by jess04 » Wed Jun 09, 2010 7:27 am

Hi Peter,

You're hardly a nuisance, that's what this forum is for :)
In any event, for remote debugging, you need the Zend Debugger PHP extension installed on your web server.
All server side products by Zend include one version or another of Zend Debugger but the newest versions are available as part of Zend Server so I would most certainly recommend that.
As far as Zend Studio vs. PDT, I'll ask a colleague of mine who leads the Studio development to comment, I'm responsible for the server side only so his reply is bound to be more educated.

Thanks,
May the source be with you,

Jess Portnoy

User avatar
ganoro
Posts: 409
Joined: Wed Jan 21, 2009 5:00 pm

Re: Apache does not process PHP after zend-server fun

Post by ganoro » Wed Jun 09, 2010 8:15 am

cc0028 wrote:Hi Jess,
Should I use the standalone IDE or the Eclipse plugin? If I use the plugin (I currently have PDT installed) do I have to have a clean installation of Eclipse? Does the IDE give me remote debugging or do I need the Server for that? How is the Server configured for debugging? etc etc.
Hi Peter,
When it comes to setting up a development environment you have two options, using the open source solution which is Eclipse + PHP plugin (which should be installed separately as described here http://wiki.eclipse.org/PDT/Installation) or install Zend Studio (http://www.zend.com/studio) from Zend download site which includes all you need for your development environment.

In case you work with Zend Server you don't need to install any extra feature on your server, it's just work with bot solutions (open source and commercial).

Best regards,
Roy

cc0028
Posts: 14
Joined: Mon Jun 07, 2010 8:53 pm

Re: Apache does not process PHP after zend-server fun

Post by cc0028 » Wed Jun 09, 2010 11:08 am

Thanks to both. The key seems to be to install the Zend Server.

I do have Eclipse PDT installed (Eclipse Gannymede), but with XDebug which I've not managed to get to work consistently (or at all, at the moment). So my strategy, I guess, will be to install Zend Server first. I'll then try to get that working with my Zend 5.5.1 IDE installation since it seems to me that I should stand a better chance of getting things working together if I stick with horses from the same stable. I'll have a go at that tonight.

Just for my information, is the Zend server just middleware between the IDE and Apache? Or is it a development debugging Web server in its own right (much like the one that comes with Visual Studio if you're doing ASP.NET/WCF programming)?

Cheers


Peter
http://www.peredur.net

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Apache does not process PHP after zend-server fun

Post by jess04 » Wed Jun 09, 2010 2:10 pm

Hi Peter,

Zend Server is quite a bit more than just "middleware between the IDE and Apache" :)

This is a pretty old post of mine that gives an overview of what's included:
viewtopic.php?f=8&t=59&hilit=+in+the+box
Since then, we've also added the Zend modules: Code Tracing, JobQueue and Session Clustering.
There's info about ZendServer in general and about these specific modules in our web documentation, let me know if you require assistance in locating specific sections.
May the source be with you,

Jess Portnoy

cc0028
Posts: 14
Joined: Mon Jun 07, 2010 8:53 pm

Re: Apache does not process PHP after zend-server fun

Post by cc0028 » Wed Jun 09, 2010 7:36 pm

Thanks again for your reply. I downloaded and installed Zend Server, following the Web site instructions. The installation finished with:

Code: Select all

Writing extended state information... Done
(Reading database ... 333028 files and directories currently installed.)
Removing libapache2-mod-php5 ...
Module php5 disabled.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Removing php5-mysql ...
Selecting previously deselected package php-5.3-dev-zend-server.
(Reading database ... 333027 files and directories currently installed.)
Unpacking php-5.3-dev-zend-server (from .../php-5.3-dev-zend-server_5.3.2_i386.deb) ...
Setting up php-5.3-dev-zend-server (5.3.2) ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initialising package states... Done
Writing extended state information... Done

Zend Server was successfully installed.
However when I try to open the admin page as instructed, Firefox says:

Code: Select all

Firefox can't establish a connection to the server at localhost:10081
(https didn't work either)

It seemed to me that the server hadn't started, so I googled a bit for instructions on starting the zend server, but failed to find anything. Then when I looked in Synaptic, I found that the package zend-server-php-5.3 was not installed. I tried to mark it for installation but all I got was a message saying that the following packages have unresolved dependencies:

Code: Select all

zend-server-php-5.3:
 Depends: php-5.3-common-extensions-zend-server but it is not going to be installed
 Depends: help-zend-server but it is not going to be installed
I then tried to mark those packages for installation, but just got told they needed zend-server-php-5.3: so I was just going around in circles. The message in Synaptic did also suggest making sure that the required repositories were available so I checked and there is a ticked entry for http://repos.zend.com/zend-server/deb in the Software Sources list, so that looks OK.

This is why I gave up before. If it's as hard as this even before I try using it, I just wonder what it'll be like when it's installed. However, you've persuaded me to give it a go, so give it a go I will do - if you have any suggestions about what might be going on.

Cheers


Peter
http://www.peredur.net

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Apache does not process PHP after zend-server fun

Post by jess04 » Thu Jun 10, 2010 7:02 am

Hi Peter,

Lets take it one step at a time. Please try the following from the shell as a super user [root] and, if something fails, paste the output here so we can analyze it:

0. Remove all ZS packages that might be in an inconsistent state:

Code: Select all

# aptitude purge "~n.*zend.*"
1. Make sure you've got the right repo in /etc/apt/sources.list:

Code: Select all

deb http://repos.zend.com/zend-server/deb server non-free
2. Sync APT against the remote repos:

Code: Select all

# aptitude update
3. Install the desired ZendServer meta package, options are:

Code: Select all

# aptitude install zend-server-php-5.2
# aptitude install zend-server-php-5.3
# aptitude install zend-server-ce-php-5.2
# aptitude install zend-server-ce-php-5.3
4. Go to http://localhost:10081
The ZS UI should load.

In the event something does not work, as I said, please paste the output here and also, run:

Code: Select all

# /usr/local/zend/bin/support_tool.sh 
And send the resulting archive to jess zend com, it'll help me better understand the status.

Thanks,
May the source be with you,

Jess Portnoy

cc0028
Posts: 14
Joined: Mon Jun 07, 2010 8:53 pm

Re: Apache does not process PHP after zend-server fun

Post by cc0028 » Thu Jun 10, 2010 10:44 am

Hi Jess,

I'll have a go at that tonight.

Can I just say that it all my dealings with Zend I've had fantastic support, for which I'm very grateful.

Cheers


Peter
http://www.peredur.net

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: Apache does not process PHP after zend-server fun

Post by jess04 » Thu Jun 10, 2010 12:19 pm

Hi Peter,

Thanks for the kind words, we do try and, of course, you're quite welcome :)
Good luck and do let me know as to the results.
May the source be with you,

Jess Portnoy

cc0028
Posts: 14
Joined: Mon Jun 07, 2010 8:53 pm

Re: Apache does not process PHP after zend-server fun

Post by cc0028 » Thu Jun 10, 2010 5:20 pm

Hi Jess,

I'm afraid nothing works; not even the support tool. Here is the console output for my session:

Code: Select all

peter@peter-linux:~$ su
Password: 
root@peter-linux:/home/peter# aptitude purge "~n.*zend.*"
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
"php-sc-zend-server" is a virtual package provided by:
  php-5.3-sc-zend-server php-5.2-sc-zend-server 
You must choose one to install.
"php-jq-zend-server" is a virtual package provided by:
  php-5.3-jq-zend-server php-5.2-jq-zend-server 
You must choose one to install.
"php-5.2-zend-server" is a virtual package provided by:
  php-5.2-fcgi-zend-server libapache2-mod-php-5.2-zend-server 
You must choose one to install.
"zend-server" is a virtual package provided by:
  zend-server-php-5.3 zend-server-php-5.2 zend-server-ce-php-5.3 
  zend-server-ce-php-5.2 
You must choose one to install.
"php-zem-zend-server" is a virtual package provided by:
  php-5.3-zem-zend-server php-5.2-zem-zend-server 
You must choose one to install.
Note: selecting "zend-server-ce-php-5.2" instead of the
      virtual package "zend-ce"
"php-javamw-zend-server" is a virtual package provided by:
  php-5.3-javamw-zend-server php-5.2-javamw-zend-server 
You must choose one to install.
"zend-pe" is a virtual package provided by:
  zend-server-php-5.3 zend-server-php-5.2 
You must choose one to install.
"php-5.3-zend-server" is a virtual package provided by:
  php-5.3-fcgi-zend-server libapache2-mod-php-5.3-zend-server 
You must choose one to install.
The following packages will be REMOVED:
  php-5.3-dev-zend-server{p} 
0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 12.6MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 333488 files and directories currently installed.)
Removing php-5.3-dev-zend-server ...
dpkg: warning: while removing php-5.3-dev-zend-server, directory '/usr/local' not empty so not removed.
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initialising package states... Done
Writing extended state information... Done

root@peter-linux:/home/peter# aptitude update
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_GB    
Hit http://archive.canonical.com lucid Release.gpg                              
Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_GB        
Hit http://gb.archive.ubuntu.com lucid Release.gpg                              
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_GB           
Get:1 http://dl.google.com stable Release.gpg [189B]                            
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_GB
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_GB
Ign http://dl.google.com/linux/deb/ stable/main Translation-en_GB               
Hit http://security.ubuntu.com lucid-security Release                           
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_GB     
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_GB       
Hit http://gb.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_GB     
Hit http://gb.archive.ubuntu.com lucid-updates Release.gpg                      
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_GB   
Hit http://ppa.launchpad.net lucid Release.gpg                                  
Ign http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu/ lucid/main Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_GB
Ign http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_GB
Hit http://archive.canonical.com lucid Release                                  
Hit http://gb.archive.ubuntu.com lucid Release                                  
Hit http://ppa.launchpad.net lucid Release                                      
Hit http://repos.zend.com server Release.gpg                                    
Get:2 http://dl.google.com stable Release [2,544B]                              
Hit http://gb.archive.ubuntu.com lucid-updates Release                          
Hit http://security.ubuntu.com lucid-security/main Packages                     
Hit http://archive.canonical.com lucid/partner Packages                         
Hit http://gb.archive.ubuntu.com lucid/main Packages                            
Hit http://debian.wgdd.de jaunty Release.gpg                                    
Ign http://debian.wgdd.de/ubuntu/ jaunty/main Translation-en_GB                 
Hit http://ppa.launchpad.net lucid/main Packages                                
Hit http://security.ubuntu.com lucid-security/restricted Packages               
Hit http://security.ubuntu.com lucid-security/main Sources                      
Hit http://security.ubuntu.com lucid-security/restricted Sources                
Hit http://security.ubuntu.com lucid-security/universe Packages                 
Hit http://security.ubuntu.com lucid-security/universe Sources                  
Get:3 http://dl.google.com stable/main Packages [1,061B]                        
Hit http://gb.archive.ubuntu.com lucid/restricted Packages                      
Hit http://gb.archive.ubuntu.com lucid/main Sources                             
Hit http://gb.archive.ubuntu.com lucid/restricted Sources                       
Hit http://gb.archive.ubuntu.com lucid/universe Packages                        
Ign http://repos.zend.com/zend-server/deb/ server/non-free Translation-en_GB    
Hit http://gb.archive.ubuntu.com lucid/universe Sources                         
Hit http://security.ubuntu.com lucid-security/multiverse Packages               
Hit http://security.ubuntu.com lucid-security/multiverse Sources                
Ign http://debian.wgdd.de/ubuntu/ jaunty/restricted Translation-en_GB           
Ign http://debian.wgdd.de/ubuntu/ jaunty/universe Translation-en_GB  
Ign http://debian.wgdd.de/ubuntu/ jaunty/multiverse Translation-en_GB
Hit http://debian.wgdd.de jaunty Release                             
Hit http://gb.archive.ubuntu.com lucid/multiverse Packages           
Hit http://gb.archive.ubuntu.com lucid/multiverse Sources           
Hit http://gb.archive.ubuntu.com lucid-updates/main Packages        
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Packages  
Hit http://gb.archive.ubuntu.com lucid-updates/main Sources         
Hit http://repos.zend.com server Release                            
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Sources 
Hit http://gb.archive.ubuntu.com lucid-updates/universe Packages     
Hit http://gb.archive.ubuntu.com lucid-updates/universe Sources      
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Packages   
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Sources    
Hit http://debian.wgdd.de jaunty/main Packages                       
Hit http://debian.wgdd.de jaunty/restricted Packages
Hit http://debian.wgdd.de jaunty/universe Packages
Hit http://debian.wgdd.de jaunty/multiverse Packages
Ign http://repos.zend.com server/non-free Packages
Ign http://repos.zend.com server/non-free Packages
Hit http://repos.zend.com server/non-free Packages
Fetched 3,794B in 1s (2,055B/s)
Reading package lists... Done

root@peter-linux:/home/peter# aptitude install zend-server-ce-php-5.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initialising package states... Done
The following packages are BROKEN:
  php-5.3-mysql-zend-server php-5.3-mysqli-zend-server 
  php-5.3-pdo-mysql-zend-server 
The following NEW packages will be installed:
  help-zend-server-ce{a} libapache2-mod-php-5.3-zend-server{a} 
  libframework1-zend-server{a} libicu36{a} libkrb53{a} libmcrypt4{a} 
  liboci-us-locales-zend{a} libpng3{a} libpq4{a} lighttpd-zend-server{a} 
  php-5.3-bcmath-zend-server{a} php-5.3-bz2-zend-server{a} 
  php-5.3-calendar-zend-server{a} 
  php-5.3-common-extensions-zend-server-ce{a} php-5.3-ctype-zend-server{a} 
  php-5.3-curl-zend-server{a} php-5.3-data-cache-zend-server{a} 
  php-5.3-debugger-zend-server{a} php-5.3-dev-zend-server{a} 
  php-5.3-exif-zend-server{a} php-5.3-fcgi-zend-server{a} 
  php-5.3-fileinfo-zend-server{a} php-5.3-ftp-zend-server{a} 
  php-5.3-gd-zend-server{a} php-5.3-gettext-zend-server{a} 
  php-5.3-gui-zend-server{a} php-5.3-imap-zend-server{a} 
  php-5.3-intl-zend-server{a} php-5.3-json-zend-server{a} 
  php-5.3-ldap-zend-server{a} php-5.3-mbstring-zend-server{a} 
  php-5.3-mcrypt-zend-server{a} php-5.3-oci8-zend-server{a} 
  php-5.3-optimizer-plus-zend-server{a} php-5.3-pdo-oci-zend-server{a} 
  php-5.3-pdo-pgsql-zend-server{a} php-5.3-pgsql-zend-server{a} 
  php-5.3-phar-zend-server{a} php-5.3-posix-zend-server{a} 
  php-5.3-soap-zend-server{a} php-5.3-sockets-zend-server{a} 
  php-5.3-sqlite-zend-server{a} php-5.3-tidy-zend-server{a} 
  php-5.3-tokenizer-zend-server{a} php-5.3-xmlreader-zend-server{a} 
  php-5.3-xmlwriter-zend-server{a} php-5.3-xsl-zend-server{a} 
  php-5.3-zem-zend-server{a} php-5.3-zend-extensions-ce{a} 
  php-5.3-zendutils-zend-server{a} php-5.3-zip-zend-server{a} zend-base{a} 
  zend-server-ce-php-5.3 zend-server-doc{a} zend-server-framework{a} 
0 packages upgraded, 58 newly installed, 0 to remove and 1 not upgraded.
Need to get 48.3MB/51.9MB of archives. After unpacking 204MB will be used.
The following packages have unmet dependencies:
  php-5.3-mysqli-zend-server: Depends: libmysqlclient15off (>= 5.0.27-1) but it is not installable
  php-5.3-pdo-mysql-zend-server: Depends: libmysqlclient15off (>= 5.0.27-1) but it is not installable
  php-5.3-mysql-zend-server: Depends: libmysqlclient15off (>= 5.0.27-1) but it is not installable
The following actions will resolve these dependencies:

Keep the following packages at their current version:
help-zend-server-ce [Not Installed]
php-5.3-common-extensions-zend-server-ce [Not Installed]
php-5.3-mysql-zend-server [Not Installed]
php-5.3-mysqli-zend-server [Not Installed]
php-5.3-pdo-mysql-zend-server [Not Installed]
zend-server-ce-php-5.3 [Not Installed]

Score is -9836

Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
  php-5.3-dev-zend-server{a} 
0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/3,602kB of archives. After unpacking 12.6MB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Selecting previously deselected package php-5.3-dev-zend-server.
(Reading database ... 333027 files and directories currently installed.)
Unpacking php-5.3-dev-zend-server (from .../php-5.3-dev-zend-server_5.3.2_i386.deb) ...
Setting up php-5.3-dev-zend-server (5.3.2) ...
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initialising package states... Done
Writing extended state information... Done

root@peter-linux:/home/peter# /usr/local/zend/bin/support_tool.sh
bash: /usr/local/zend/bin/support_tool.sh: No such file or directory
root@peter-linux:/home/peter# 
I hope that means more to you than it means to me!

Cheers


Peter
http://www.peredur.net

Post Reply