| Anonymous | Login | Signup for a new account | 2010-09-08 00:19 UTC |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0001283 | [SysCP] Configfiles | crash | always | 2009-12-28 20:32 | 2009-12-28 20:38 | |||||||
| Reporter | TehDooMCat | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | 1.4.2.1 | |||||||||
| Summary | 0001283: SysCP creating broken lighttpd config files | |||||||||||
| Description |
SysCP seems to be creating lighttpd config files (the ones like /etc/lighttpd/conf-enabled/10_syscp_ipandport_*.conf) with syntax errors, which prevents lighttpd from reloading the config. When you restart lighty manually (with /etc/init.d/lighttpd force-reload) it refuses to load, reporting errors such as the following: 2009-12-28 19:55:02: (configfile.c.864) source: /etc/lighttpd/conf-enabled/10_syscp_ipandport_69.73.143.171.80.conf line: 199 pos: 1 parser failed somehow near here: (EOL) 2009-12-28 19:55:02: (configfile.c.864) source: /usr/share/lighttpd/include-conf-enabled.pl line: 4 pos: 8 parser failed somehow near here: (EOL) 2009-12-28 19:55:02: (configfile.c.864) source: /etc/lighttpd/lighttpd.conf line: 68 pos: 14 parser failed somehow near here: (EOL) What's breaking the configs for me is when I define different 404 pages for my directories. They appear in the configfile like this: $HTTP["url"] =~ "^/gtaber($|/)" { dir-listing.activate = "enable" } server.error-handler-404 = "/index.php" $HTTP["url"] =~ "^/slashingedge($|/)" { dir-listing.activate = "enable" } server.error-handler-404 = "/index.php" [etc] And it should look like this: $HTTP["url"] =~ "^/slashingedge($|/)" { dir-listing.activate = "enable" server.error-handler-404 = "/index.php" } When I change that part of the config file manually lighttpd boots fine and all my sites are configured correctly. However, whenever a change is made in SysCP that file's rewritten so I have to change it every time. |
|||||||||||
| Additional Information | Problem arises from function create_pathOptions() in syscp/scripts/cron_tasks.inc.http.20.lighttpd.php, starting on line 285 (for me). | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| No SVN - commits yet |