Ticket #52 (new enhancement)

Opened 2 years ago

Last modified 2 weeks ago

Can't install on lighttp

Reported by: proboszcz Owned by:
Priority: minor Milestone:
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

  Changed 2 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.

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

  • keywords install, lightthd, redirect, setup added
  • component changed from unspecified to installation

in reply to: ↑ 2   Changed 2 weeks 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.

  Changed 2 weeks 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

Note: See TracTickets for help on using tickets.