tags:

views:

18

answers:

2

I finished installing Ubuntu 10 for netbooks, and XAMPP. The XAMPP website tutorial made it very easy to install, then left me high and dry. Everything works, but I have no idea where to put my handwritten php files.

After a few hours of googling, and trying to understand the file explorer, I realized I have no idea where anything is in ubuntu. For an answer, please don't just tell me "go to "X" directory. I won't know how to navigate there.

I also did a file search for htdocs with no luck.

A: 

Look into the httpd.conf and/or httpd-vhosts.conf files and search for the DocumentRoot entry. If you configure multiple virtual hosts, there may be more than one of those, separated in <VirtualHost> tags.

Pekka
I don't know what the httpd.conf or httpd-vhosts.conf files are and I don't know where they are. Typing them into my browser bar didn't work. I don't know where files and folders are in ubuntu and this is the kind of help i need. For an answer, please don't tell me to "look at file x." I need help navigating to the correct file.
CDeanMartin
`/path_to_your_apache_install/conf/httpd.conf` a file search *will* turn them up.
Pekka
If there is any such Apache install folder it is hidden from me. I have no idea how to find it.
CDeanMartin
`CDeanMartin` try `locate httpd.conf` or if that is not available, `find / -name "httpd.conf"` (the latter will throw a lot of "access denied"s, that's okay)
Pekka
But this is starting to belong on superuser.com :) voting to migrate there.
Pekka
locate httpd.conf didn't work. find / -name threw about 50 permission denied errors but did nothing elseI suspect the problem is related to running Ubuntu on a pendrive. I used 1 GB for persistence. Does this affect where I would find the XAMPP installation files?
CDeanMartin
@CDeanMartin I don't know, I've never used Ubuntu on a USB Drive, nor XAMPP on a Linux... Maybe ask again on superuser.com or serverfault.com, summarizing the current situation?
Pekka
thanks ill try superuser
CDeanMartin
+1  A: 

in XAMPP the default root is "htdocs" inside the XAMPP folder, if you followed the instructions on the xampp homepage it would be "/opt/lampp/htdocs"

Fabian
'For an answer, please don't just tell me "go to "X" directory. I won't know how to navigate there.' 'blah blah blah' go to "/opt/lampp/htdocs" directory'sigh'
CDeanMartin
Click on places -> computer -> file system -> opt -> lampp -> htdocsBut navigating the file system is absolutely basic stuff, you should get comfortable with Linux if you want to program php
Fabian
I have written PHP for almost 3 years. I've been using Linux about 3 hours, so even if it "basic stuff", I am used to where things are in Windows Explorer, not GNOME file manager.
CDeanMartin