Lamez Posted October 19, 2008 Share Posted October 19, 2008 Ok, so I installed Ubuntu 8, and I installed L.A.M.P., using this tutorial: http://www.howtoforge.com/ubuntu_lamp_for_newbies What my problem is, I wanna edit the files that are the WWW folder, but I get an error message that tells me I do not have the permissions to do that. I am the system admin, so how do I do it? -Thanks Guys! Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/ Share on other sites More sharing options...
corbin Posted October 19, 2008 Share Posted October 19, 2008 You might need to be root to access it. If you're feeling lazy just do "sudo chown -R user /var/www/". Other wise, use sudo, or sudo -i if you want to stay root. Or you could just change file perms (without changing owner). Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-668960 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 ok it is saying I do not have permission to access my root folder. When I use localhost. Is there a way to fix this? http://66.209.244.38/ Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669027 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 Take a look at your DirectoryIndex directive. Is it set? Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669042 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 would that be in /etc/apache2/httpd.conf or etc/apache2/apache2.conf Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669047 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 /etc/apache2/apache2.conf What is the output of.... grep DirectoryIndex /etc/apache2/apache2.conf Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669209 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 nothing... Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669287 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 Then its likely not set. Either that or its within your virtual host config. Either way, it'll need be something like... DirectoryIndex index.php This tells apache what file to serve when only a directory is requested. Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669292 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 I do not understand what is going on, now the server has turned off. How can I make sure it is always on, on boot up? Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669385 Share on other sites More sharing options...
corbin Posted October 19, 2008 Share Posted October 19, 2008 Quick google came up with this: http://www.livingubuntu.com/?p=70 Will that work? Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669470 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 that will work, however being a noob with linux, and lamp. I do not know what activates the Apache server. Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669471 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 The script to start Apache is /etc/init.d/apache2, it can be called using.... sudo /etc/init.d/apache2 restart However, Apache should have already been added to /etc/rc2.d (which controls the default runleve by apt-get. You did install via apt-get didn't you? Can I see the output of the following? ls -l /etc/rc2.d Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669472 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 ah, now I got it running, I still get the forbidden error. @thorpe Yes I do believe so, I did exactly like that tutorial! total 4 -rw-r--r-- 1 root root 556 2008-04-19 01:05 README lrwxrwxrwx 1 root root 19 2008-10-18 07:07 S01policykit -> ../init.d/policykit lrwxrwxrwx 1 root root 17 2008-10-18 07:07 S05vbesave -> ../init.d/vbesave lrwxrwxrwx 1 root root 15 2008-10-18 07:07 S10acpid -> ../init.d/acpid lrwxrwxrwx 1 root root 25 2008-10-18 07:07 S10powernowd.early -> ../init.d/powernowd.early lrwxrwxrwx 1 root root 18 2008-10-18 07:07 S10sysklogd -> ../init.d/sysklogd lrwxrwxrwx 1 root root 34 2008-10-18 07:07 S10xserver-xorg-input-wacom -> ../init.d/xserver-xorg-input-wacom lrwxrwxrwx 1 root root 15 2008-10-18 07:07 S11klogd -> ../init.d/klogd lrwxrwxrwx 1 root root 14 2008-10-18 07:07 S12dbus -> ../init.d/dbus lrwxrwxrwx 1 root root 23 2008-10-18 19:37 S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm lrwxrwxrwx 1 root root 22 2008-10-18 07:07 S18avahi-daemon -> ../init.d/avahi-daemon lrwxrwxrwx 1 root root 19 2008-10-18 19:37 S18mysql-ndb -> ../init.d/mysql-ndb lrwxrwxrwx 1 root root 15 2008-10-18 19:37 S19mysql -> ../init.d/mysql lrwxrwxrwx 1 root root 16 2008-10-18 07:07 S20apport -> ../init.d/apport lrwxrwxrwx 1 root root 16 2008-10-18 07:07 S20cupsys -> ../init.d/cupsys lrwxrwxrwx 1 root root 22 2008-10-18 07:07 S20hotkey-setup -> ../init.d/hotkey-setup lrwxrwxrwx 1 root root 23 2008-10-18 07:07 S20nvidia-kernel -> ../init.d/nvidia-kernel lrwxrwxrwx 1 root root 19 2008-10-18 07:07 S20powernowd -> ../init.d/powernowd lrwxrwxrwx 1 root root 15 2008-10-18 07:07 S20rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 15 2008-10-18 23:58 S20samba -> ../init.d/samba lrwxrwxrwx 1 root root 16 2008-10-18 07:07 S24dhcdbd -> ../init.d/dhcdbd lrwxrwxrwx 1 root root 13 2008-10-18 07:07 S24hal -> ../init.d/hal lrwxrwxrwx 1 root root 19 2008-10-18 07:07 S25bluetooth -> ../init.d/bluetooth lrwxrwxrwx 1 root root 20 2008-10-18 07:07 S25pulseaudio -> ../init.d/pulseaudio lrwxrwxrwx 1 root root 13 2008-10-18 07:07 S30gdm -> ../init.d/gdm lrwxrwxrwx 1 root root 17 2008-10-19 15:21 S50apache2 -> ../init.d/apache2 lrwxrwxrwx 1 root root 17 2008-10-18 07:07 S89anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 13 2008-10-18 07:07 S89atd -> ../init.d/atd lrwxrwxrwx 1 root root 14 2008-10-18 07:07 S89cron -> ../init.d/cron lrwxrwxrwx 1 root root 17 2008-10-18 07:07 S98usplash -> ../init.d/usplash lrwxrwxrwx 1 root root 22 2008-10-18 07:07 S99acpi-support -> ../init.d/acpi-support lrwxrwxrwx 1 root root 21 2008-10-18 07:07 S99laptop-mode -> ../init.d/laptop-mode lrwxrwxrwx 1 root root 18 2008-10-18 07:07 S99rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 2008-10-18 07:07 S99rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 24 2008-10-18 07:07 S99stop-readahead -> ../init.d/stop-readahead Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669473 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 What permissions does the file your trying to view have? Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669475 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 wells its a folder, its the WWW folder. Let me look! http://uploads.lamezz.com/per.png Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669479 Share on other sites More sharing options...
Lamez Posted October 19, 2008 Author Share Posted October 19, 2008 whoa, I changed the permissions, and it works now. I have developed a new problem! my Phpmyadmin is saying I do not have my mysql server config. right. Is the config file kept in etc/mysql/ ? Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669491 Share on other sites More sharing options...
trq Posted October 19, 2008 Share Posted October 19, 2008 I would say its refering to its own configuration. Maybe in /etc/phpmyadmin, I'm not sure, don't really use it. Quote Link to comment https://forums.phpfreaks.com/topic/129038-editing-files-in-the-www-folder/#findComment-669496 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.