Conor Mac Aoidh wrote:
> The file is nav.php it is being created in
> /opt/lampp/htdocs/webalizer/inc/. To create the other files i just used: vim
> /opt/lampp/htdocs/webalizer/index.php and then entered the details and
> saved. Now i want to create a new directory (/inc) and a new file
> (/nav.php). It wont let me do this for some reason.
make sure that the directory /opt/lampp/htdocs/webalizer/inc/ actually exists.
ls -l /opt/lampp/htdocs/webalizer/ | grep inc
if not, then use mkdir to create it, then create your file in there.
As you're probably the only person that will be using the directory, you should change ownership of the directory to
yourself and use your normal account for editing.
chown conor.conor /opt/lampp/htdocs/webalizer/ -R
kae
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!