#1  
Old 23rd October 2007, 23:50
devilslayer devilslayer is offline
Junior Member
 
Join Date: Oct 2007
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default Default user index pages

I need a little help.

I have read the post below, but as I'm a bit of a Linux noob I need a more detailed answer:

http://www.howtoforge.com/forums/showthread.php?t=213

The post above outlines how to change the default index.html file that is created automatically when a webpage is created.

From what I can make out you need to add the line

exec("cp -R /var/www/template/* $web_path/web");

to

/root/ispconfig/scripts/lib/config.lib.php

It needs inserting in either the "web_insert()" function or the "make_docroot()" function

Is this correct? Which function should it be put in?

What is the ideal method to edit the config.lib.php file? I am a bit of a Linux beginner and I have been using vi to edit files. I find this a bit difficult though, as you don't see any line numbers. Any Suggestions?

What I am trying to acheive:

I want to replace the default error pages using XHTML / CSS and strip out all the old font tags and deprecated tags

Remove tables used for page layout and remove <font> and <center> tags etc
<FONT COLOR="#000000" SIZE="2" FACE="Helvetica, Arial">
<center>

All this can either be replaced with a style element in the head of the html file or a linked CSS stylesheet.

I would also like to create a web page with images and a linked stylesheet(s), that would get copied to a new users webspace when it is created.

Another stupid question?

If i had a default template in /var/www/template/ how would I get the files off the server to edit? This is probably a very simple / stupid question, but If I don't ask these things then I'll never learn.

I can access the files using ssh with putty, but ideally I need to get them off of the server and onto my home PC so I can edit them and then upload them again. Any Linux Pro like to enlighten me about how they do it?

Thank You for your help.
Reply With Quote
Sponsored Links
  #2  
Old 24th October 2007, 21:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
Default

Quote:
Originally Posted by devilslayer
I need a little help.

I have read the post below, but as I'm a bit of a Linux noob I need a more detailed answer:

http://www.howtoforge.com/forums/showthread.php?t=213

The post above outlines how to change the default index.html file that is created automatically when a webpage is created.

From what I can make out you need to add the line

exec("cp -R /var/www/template/* $web_path/web");

to

/root/ispconfig/scripts/lib/config.lib.php

It needs inserting in either the "web_insert()" function or the "make_docroot()" function

Is this correct? Which function should it be put in?

What is the ideal method to edit the config.lib.php file? I am a bit of a Linux beginner and I have been using vi to edit files. I find this a bit difficult though, as you don't see any line numbers. Any Suggestions?

What I am trying to acheive:

I want to replace the default error pages using XHTML / CSS and strip out all the old font tags and deprecated tags

Remove tables used for page layout and remove <font> and <center> tags etc
<FONT COLOR="#000000" SIZE="2" FACE="Helvetica, Arial">
<center>

All this can either be replaced with a style element in the head of the html file or a linked CSS stylesheet.

I would also like to create a web page with images and a linked stylesheet(s), that would get copied to a new users webspace when it is created.
The admin and resellers can define custom standard index and error pages directly in the ISPConfig interface. No need to modify and files/functions.

Quote:
Originally Posted by devilslayer
Another stupid question?

If i had a default template in /var/www/template/ how would I get the files off the server to edit? This is probably a very simple / stupid question, but If I don't ask these things then I'll never learn.

I can access the files using ssh with putty, but ideally I need to get them off of the server and onto my home PC so I can edit them and then upload them again. Any Linux Pro like to enlighten me about how they do it?

Thank You for your help.
You can use an FTP client such as FileZille/gFTP/SmartFTP/WS_FTP, etc., or an SCP client such as WinSCP (if you're on Windows).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 25th October 2007, 16:08
devilslayer devilslayer is offline
Junior Member
 
Join Date: Oct 2007
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hello Falko,

Thanks for your reply. I use Filezilla as my FTP client and I can FTP into user sites created with ISP Config.

I would like to create a default page with images and linked CSS stylesheet, that would be copied into a users account as their holding page, when a site is created. This would allow me to brand the pages how I like.

How can I FTP into directory /var/www/template/ ?

I will try WinSCP on my Win 2k machine. I really need to setup a local debian etch server to try things out on.

Best REgards

Dave
Reply With Quote
  #4  
Old 25th October 2007, 16:13
devilslayer devilslayer is offline
Junior Member
 
Join Date: Oct 2007
Posts: 13
Thanks: 1
Thanked 1 Time in 1 Post
Default

Thanks Falko,

Managed to login to server using WinSCP.

I would be grateful if you could explain where I need to add the command

exec("cp -R /var/www/template/* $web_path/web");

in the file below.

/root/ispconfig/scripts/lib/config.lib.php
Reply With Quote
  #5  
Old 26th October 2007, 13:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
 
Default

Quote:
Originally Posted by devilslayer
I would be grateful if you could explain where I need to add the command

exec("cp -R /var/www/template/* $web_path/web");

in the file below.

/root/ispconfig/scripts/lib/config.lib.php
I think I'd put it in the make_docroot() function.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
Exim MTA dazblade Server Operation 4 16th July 2007 18:42
log files cruz Technical 3 15th May 2007 14:35
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54


All times are GMT +2. The time now is 21:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.