1

I am a newbie linux user. I have installed xampp 1.8.3-2(lampp) on Ubuntu 13.10 and configured it.

I paste my www folder to Ubuntu 13.10 in /opt/lampp/htdocs.

Now that the owner of www folder is root, with create and delete files permission, I changed the permissions with:

sudo chmod 777 -R /opt/lampp/htdocs/www

I can access my old files inside www directory, and results in viewing webpage in the browser, with the URL of localhost/xampp/www/xxx/abc.php. I can create files like aaa.php inside www but when I am trying view aaa.php file its says

 Object not found

 The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.`

 If you think this is a server error, please contact the webmaster.`

 Error 404

localhost Apache/2.4.7 (Unix) OpenSSL/1.0.1e PHP/5.5.6 mod_perl/2.0.8-dev Perl/v5.16.3 Cannot execute new files, and I cannot execute modified code. Any suggestions? Thanks.

Wilf
  • 30,194
  • 17
  • 108
  • 164
black
  • 546
  • 4
  • 15
  • 27
  • Looks like a permission issue. You might be root, but Apache runs "as" the www-data user. – Alex Feb 07 '14 at 18:02
  • i am running as a user. if you are suggesting like to change owner of www folder from root to user, i have even tried that sudo chmod username /opt/lamp/htdocs/www. but no success. – black Feb 07 '14 at 18:07
  • Could be you didn't properly configured Apache... Anyway this isn't about Ubuntu. Try superuser.com or serverfault.com. – Alex Feb 07 '14 at 18:10
  • the httpd.conf that is found in path /etc/httpd.conf is not found in ubuntu 13.10 maybe.even tried something about virtualhost from a forum. ok thnkx nyway will surely visit there – black Feb 07 '14 at 18:14
  • "sudo chmod 777 -R /opt/lampp/htdocs/www" no you did not. You did "sudo chmod 775 -R /opt/lampp/htdocs/www". "Object not found" your webserver's root path is not correct. Check the apache log file (/var/log/apache/access* and error*). It will tell you why the error occurs. – Rinzwind Feb 07 '14 at 18:20
  • i did chmod 777 but how to chng the php file owner from me to root as i see other existing files that are running have root ownership of the .php files. the folder created has root owner but not the files. how to do that – black Feb 07 '14 at 18:28
  • @Rinzwind the location /var/log/apache not found. – black Feb 08 '14 at 13:59
  • @black no 777, security wise bad ;) and 2nd: try /var/log/apache2/ There must be 2 log files that will explain it all. – Rinzwind Feb 08 '14 at 16:44
  • Did you upgrade to 13.10? – Seth Feb 08 '14 at 22:49
  • yeah m using 13.10and its solved – black Feb 09 '14 at 06:34

1 Answers1

1

the path i was using was wrong.i was using /opt/lampp/htdocs/www/a.php rather it should be /opt/lampp/htdocs/xampp/www/a.php that is why its cant be found. as i have url that responds in http://localhost/xampp/www so i had to just put my directories and files inside /opt/lampp/htdocs/xampp/www and it works fine.thnkx all

black
  • 546
  • 4
  • 15
  • 27
  • Note that 13.04 is now End-Of-Life - support for 13.04 ended last month. Update it to 13.10, or even 12.04, while you still can. If you have problems, this question or this question may be of help. – Wilf Feb 08 '14 at 20:00
  • @wilf as i have mentioned it ubuntu 13.10 what i am currently using is upgraded from 13.04 to ubuntu 13.10 saucysalamander. – black Feb 08 '14 at 21:21
  • yeah by mistake i wrote 13.04 inside the body,but the title was 13.10 – black Feb 08 '14 at 21:52
  • Quite alot of the flags for closing the questions (a total of 5 flags are needed to close a question) were about this being about an EOL release... I have flagged for it to be reopened. – Wilf Feb 08 '14 at 22:13