Thread: [Postfixadmin-devel] missing layout for postfixadmin on web site
Brought to you by:
christian_boltz,
gingerdog
From: J4 <ju...@kl...> - 2011-01-17 10:39:51
|
Hi there, I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. I took a screen-shot and upload it here as it better explains what I mean: http://tinypic.com/r/zn629w/7 Does anyone know what might have caused this? Best regards, J. |
From: David G. <da...@co...> - 2011-01-18 10:00:15
|
I suspect you've somehow broken the stylesheet(s). Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. David. On 17 Jan 2011, at 10:39, J4 wrote: > Hi there, > > I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. > > I took a screen-shot and upload it here as it better explains what I mean: > http://tinypic.com/r/zn629w/7 > > Does anyone know what might have caused this? > > Best regards, J. > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ > Postfixadmin-devel mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel |
From: J4 <ju...@kl...> - 2011-01-18 11:39:32
|
Hi David, # ls -l css/default.css -rw-r--r-- 1 root root 5637 Jan 3 12:38 css/default.css $CONF['theme_css'] = 'css/default.css'; Just to be sure the default.css was not the problem, I copied the default.css from the svn I had downloaded into the htdoc location for my postfixadmin install, but it did not change anything. Is there anywhere else that could cause a problem with the style sheets? On 01/18/2011 11:00 AM, David Goodwin wrote: > I suspect you've somehow broken the stylesheet(s). > > Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. > > > > David. > > > On 17 Jan 2011, at 10:39, J4 wrote: > >> Hi there, >> >> I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. >> >> I took a screen-shot and upload it here as it better explains what I mean: >> http://tinypic.com/r/zn629w/7 >> >> Does anyone know what might have caused this? >> >> Best regards, J. >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ >> Postfixadmin-devel mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel > |
From: David G. <da...@co...> - 2011-01-18 12:17:14
|
diff -ru /path/to/svn/checkout /path/to/htdocs ? It'll give you loads of crap about .svn stuff, but might pinpoint what you've changed? (I think diff has an exclude option, e.g. --exclude .svn , but i may be wrong) David. On 18 Jan 2011, at 11:39, J4 wrote: > Hi David, > > # ls -l css/default.css > -rw-r--r-- 1 root root 5637 Jan 3 12:38 css/default.css > > $CONF['theme_css'] = 'css/default.css'; > > Just to be sure the default.css was not the problem, I copied the > default.css from the svn I had downloaded into the htdoc location for my > postfixadmin install, but it did not change anything. > > Is there anywhere else that could cause a problem with the style sheets? > > > > On 01/18/2011 11:00 AM, David Goodwin wrote: >> I suspect you've somehow broken the stylesheet(s). >> >> Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. >> >> >> >> David. >> >> >> On 17 Jan 2011, at 10:39, J4 wrote: >> >>> Hi there, >>> >>> I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. >>> >>> I took a screen-shot and upload it here as it better explains what I mean: >>> http://tinypic.com/r/zn629w/7 >>> >>> Does anyone know what might have caused this? >>> >>> Best regards, J. >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ >>> Postfixadmin-devel mailing list >>> Pos...@li... >>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >> > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Postfixadmin-devel mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel |
From: J4 <ju...@kl...> - 2011-01-18 12:25:36
|
Hi David, Thanks for the idea. # diff --exclude=.svn -ru /root/build/email_setup/postfixadmin-2.3.2/css/default.css /srv/postfixadmin/css/default.css no difference. A diff of : # diff --exclude=.svn -ru /root/build/email_setup/postfixadmin-2.3.2s /srv/postfixadmin ... produced 6059 lines of output. I don't think humans have the time nor inclination to read through all of that! On 01/18/2011 01:17 PM, David Goodwin wrote: > diff -ru /path/to/svn/checkout /path/to/htdocs ? > > It'll give you loads of crap about .svn stuff, but might pinpoint what you've changed? > > (I think diff has an exclude option, e.g. --exclude .svn , but i may be wrong) > > > David. > > > On 18 Jan 2011, at 11:39, J4 wrote: > >> Hi David, >> >> # ls -l css/default.css >> -rw-r--r-- 1 root root 5637 Jan 3 12:38 css/default.css >> >> $CONF['theme_css'] = 'css/default.css'; >> >> Just to be sure the default.css was not the problem, I copied the >> default.css from the svn I had downloaded into the htdoc location for my >> postfixadmin install, but it did not change anything. >> >> Is there anywhere else that could cause a problem with the style sheets? >> >> >> >> On 01/18/2011 11:00 AM, David Goodwin wrote: >>> I suspect you've somehow broken the stylesheet(s). >>> >>> Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. >>> >>> >>> >>> David. >>> >>> >>> On 17 Jan 2011, at 10:39, J4 wrote: >>> >>>> Hi there, >>>> >>>> I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. >>>> >>>> I took a screen-shot and upload it here as it better explains what I mean: >>>> http://tinypic.com/r/zn629w/7 >>>> >>>> Does anyone know what might have caused this? >>>> >>>> Best regards, J. >>>> ------------------------------------------------------------------------------ >>>> Protect Your Site and Customers from Malware Attacks >>>> Learn about various malware tactics and how to avoid them. Understand >>>> malware threats, the impact they can have on your business, and how you >>>> can protect your company and customers by using code signing. >>>> http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ >>>> Postfixadmin-devel mailing list >>>> Pos...@li... >>>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >>> >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Postfixadmin-devel mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Postfixadmin-devel mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel |
From: David G. <da...@co...> - 2011-01-18 12:31:47
|
Try re-doing the diff with : templates/ config.inc.php David. On 18 Jan 2011, at 12:25, J4 wrote: > Hi David, > > Thanks for the idea. > > # diff --exclude=.svn -ru > /root/build/email_setup/postfixadmin-2.3.2/css/default.css > /srv/postfixadmin/css/default.css > no difference. > > A diff of : > # diff --exclude=.svn -ru /root/build/email_setup/postfixadmin-2.3.2s > /srv/postfixadmin > ... produced 6059 lines of output. I don't think humans have the time > nor inclination to read through all of that! > > > On 01/18/2011 01:17 PM, David Goodwin wrote: >> diff -ru /path/to/svn/checkout /path/to/htdocs ? >> >> It'll give you loads of crap about .svn stuff, but might pinpoint what you've changed? >> >> (I think diff has an exclude option, e.g. --exclude .svn , but i may be wrong) >> >> >> David. >> >> >> On 18 Jan 2011, at 11:39, J4 wrote: >> >>> Hi David, >>> >>> # ls -l css/default.css >>> -rw-r--r-- 1 root root 5637 Jan 3 12:38 css/default.css >>> >>> $CONF['theme_css'] = 'css/default.css'; >>> >>> Just to be sure the default.css was not the problem, I copied the >>> default.css from the svn I had downloaded into the htdoc location for my >>> postfixadmin install, but it did not change anything. >>> >>> Is there anywhere else that could cause a problem with the style sheets? >>> >>> >>> >>> On 01/18/2011 11:00 AM, David Goodwin wrote: >>>> I suspect you've somehow broken the stylesheet(s). >>>> >>>> Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. >>>> >>>> >>>> >>>> David. >>>> >>>> >>>> On 17 Jan 2011, at 10:39, J4 wrote: >>>> >>>>> Hi there, >>>>> >>>>> I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. >>>>> >>>>> I took a screen-shot and upload it here as it better explains what I mean: >>>>> http://tinypic.com/r/zn629w/7 >>>>> >>>>> Does anyone know what might have caused this? >>>>> >>>>> Best regards, J. >>>>> ------------------------------------------------------------------------------ >>>>> Protect Your Site and Customers from Malware Attacks >>>>> Learn about various malware tactics and how to avoid them. Understand >>>>> malware threats, the impact they can have on your business, and how you >>>>> can protect your company and customers by using code signing. >>>>> http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ >>>>> Postfixadmin-devel mailing list >>>>> Pos...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >>>> >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Postfixadmin-devel mailing list >>> Pos...@li... >>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >> >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Postfixadmin-devel mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Postfixadmin-devel mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel |
From: J4 <ju...@kl...> - 2011-01-18 12:33:42
|
Slightly stranger output:- # diff --exclude=.svn -ru /root/build/email_setup/postfixadmin-2.3.2/templates/ /srv/postfixadmin/templates/ Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_create-admin.php Only in /srv/postfixadmin/templates/: admin_create-admin.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_create-domain.php Only in /srv/postfixadmin/templates/: admin_create-domain.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_edit-admin.php Only in /srv/postfixadmin/templates/: admin_edit-admin.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_edit-domain.php Only in /srv/postfixadmin/templates/: admin_edit-domain.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_list-admin.php Only in /srv/postfixadmin/templates/: adminlistadmin.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: admin_list-domain.php Only in /srv/postfixadmin/templates/: adminlistdomain.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: broadcast-message.php Only in /srv/postfixadmin/templates/: broadcast-message.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: create-alias-domain.php Only in /srv/postfixadmin/templates/: create-alias-domain.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: create-alias.php Only in /srv/postfixadmin/templates/: create-alias.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: create-mailbox.php Only in /srv/postfixadmin/templates/: create-mailbox.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: edit-alias.php Only in /srv/postfixadmin/templates/: edit-alias.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: edit-mailbox.php Only in /srv/postfixadmin/templates/: edit-mailbox.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: edit-vacation.php Only in /srv/postfixadmin/templates/: edit-vacation.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: fetchmail.php Only in /srv/postfixadmin/templates/: fetchmail.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: footer.php Only in /srv/postfixadmin/templates/: footer.tpl Only in /srv/postfixadmin/templates/: header.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: index.php Only in /srv/postfixadmin/templates/: index.tpl Only in /srv/postfixadmin/templates/: list-virtual_alias_domain.tpl Only in /srv/postfixadmin/templates/: list-virtual_alias.tpl Only in /srv/postfixadmin/templates/: list-virtual_mailbox.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: list-virtual.php Only in /srv/postfixadmin/templates/: list-virtual.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: login.php Only in /srv/postfixadmin/templates/: login.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: main.php Only in /srv/postfixadmin/templates/: main.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: menu.php Only in /srv/postfixadmin/templates/: menu.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: message.php Only in /srv/postfixadmin/templates/: message.tpl Only in /srv/postfixadmin/templates/: motd.txt Only in /srv/postfixadmin/templates/: motd-users.txt Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: overview-get.php Only in /srv/postfixadmin/templates/: overview-get.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: password.php Only in /srv/postfixadmin/templates/: password.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: search.php Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: sendmail.php Only in /srv/postfixadmin/templates/: sendmail.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_edit-alias.php Only in /srv/postfixadmin/templates/: users_edit-alias.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_login.php Only in /srv/postfixadmin/templates/: users_login.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_main.php Only in /srv/postfixadmin/templates/: users_main.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_menu.php Only in /srv/postfixadmin/templates/: users_menu.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_password.php Only in /srv/postfixadmin/templates/: users_password.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: users_vacation.php Only in /srv/postfixadmin/templates/: users_vacation.tpl Only in /root/build/email_setup/postfixadmin-2.3.2/templates/: viewlog.php Only in /srv/postfixadmin/templates/: viewlog.tpl On 01/18/2011 01:31 PM, David Goodwin wrote: > Try re-doing the diff with : > > templates/ > config.inc.php > > > David. > > > On 18 Jan 2011, at 12:25, J4 wrote: > >> Hi David, >> >> Thanks for the idea. >> >> # diff --exclude=.svn -ru >> /root/build/email_setup/postfixadmin-2.3.2/css/default.css >> /srv/postfixadmin/css/default.css >> no difference. >> >> A diff of : >> # diff --exclude=.svn -ru /root/build/email_setup/postfixadmin-2.3.2s >> /srv/postfixadmin >> ... produced 6059 lines of output. I don't think humans have the time >> nor inclination to read through all of that! >> >> >> On 01/18/2011 01:17 PM, David Goodwin wrote: >>> diff -ru /path/to/svn/checkout /path/to/htdocs ? >>> >>> It'll give you loads of crap about .svn stuff, but might pinpoint what you've changed? >>> >>> (I think diff has an exclude option, e.g. --exclude .svn , but i may be wrong) >>> >>> >>> David. >>> >>> >>> On 18 Jan 2011, at 11:39, J4 wrote: >>> >>>> Hi David, >>>> >>>> # ls -l css/default.css >>>> -rw-r--r-- 1 root root 5637 Jan 3 12:38 css/default.css >>>> >>>> $CONF['theme_css'] = 'css/default.css'; >>>> >>>> Just to be sure the default.css was not the problem, I copied the >>>> default.css from the svn I had downloaded into the htdoc location for my >>>> postfixadmin install, but it did not change anything. >>>> >>>> Is there anywhere else that could cause a problem with the style sheets? >>>> >>>> >>>> >>>> On 01/18/2011 11:00 AM, David Goodwin wrote: >>>>> I suspect you've somehow broken the stylesheet(s). >>>>> >>>>> Look in config.inc.php for $CONF['theme_css'] - it should be set to something like 'css/default.css'. >>>>> >>>>> >>>>> >>>>> David. >>>>> >>>>> >>>>> On 17 Jan 2011, at 10:39, J4 wrote: >>>>> >>>>>> Hi there, >>>>>> >>>>>> I had postfixadmin working well, but sadly made a change last Friday and have forgotten what it was :( The result is that postfixadmin works, but the (presumably) style sheets are not read. The web page is displayed only in ascii with URL links, but not the nice way it was afore. >>>>>> >>>>>> I took a screen-shot and upload it here as it better explains what I mean: >>>>>> http://tinypic.com/r/zn629w/7 >>>>>> >>>>>> Does anyone know what might have caused this? >>>>>> >>>>>> Best regards, J. >>>>>> ------------------------------------------------------------------------------ >>>>>> Protect Your Site and Customers from Malware Attacks >>>>>> Learn about various malware tactics and how to avoid them. Understand >>>>>> malware threats, the impact they can have on your business, and how you >>>>>> can protect your company and customers by using code signing. >>>>>> http://p.sf.net/sfu/oracle-sfdevnl_______________________________________________ >>>>>> Postfixadmin-devel mailing list >>>>>> Pos...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >>>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Protect Your Site and Customers from Malware Attacks >>>> Learn about various malware tactics and how to avoid them. Understand >>>> malware threats, the impact they can have on your business, and how you >>>> can protect your company and customers by using code signing. >>>> http://p.sf.net/sfu/oracle-sfdevnl >>>> _______________________________________________ >>>> Postfixadmin-devel mailing list >>>> Pos...@li... >>>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >>> >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Postfixadmin-devel mailing list >>> Pos...@li... >>> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel >> >> ------------------------------------------------------------------------------ >> Protect Your Site and Customers from Malware Attacks >> Learn about various malware tactics and how to avoid them. Understand >> malware threats, the impact they can have on your business, and how you >> can protect your company and customers by using code signing. >> http://p.sf.net/sfu/oracle-sfdevnl >> _______________________________________________ >> Postfixadmin-devel mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel > |
From: David G. <da...@co...> - 2011-01-19 16:08:43
|
On 19 Jan 2011, at 16:04, J4 wrote: >> > Hi David, > > I have nuked it with version 2.3.2. All is well. > good > On a related topic. I have a habit of change permissions on files to > being quite restictive (may have been the cause of the problem). Would > you tell me how restictive I can make the files? > it has to be readable by the webserver. Approaches to make that database password more secure include : a. embedding it within an Apache variable ? (not sure if this will help a lot) b. using something like suphp / suexec so each 'website' is associated with a different system user. chmod -R a-w will break stuff - you'll need at least teh templates_c directory to be writeable for Smarty. thanks David. > In particular, the config.php.ini file contains the entry for the database: > $CONF['database_password'] = '121212____!!!!!'; > What are the safest permissions for this file? > > Are there any other files that should not have any writable permissions? > Would a simple chmod -R a-w postfixadmin/ work, or would something break? > > > Simon. |