Re: HOWTO: Setup easy web development environment (XAMPP)
Quote:
Originally Posted by
petervk
I don't think it is possible to create a soft link to a fat32 drive. I'm pretty sure its a ext2/3 only thing and cannot span different filesystems.
What you can do is change the "DocumentRoot" in the httpd.conf file for XAMPP.
Open a terminal:
Code:
sudo cp /opt/lampp/etc/httpd.conf /opt/lampp/etc/httpd.conf.backup
sudo gedit /opt/lampp/etc/httpd.conf
Now Scroll down to the line:
Code:
DocumentRoot "/opt/lampp/htdocs"
and change it to point to your fat32 drive. (? "/media/fat32/" ?)
I'd suggest to point it only to a web subdirectory on the drive as serving up the root of the drive will put all of the files on it onto the webserver and allowing anyone to view them.
Changing this will make the fancy
http://localhost/xampp test stuff stop working. (It is installed into /opt/lampp/htdocs/) Everything else should work.
Hope that helps.
I did this but I get a 403 forbidden error.
Re: HOWTO: Setup easy web development environment (XAMPP)
I followed the tut, but when I goto http://localhost, i get this
Quote:
Index of /
Icon Name Last modified Size Description
Apache/2.0.55 (Ubuntu) Server at localhost Port 80
Re: HOWTO: Setup easy web development environment (XAMPP)
I followed the tut, but when I goto http://localhost, i get this
Quote:
Index of /
Icon Name Last modified Size Description
Apache/2.0.55 (Ubuntu) Server at localhost Port 80
Re: HOWTO: Setup easy web development environment (XAMPP)
I would assume yes too, but that isn't always the case with new apps on Ubuntu. Most apps that deal with users and permissions need to be packaged by a MOTU to function properly in Ubuntu.
See mysql-admin for example. Very hard to add new users thanks to the unique way that Ubuntu deals with sudo and permissions. Many other apps will not install/run thanks to sudo.
Right now the only reason to recommend xampp is that you have access to php 5.1, which is necessary for certain applications.
For those that require mysql4 or php4, xampp looks to be no good. Perhaps there are earlier versions of xampp that allow this.
And of course, if you can backup and redeploy, then it's, "Yeah, baby! Yeah!"
It will be a few days before I can find out for myself and report.
Re: HOWTO: Setup easy web development environment (XAMPP)
I'm just wondering how upgrading is handled. Is the functionality built in or do you have to manually do updates?
Re: HOWTO: Setup easy web development environment (XAMPP)
All was great and working until I did the reccomended security settings. So I am new to this side of things, but should the passwords I set not work with my username, or is there a default username, or is this an issue because in Ubuntu i have to run the security thing as sudo?
Re: HOWTO: Setup easy web development environment (XAMPP)
If I'm correct the default username is set to "lampp".
This should work with the password you have set.
This info I saw when I run the security options.
Set another password myself and shall now test :p to see if it will work again.
Re: HOWTO: Setup easy web development environment (XAMPP)
Face1:
That looks like a permissions problem. Check the permissions on the directory you are accessing. It's possible that the httpd program cannot access the data therefore giving you a 403 error. If you keep having problems you could consider changing your fat32 drive to ext3 and use the ext2ifs driver for windows: http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm Or possibly shrink your fat32 partition and create a special ext3 web development partition.
One thing about the ext2ifs driver: I would not recommend enabling access to your root directory through windows. Windows may screw it up. I wouldn't even give it access to your home partition (If you have it on a seperate partition). Windows makes a lot of files secretly and can mess up ext3 partitions so its best to limit its access to a controlled area.
Dylan103:
Did you do the "DocumentRoot" change over? Because it looks like it is pointing to an empty directory insted of the normal "/opt/lampp/htdocs"
Open the /opt/lampp/etc/httpd.conf file and check where the "DocumentRoot" is pointing too. It should be /opt/lampp/htdocs. If you changed it on purpose make sure there is something in the directory. XAMPP will not display just any file in the directory, because it hides some for security. Insert a text file or a folder to see if it is working. Apache will not just display your *.html files as it hides them, it will only start displaying your webpage if the home page is named index.html/.php.
Keep posting your questions, and I'll try to keep answering them.
Re: HOWTO: Setup easy web development environment (XAMPP)
adamkane:
Adding a user in phpmyadmin:
http://img208.imageshack.us/img208/5...efoxtx1.th.png
http://img308.imageshack.us/img308/1...fox1qy1.th.png
Everything seems to just work. I'm no mysql expert, but I just created a random user with any permissions I wanted.
Re: HOWTO: Setup easy web development environment (XAMPP)
Quote:
Originally Posted by
rlynch
I install this, and nothing happens when I go to
http://localhost
I get this error
Code:
The connection has timed out
The server at 127.0.0.1 is taking too long to respond.
* The site could be temporarily unavailable or too busy. Try again in a few
moments.
* If you are unable to load any pages, check your computer's network
connection.
* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
When I do a ps -ef I get this, so I see httpd is running
Code:
nobody 9986 9945 0 18:47 ? 00:00:00 /opt/lampp/sbin/mysqld --basedir=/opt/lampp --datadir=/opt/lampp/var/mysql --nobody 9988 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 9989 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 9990 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 9991 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 9992 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody 9993 9919 0 18:47 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
bump. . .are there maybe some logs I could paste or something?