Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #52 (closed improvement: worksforme)

Opened 8 years ago

Last modified 5 years ago

Can't install on lighttp

Reported by: proboszcz Owned by:
Priority: minor Milestone: 2.4
Component: installation Version:
Keywords: install, lightthd, redirect, setup Cc:

Description

Trying to install using lighttpd and not apache.
can't
1) Understand why the doc specifies path like cake/phtagr when the install puts cake under phtagr (ie. phtagr/cake)
2) Find any file in the latest distribution called setup (.php) to do the setup

thanks
Ted Proboszcz

Change History

comment:1 Changed 8 years ago by sebastian

  • Summary changed from Can't install to Can't install on lighttp

Thank you for trying phTagr!

To 1) Apologize if HowToInstall is not clear. I updated the section Download cakePHP and phTagr. At the end your files should be organized as following:

/document_root <-- Mostly called 'cake'. E.g. /var/www/cake or ~/.public_html/cake
    /cake   <-- CakePHP framework
    /app    <-- Default name for the application, in this case it contains phtagr
    /phtagr <-- Alternative application's name. Requires modifications in .htaccess
    /docs
    /vendors
    /index.php
    /.htaccess

See http://book.cakephp.org/view/329/Getting-Cake and http://book.cakephp.org/view/19/CakePHP-Folder-Structure. So cake/phtagr is document_root/phtagr.

To 2) I haven't tested phtagr with lighttpd yet. But in principle it should work and there should be some pages of cakePHP running with lighttpd:

http://www.guyrutenberg.com/2009/01/24/configuring-lighttpd-for-cakephp/
http://bakery.cakephp.org/articles/view/lighttpd-and-cakephp-setup-in-subdirectories

The "setup problem" is that "setup" is a redirection problem. Therefore, your redirection does not work probably. However, cake should also work without redirection (which I have not tested yet). See http://book.cakephp.org/view/333/A-Note-on-mod_rewrite

Thank you very much for your report and I'm looking forward to see any success running phTagr with lighttpd! If you are able to run phTagr with lighttpd please let me know your howto to publish it on this wiki.

comment:2 follow-up: ↓ 3 Changed 8 years ago by sebastian

  • Keywords install, lightthd, redirect, setup added
  • Component changed from unspecified to installation

comment:3 in reply to: ↑ 2 Changed 6 years ago by vodmat

Hello,

I am trying to install phtagr with lighttpd and can't make it work too. The virtual host root is as:

/var/www/phtagr

... config index.php tmp users

`-- webroot

I added to lighttpd.conf the following:

$HTTPhost? == "some of my dns name" {

server.document-root = "/var/www/phtagr"
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
url.rewrite-once = (

"/(css|files|img|js|stats)/(.*)$" => "/$1/$2",
"
/(.*)$" => "/index.php?url=$1",

)

}

The welcome setup page is available (with all css etc...) but the next page ("continue") ends to a 500 error. Any idea ? Any reference pointer for installing tagphr with lighttpd ?

Thanks in advance for any help.

comment:4 Changed 6 years ago by sebastian

Please try following configuration

$HTTP["host"] =~ "some of your dns name" {
        server.document-root = "/var/www/phtagr/webroot"
        url.rewrite = (
                "(css|files|img|js)/(.*)" => "/$1/$2",
                "^([^\?]*)(\?(.+))?$" => "/index.php?url=$1&$3",
        )
}

Further you might set debug level to 2 (in config/core.php) for more details or have a look at tmp/log/*.log files for error messages.

Please report further problems or success.

Xemle

comment:5 Changed 6 years ago by sebastian

  • Milestone set to 2.4

comment:6 Changed 5 years ago by sebastian

  • Status changed from new to closed
  • Resolution set to worksforme

Closed due inactivity

Note: See TracTickets for help on using tickets.