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.
Recent comments
5 hours 21 min ago
6 hours 21 min ago
10 hours 8 min ago
11 hours 22 min ago
14 hours 58 min ago
22 hours 13 min ago
1 day 7 hours ago
1 day 8 hours ago
1 day 23 hours ago
2 days 2 hours ago