Webzash with Ubuntu+lighttpd+php5+Mysql+phpmyadmin+Sqlite3+php5-sqlit not working

316 views
Skip to first unread message

Ramkrishna Mondal

unread,
Aug 25, 2015, 1:26:05 AM8/25/15
to webzash-help
Webzash with Bitnami LAMP Stack is working just fine but on the same machine it is not working with Ubuntu+lighttpd+php5+Mysql+phpmyadmin+Sqlite3+php5-sqlit. 

Showing this error msg :

"Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/webzash/lib/Cake/Cache/Cache.php on line 323

Warning: /var/www/webzash/app/tmp/cache/persistent/ is not writable in /var/www/webzash/lib/Cake/Cache/Engine/FileEngine.php on line 385

Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/webzash/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/webzash/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/webzash/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/webzash/lib/Cake/Core/Configure.php(72): include('/var/www/webzas...') #3 /var/www/webzash/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/webzash/app/webroot/index.php(94): include('/var/www/webzas...') #5 /var/www/webzash/index.php(41): require('/var/www/webzas...') #6 {main} thrown in /var/www/webzash/lib/Cake/Cache/Cache.php on line 181 "



If i run sudo chmod 777 -R /var/www/webzash   , it is showing NOT Found! Other php+mysql based apps like "opensource POS" and "ice-HRM" are running just fine with lighttpd.

Where I am doing wrong ? 

Even tried fresh copy of webzash and installed Cakephp + Cakephp Scripts without luck.

 Does  webzash only works with Apache ?


Prashant Shah

unread,
Aug 25, 2015, 1:33:02 AM8/25/15
to Ramkrishna Mondal, webzash-help
Hi,
Why do a chmod 777 on /var/www/webzash ??

You only need the /var/www/webzash/app/tmp/cache/persistent/ folder to
be writable.

> If i run sudo chmod 777 -R /var/www/webzash

There is some other issue. Is this a physical server that you are
using or a remote one ?

Can you delete the entire webzash setup and try doing it again.

Check the user under which you web server is running and chown the
entire webzash directory to that user rather than using chmod.

> Where I am doing wrong ?
>
> Even tried fresh copy of webzash and installed Cakephp + Cakephp Scripts
> without luck.
>
> Does webzash only works with Apache ?

Yes I did the development on apache.

Prashant Shah

unread,
Aug 25, 2015, 1:35:08 AM8/25/15
to Ramkrishna Mondal, webzash-help
Hi,

On Tue, Aug 25, 2015 at 11:02 AM, Prashant Shah <pshah....@gmail.com> wrote:
> Hi,
>
> On Tue, Aug 25, 2015 at 10:52 AM, Ramkrishna Mondal
> <mondal.r...@gmail.com> wrote:
>> Webzash with Bitnami LAMP Stack is working just fine but on the same machine
>> it is not working with
>> Ubuntu+lighttpd+php5+Mysql+phpmyadmin+Sqlite3+php5-sqlit.

https://rayed.com/wordpress/?p=297

If you can get cakephp working with lighttpd then webzash should also work.
Message has been deleted

Ramkrishna Mondal

unread,
Aug 25, 2015, 3:21:06 AM8/25/15
to webzash-help, mondal.r...@gmail.com
Oh no. when i try to log-in it says :

Errors

The request has been black-holed

Error: The requested address '/webzash/wzusers/login?url=wzusers%2Flogin%3Furl%3Dwzusers%2Flogin' was not found on this server.

Stack Trace




Prashant Shah

unread,
Aug 25, 2015, 3:24:22 AM8/25/15
to Ramkrishna Mondal, webzash-help
Hi,

On Tue, Aug 25, 2015 at 12:50 PM, Ramkrishna Mondal
<mondal.r...@gmail.com> wrote:
> Oh no. when i try to log-in it says :
>
> Errors
>
> The request has been black-holed

Its a security feature of cakephp. If the page has been inactive for
sometime or you resubmit the same page then you get that error. Just
reload the page and it will be ok.

Ramkrishna Mondal

unread,
Aug 25, 2015, 3:30:59 AM8/25/15
to webzash-help, mondal.r...@gmail.com
Everytime i am trying to log-in .....it,is showing this error.  Even after fresh install of webzash.  

Prashant Shah

unread,
Aug 25, 2015, 3:38:09 AM8/25/15
to Ramkrishna Mondal, webzash-help
Hi,

On Tue, Aug 25, 2015 at 12:58 PM, Ramkrishna Mondal
<mondal.r...@gmail.com> wrote:
> Everytime i am trying to log-in .....it,is showing this error. Even after
> fresh install of webzash.

Some issues with sesssions and lighttpd.

Since its your local machine can you try with apache first.

Another way is to disable CSRF protection for testing.

Try adding

$this->Security->csrfCheck = false;

in app/Plugin/Webzash/Controller/WebzashAppController.php -> line no. 80 after

"function beforeFilter() {"

Regards.

Prashant Shah

unread,
Aug 25, 2015, 3:45:11 AM8/25/15
to Ramkrishna Mondal, webzash-help
Hi,

On Tue, Aug 25, 2015 at 1:07 PM, Prashant Shah <pshah....@gmail.com> wrote:
> Hi,
>
> On Tue, Aug 25, 2015 at 12:58 PM, Ramkrishna Mondal
> <mondal.r...@gmail.com> wrote:
>> Everytime i am trying to log-in .....it,is showing this error. Even after
>> fresh install of webzash.

I have not tested it with lighttpd so cant say whats the issue.

Maybe next version I will validate it with lighttpd.

Regards.

Ramkrishna Mondal

unread,
Aug 25, 2015, 10:11:48 AM8/25/15
to webzash-help, mondal.r...@gmail.com
Now, it seems to be fully working by editting the lighttpd.conf file slightly differently. Will let you know if any problem arises.

What I have used : LXLE_LS 14.04 (It is based on ubuntu / lubuntu LTS, has inbuilt Lighty+Mysql+phpmyadmin+PHP5 support + some php based Apps) + sqlite3 + php5-sqlite +editted lighttpd.conf +WEBZASH

My Regards.
lighttpd.conf

Ramkrishna Mondal

unread,
Aug 25, 2015, 10:11:48 AM8/25/15
to webzash-help, mondal.r...@gmail.com


On Tuesday, August 25, 2015 at 1:15:11 PM UTC+5:30, Prashant Shah wrote:
Hi,

On Tue, Aug 25, 2015 at 1:07 PM, Prashant Shah <pshah....@gmail.com> wrote:
> Hi,
>
> On Tue, Aug 25, 2015 at 12:58 PM, Ramkrishna Mondal
> <mondal.r...@gmail.com> wrote:
>> Everytime i am trying to log-in .....it,is showing this error.  Even after
>> fresh install of webzash.

I have not tested it with lighttpd so cant say whats the issue.

Maybe next version I will validate it with lighttpd.

Please validate next version with "Lighttpd"


REGARDS.
Message has been deleted

Ramkrishna Mondal

unread,
Aug 26, 2015, 8:39:00 AM8/26/15
to webzash-help, mondal.r...@gmail.com
 On Lighttpd , WEBZASH (with cheque no etc field enabled ) is not letting me delete any 'Ledger A/C' , though I can Create or modify any ledger A/C .  it shows... Error....METOD NOT ALLOWED .

localhost

Webzash | Errors

$Dispatcher->dispatch(
    new CakeRequest(),
    new CakeResponse()
);
object(CakeRequest) {
	params => array(
		'plugin' => 'webzash',
		'controller' => 'ledgers',
		'action' => 'delete',
		'named' => array(),
		'pass' => array(
			(int) 0 => '6'
		),
		'models' => array(
			'Wzaccount' => array(
				[maximum depth reached]
			),
			'Setting' => array(
				[maximum depth reached]
			),
			'Entrytype' => array(
				[maximum depth reached]
			)
		)
	)
	data => array(
		'_Token' => array(
			'key' => '8d99e5fe3298ca60d7b3fdfd40a37c04912a0988',
			'fields' => '10894a9f325832a3426ccc7866039e5cf3314301%3A',
			'unlocked' => ''
		)
	)
	query => array(
		'url' => ''
	)
	url => 'ledgers/delete/6'
	base => '/webzash'
	webroot => '/webzash/'
	here => '/webzash/ledgers/delete/6'
	[protected] _detectors => array(
		'get' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'GET'
		),
		'post' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'POST'
		),
		'put' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'PUT'
		),
		'delete' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'DELETE'
		),
		'head' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'HEAD'
		),
		'options' => array(
			'env' => 'REQUEST_METHOD',
			'value' => 'OPTIONS'
		),
		'ssl' => array(
			'env' => 'HTTPS',
			'value' => (int) 1
		),
		'ajax' => array(
			'env' => 'HTTP_X_REQUESTED_WITH',
			'value' => 'XMLHttpRequest'
		),
		'flash' => array(
			'env' => 'HTTP_USER_AGENT',
			'pattern' => '/^(Shockwave|Adobe) Flash/'
		),
		'mobile' => array(
			'env' => 'HTTP_USER_AGENT',
			'options' => array(
				[maximum depth reached]
			)
		),
		'requested' => array(
			'param' => 'requested',
			'value' => (int) 1
		)
	)
	[protected] _input => ''
}
object(CakeResponse) {
	[protected] _statusCodes => array(
		(int) 100 => 'Continue',
		(int) 101 => 'Switching Protocols',
		(int) 200 => 'OK',
		(int) 201 => 'Created',
		(int) 202 => 'Accepted',
		(int) 203 => 'Non-Authoritative Information',
		(int) 204 => 'No Content',
		(int) 205 => 'Reset Content',
		(int) 206 => 'Partial Content',
		(int) 300 => 'Multiple Choices',
		(int) 301 => 'Moved Permanently',
		(int) 302 => 'Found',
		(int) 303 => 'See Other',
		(int) 304 => 'Not Modified',
		(int) 305 => 'Use Proxy',
		(int) 307 => 'Temporary Redirect',
		(int) 400 => 'Bad Request',
		(int) 401 => 'Unauthorized',
		(int) 402 => 'Payment Required',
		(int) 403 => 'Forbidden',
		(int) 404 => 'Not Found',
		(int) 405 => 'Method Not Allowed',
		(int) 406 => 'Not Acceptable',
		(int) 407 => 'Proxy Authentication Required',
		(int) 408 => 'Request Time-out',
		(int) 409 => 'Conflict',
		(int) 410 => 'Gone',
		(int) 411 => 'Length Required',
		(int) 412 => 'Precondition Failed',
		(int) 413 => 'Request Entity Too Large',
		(int) 414 => 'Request-URI Too Large',
		(int) 415 => 'Unsupported Media Type',
		(int) 416 => 'Requested range not satisfiable',
		(int) 417 => 'Expectation Failed',
		(int) 500 => 'Internal Server Error',
		(int) 501 => 'Not Implemented',
		(int) 502 => 'Bad Gateway',
		(int) 503 => 'Service Unavailable',
		(int) 504 => 'Gateway Time-out',
		(int) 505 => 'Unsupported Version'
	)
	[protected] _mimeTypes => array(
		'html' => array(
			(int) 0 => 'text/html',
			(int) 1 => '*/*'
		),
		'json' => 'application/json',
		'xml' => array(
			(int) 0 => 'application/xml',
			(int) 1 => 'text/xml'
		),
		'rss' => 'application/rss+xml',
		'ai' => 'application/postscript',
		'bcpio' => 'application/x-bcpio',
		'bin' => 'application/octet-stream',
		'ccad' => 'application/clariscad',
		'cdf' => 'application/x-netcdf',
		'class' => 'application/octet-stream',
		'cpio' => 'application/x-cpio',
		'cpt' => 'application/mac-compactpro',
		'csh' => 'application/x-csh',
		'csv' => array(
			(int) 0 => 'text/csv',
			(int) 1 => 'application/vnd.ms-excel',
			(int) 2 => 'text/plain'
		),
		'dcr' => 'application/x-director',
		'dir' => 'application/x-director',
		'dms' => 'application/octet-stream',
		'doc' => 'application/msword',
		'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
		'drw' => 'application/drafting',
		'dvi' => 'application/x-dvi',
		'dwg' => 'application/acad',
		'dxf' => 'application/dxf',
		'dxr' => 'application/x-director',
		'eot' => 'application/vnd.ms-fontobject',
		'eps' => 'application/postscript',
		'exe' => 'application/octet-stream',
		'ez' => 'application/andrew-inset',
		'flv' => 'video/x-flv',
		'gtar' => 'application/x-gtar',
		'gz' => 'application/x-gzip',
		'bz2' => 'application/x-bzip',
		'7z' => 'application/x-7z-compressed',
		'hdf' => 'application/x-hdf',
		'hqx' => 'application/mac-binhex40',
		'ico' => 'image/x-icon',
		'ips' => 'application/x-ipscript',
		'ipx' => 'application/x-ipix',
		'js' => 'application/javascript',
		'latex' => 'application/x-latex',
		'lha' => 'application/octet-stream',
		'lsp' => 'application/x-lisp',
		'lzh' => 'application/octet-stream',
		'man' => 'application/x-troff-man',
		'me' => 'application/x-troff-me',
		'mif' => 'application/vnd.mif',
		'ms' => 'application/x-troff-ms',
		'nc' => 'application/x-netcdf',
		'oda' => 'application/oda',
		'otf' => 'font/otf',
		'pdf' => 'application/pdf',
		'pgn' => 'application/x-chess-pgn',
		'pot' => 'application/vnd.ms-powerpoint',
		'pps' => 'application/vnd.ms-powerpoint',
		'ppt' => 'application/vnd.ms-powerpoint',
		'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
		'ppz' => 'application/vnd.ms-powerpoint',
		'pre' => 'application/x-freelance',
		'prt' => 'application/pro_eng',
		'ps' => 'application/postscript',
		'roff' => 'application/x-troff',
		'scm' => 'application/x-lotusscreencam',
		'set' => 'application/set',
		'sh' => 'application/x-sh',
		'shar' => 'application/x-shar',
		'sit' => 'application/x-stuffit',
		'skd' => 'application/x-koan',
		'skm' => 'application/x-koan',
		'skp' => 'application/x-koan',
		'skt' => 'application/x-koan',
		'smi' => 'application/smil',
		'smil' => 'application/smil',
		'sol' => 'application/solids',
		'spl' => 'application/x-futuresplash',
		'src' => 'application/x-wais-source',
		'step' => 'application/STEP',
		'stl' => 'application/SLA',
		'stp' => 'application/STEP',
		'sv4cpio' => 'application/x-sv4cpio',
		'sv4crc' => 'application/x-sv4crc',
		'svg' => 'image/svg+xml',
		'svgz' => 'image/svg+xml',
		'swf' => 'application/x-shockwave-flash',
		't' => 'application/x-troff',
		'tar' => 'application/x-tar',
		'tcl' => 'application/x-tcl',
		'tex' => 'application/x-tex',
		'texi' => 'application/x-texinfo',
		'texinfo' => 'application/x-texinfo',
		'tr' => 'application/x-troff',
		'tsp' => 'application/dsptype',
		'ttc' => 'font/ttf',
		'ttf' => 'font/ttf',
		'unv' => 'application/i-deas',
		'ustar' => 'application/x-ustar',
		'vcd' => 'application/x-cdlink',
		'vda' => 'application/vda',
		'xlc' => 'application/vnd.ms-excel',
		'xll' => 'application/vnd.ms-excel',
		'xlm' => 'application/vnd.ms-excel',
		'xls' => 'application/vnd.ms-excel',
		'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
		'xlw' => 'application/vnd.ms-excel',
		'zip' => 'application/zip',
		'aif' => 'audio/x-aiff',
		'aifc' => 'audio/x-aiff',
		'aiff' => 'audio/x-aiff',
		'au' => 'audio/basic',
		'kar' => 'audio/midi',
		'mid' => 'audio/midi',
		'midi' => 'audio/midi',
		'mp2' => 'audio/mpeg',
		'mp3' => 'audio/mpeg',
		'mpga' => 'audio/mpeg',
		'ogg' => 'audio/ogg',
		'oga' => 'audio/ogg',
		'spx' => 'audio/ogg',
		'ra' => 'audio/x-realaudio',
		'ram' => 'audio/x-pn-realaudio',
		'rm' => 'audio/x-pn-realaudio',
		'rpm' => 'audio/x-pn-realaudio-plugin',
		'snd' => 'audio/basic',
		'tsi' => 'audio/TSP-audio',
		'wav' => 'audio/x-wav',
		'aac' => 'audio/aac',
		'asc' => 'text/plain',
		'c' => 'text/plain',
		'cc' => 'text/plain',
		'css' => 'text/css',
		'etx' => 'text/x-setext',
		'f' => 'text/plain',
		'f90' => 'text/plain',
		'h' => 'text/plain',
		'hh' => 'text/plain',
		'htm' => array(
			(int) 0 => 'text/html',
			(int) 1 => '*/*'
		),
		'ics' => 'text/calendar',
		'm' => 'text/plain',
		'rtf' => 'text/rtf',
		'rtx' => 'text/richtext',
		'sgm' => 'text/sgml',
		'sgml' => 'text/sgml',
		'tsv' => 'text/tab-separated-values',
		'tpl' => 'text/template',
		'txt' => 'text/plain',
		'text' => 'text/plain',
		'avi' => 'video/x-msvideo',
		'fli' => 'video/x-fli',
		'mov' => 'video/quicktime',
		'movie' => 'video/x-sgi-movie',
		'mpe' => 'video/mpeg',
		'mpeg' => 'video/mpeg',
		'mpg' => 'video/mpeg',
		'qt' => 'video/quicktime',
		'viv' => 'video/vnd.vivo',
		'vivo' => 'video/vnd.vivo',
		'ogv' => 'video/ogg',
		'webm' => 'video/webm',
		'mp4' => 'video/mp4',
		'm4v' => 'video/mp4',
		'f4v' => 'video/mp4',
		'f4p' => 'video/mp4',
		'm4a' => 'audio/mp4',
		'f4a' => 'audio/mp4',
		'f4b' => 'audio/mp4',
		'gif' => 'image/gif',
		'ief' => 'image/ief',
		'jpg' => 'image/jpeg',
		'jpeg' => 'image/jpeg',
		'jpe' => 'image/jpeg',
		'pbm' => 'image/x-portable-bitmap',
		'pgm' => 'image/x-portable-graymap',
		'png' => 'image/png',
		'pnm' => 'image/x-portable-anymap',
		'ppm' => 'image/x-portable-pixmap',
		'ras' => 'image/cmu-raster',
		'rgb' => 'image/x-rgb',
		'tif' => 'image/tiff',
		'tiff' => 'image/tiff',
		'xbm' => 'image/x-xbitmap',
		'xpm' => 'image/x-xpixmap',
		'xwd' => 'image/x-xwindowdump',
		'ice' => 'x-conference/x-cooltalk',
		'iges' => 'model/iges',
		'igs' => 'model/iges',
		'mesh' => 'model/mesh',
		'msh' => 'model/mesh',
		'silo' => 'model/mesh',
		'vrml' => 'model/vrml',
		'wrl' => 'model/vrml',
		'mime' => 'www/mime',
		'pdb' => 'chemical/x-pdb',
		'xyz' => 'chemical/x-pdb',
		'javascript' => 'application/javascript',
		'form' => 'application/x-www-form-urlencoded',
		'file' => 'multipart/form-data',
		'xhtml' => array(
			(int) 0 => 'application/xhtml+xml',
			(int) 1 => 'application/xhtml',
			(int) 2 => 'text/xhtml'
		),
		'xhtml-mobile' => 'application/vnd.wap.xhtml+xml',
		'atom' => 'application/atom+xml',
		'amf' => 'application/x-amf',
		'wap' => array(
			(int) 0 => 'text/vnd.wap.wml',
			(int) 1 => 'text/vnd.wap.wmlscript',
			(int) 2 => 'image/vnd.wap.wbmp'
		),
		'wml' => 'text/vnd.wap.wml',
		'wmlscript' => 'text/vnd.wap.wmlscript',
		'wbmp' => 'image/vnd.wap.wbmp',
		'woff' => 'application/x-font-woff',
		'webp' => 'image/webp',
		'appcache' => 'text/cache-manifest',
		'manifest' => 'text/cache-manifest',
		'htc' => 'text/x-component',
		'rdf' => 'application/xml',
		'crx' => 'application/x-chrome-extension',
		'oex' => 'application/x-opera-extension',
		'xpi' => 'application/x-xpinstall',
		'safariextz' => 'application/octet-stream',
		'webapp' => 'application/x-web-app-manifest+json',
		'vcf' => 'text/x-vcard',
		'vtt' => 'text/vtt',
		'mkv' => 'video/x-matroska',
		'pkpass' => 'application/vnd.apple.pkpass'
	)
	[protected] _protocol => 'HTTP/1.1'
	[protected] _status => (int) 200
	[protected] _contentType => 'text/html'
	[protected] _headers => array()
	[protected] _body => null
	[protected] _file => null
	[protected] _fileRange => null
	[protected] _charset => 'UTF-8'
	[protected] _cacheDirectives => array()
	[protected] _cookies => array()
}

Prashant Shah

unread,
Aug 26, 2015, 8:41:25 AM8/26/15
to Ramkrishna Mondal, webzash-help
Hi,

On Wed, Aug 26, 2015 at 4:19 PM, Ramkrishna Mondal
<mondal.r...@gmail.com> wrote:
> On Lighttpd , WEBZASH (with cheque no etc field enabled ) is not letting me
> delete any 'Ledger A/C' , though I can Create or modify any ledger A/C . it
> shows... Error....METOD NOT ALLOWED .

Comment out the following lines (201 to 204)

https://github.com/prashants/webzash/blob/master/Controller/LedgersController.php#L201:L204

Ramkrishna Mondal

unread,
Aug 26, 2015, 1:17:22 PM8/26/15
to webzash-help, mondal.r...@gmail.com
Sorry to inform that, it's still not working. I think the problem is related to Lighttpd configuration . 
Before showing the errors, the server is hanging for a second or two. 
It would have been better if you could check with lighttpd, meanwhile i shall try to find a solution.


REGARDS.

Ramkrishna Mondal

unread,
Aug 27, 2015, 7:03:34 AM8/27/15
to webzash-help, mondal.r...@gmail.com
UPDATE: 

1.Tested with both 'Bitnami WAMP' and 'WAMP(generic)' on win7, working just fine.
2. With Bitnami LAMP on Linux working fine.
3. With Lighttpd on linux ...  deleting an existing  Entry/ Account is not possible, other features seems to be working normally.
4. Newly installed WEBZASH can not use an existing sql db...... error "tables already exist" on all the above environments.

REGARDS.

Prashant Shah

unread,
Aug 27, 2015, 7:05:08 AM8/27/15
to Ramkrishna Mondal, webzash-help
Hi,

On Thu, Aug 27, 2015 at 3:12 PM, Ramkrishna Mondal
<mondal.r...@gmail.com> wrote:
> 4. Newly installed WEBZASH can not use an existing sql db...... error
> "tables already exist" on all the above environments.

You need to add a account config and not create a new account to use
an existing db

Ramkrishna Mondal

unread,
Aug 29, 2015, 2:16:23 AM8/29/15
to webzash-help, mondal.r...@gmail.com
Can't understand how to add account config. Could you PLEASE write the detail steps.

Regards.

Prashant Shah

unread,
Aug 29, 2015, 2:19:33 AM8/29/15
to Ramkrishna Mondal, webzash-help
On Sat, Aug 29, 2015 at 11:23 AM, Ramkrishna Mondal
<mondal.r...@gmail.com> wrote:
> Can't understand how to add account config. Could you PLEASE write the
> detail steps.

Administer > Manage accounts > Add account config
Reply all
Reply to author
Forward
0 new messages