Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't view index.php of Zend Framework 1.0 after setting up Apache/Host requirements?
    primarykey
    data
    text
    <p><strong>UPDATE</strong>: the following error is coming up in the Apache error logs...</p> <pre><code>[Sat Dec 08 16:41:39 2012] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/Library/WebServer/Documents/quickstart/library:.:/php/includes:/Users/markmcdonnell/Dropbox/Library/PHP/ZendFramework-1.12.0/library') in /Library/WebServer/Documents/quickstart/public/index.php on line 18 </code></pre> <p>I'm using Mac OSX 10.8.2 (Mountain Lion) and I'm having problems getting the Zend framework set-up and running (just the basic QuickStart).</p> <p>I'm using Apache 2.2.22</p> <p>My localhost files are accessible from /Library/WebServer/Documents</p> <p>I have PHP 5.3.15 running as well.</p> <p>I've created a new project via the command line (using the zf.sh file) called 'quickstart' (as per the section on the Zend website recommends) and that is stored here: /Library/WebServer/Documents/quickstart</p> <p>I've followed both the official Zend website instructions and also an online book about installing Zend: <a href="http://www.survivethedeepend.com/zendframeworkbook/en/1.0/creating.a.local.domain.using.apache.virtual.hosts" rel="nofollow">http://www.survivethedeepend.com/zendframeworkbook/en/1.0/creating.a.local.domain.using.apache.virtual.hosts</a></p> <p>My php.ini (<code>/private/etc/php.ini</code>) file has been updated to include the path to the <code>library</code> folder inside the ZendFramework directory...</p> <pre><code>include_path = ".:/php/includes:/Users/&lt;home&gt;/Dropbox/Library/PHP/ZendFramework-1.12.0/library" </code></pre> <p>I've updated <code>/etc/apache2/httpd.conf</code> so it includes...</p> <pre><code># # Use name-based virtual hosting. # NameVirtualHost *:80 # Ensure "localhost" is preserved unchanged pointed # to the default document root for our system. &lt;VirtualHost *:80&gt; ServerName localhost DocumentRoot /Library/WebServer/Documents &lt;/VirtualHost&gt; # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any &lt;VirtualHost&gt; block. # &lt;VirtualHost *:80&gt; ServerName quickstart.local DocumentRoot /Library/WebServer/Documents/quickstart/public SetEnv APPLICATION_ENV "development" &lt;Directory /Library/WebServer/Documents/quickstart/public&gt; DirectoryIndex index.php AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>...I've also updated <code>/etc/hosts</code> so it includes...</p> <pre><code>127.0.0.1 localhost 127.0.0.1 quickstart.local </code></pre> <p>I'm restarting Apache using <code>sudo apachectl graceful</code> (I've also used <code>sudo apachectl restart</code>)</p> <p>So if I try and now access <code>http://localhost/</code> I see my <code>/Library/WebServer/Documents</code> directory and I can see PHP is running still with no problems. But if I try and access <code>http://quickstart.local/</code> I just get an empty page?</p> <p>Can any one advise as to what the problem might be, what I'm missing and what I can do to get the initial 'welcome' page to display.</p> <p>I'm sure I'm just missing someone small, but it's obviously causing problem enough for the basic page not to show.</p> <p>Thanks.</p> <p>Mark</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload