Jump to content

SmartDuck

Member Since 27 Sep 2012
Offline Last Active Yesterday, 10:46 PM
-----

Topics I've Started

Online learning, Udemy discount

17 May 2017 - 08:38 PM

I love to learn all kinds of stuff on Udemy or edX.

Udemy has a nice discount now.... Learn fest https://www.udemy.com/courses(no I have no stocks ;) )

Lighttpd problems

27 April 2017 - 08:14 PM

I don't know if this is an Bodhi issue or ubuntu. But I'm stuck... I'm trying to setup a lighttpd webserver with php and cgi or fastcgi. Tried a lot of things:

- reinstalled all packages lighttpd, php7.0, php7.0-fpm, php7.0-cgi, php7.0-cli, php7.0-gd

- check the rights on the dirs and files

- checked the owner of the files

etc...

Php script are executed only in the root dir, still keeping a 403 error on subfolders, looks like the module is never loaded for lighttpd....  lighttpd-enable-module only gives the message Ignoring unknown module: fastcgi-php

 

My lighttpd.config:

server.port = 80
server.modules = (
        "mod_access",
        "mod_accesslog",
        "mod_fastcgi"
)
server.document-root = "/var/www/html/"
server.errorlog   = "/var/log/lighttpd/error.log"
server.username = "www-data"
server.groupname = "www-data"
server.pid-file = "/var/run/lighttpd.pid"

accesslog.filename = "/var/log/lighttpd/access.log"

## Enable/Disable Directory Listings
dir-listing.encoding = "utf-8"
dir-listing.activate = "enable"
dir-listing.hide-dotfiles = "enable"

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi")

## Enable PHP and Python
fastcgi.server = ( ".php" => ((
	"bin-path" => "/usr/bin/php-cgi",
	"socket" => "/tmp/php.socket"
))) 

index-file.names = ( "index.php", "index.html" )

##  MimeType handling
## -------------------
##
## Use the "Content-Type" extended attribute to obtain mime type if
## possible
##
mimetype.use-xattr        = "disable" 

##
## mimetype mapping
##
mimetype.assign             = (
  ".pdf"          =>      "application/pdf",
  ".zip"          =>      "application/zip",
  ".mp3"          =>      "audio/mpeg",
  ".gif"          =>      "image/gif",
  ".jpg"          =>      "image/jpeg",
  ".jpeg"         =>      "image/jpeg",
  ".png"          =>      "image/png",
  ".css"          =>      "text/css",
  ".html"         =>      "text/html",
  ".htm"          =>      "text/html",
  ".js"           =>      "text/javascript",
  ".asc"          =>      "text/plain",
  ".c"            =>      "text/plain",
  ".cpp"          =>      "text/plain",
  ".log"          =>      "text/plain",
  ".conf"         =>      "text/plain",
  ".text"         =>      "text/plain",
  ".txt"          =>      "text/plain",
  ".dtd"          =>      "text/xml",
  ".xml"          =>      "text/xml",
  ".mpeg"         =>      "video/mpeg",
  ".mpg"          =>      "video/mpeg",
  ".mov"          =>      "video/quicktime",
  ".avi"          =>      "video/x-msvideo",
  ".wmv"          =>      "video/x-ms-wmv",
# make the default mime type application/octet-stream.
  ""              =>      "application/octet-stream",
)

Packaging Elementary apps

07 April 2017 - 08:11 PM

Hi,

 

I'm going to try to write a tool to configurate my Corsair keyboard with python and efl.

It will be a simple tool to configurate the led layout and intensity.

If I succeed I want to share this tool.

 

Is there a simple way to package elementary applications?

 

 

 

Back to Bodhi

27 March 2017 - 08:02 PM

Last year was a bit of distro hopping, tried Debian, Linux Lite, Antergos... Bodhi 3.x had issues with my Dell E4300.

This evening I installed Bodhi 4.1.0. Love the simplicity, feels stable so far, I will keep it this way for a while.

4.1.0 feels good, thanx Jeff!