Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 4th, 2002, 01:48 PM
EricJr EricJr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 1 EricJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache configuration

Hi guys, I am a Linux newbie, and I have 4 questions ..
Which of you guru's can help me?


Information:
I run Linux Mandrake 8.1 and I have installed ALL modules etc.
The complete install!

Problem: #1
I want to have complete acces over my files from a Windows computer in my LAN.
I have Webmin, and Samba, but I can't get it to work ...

Problem: #2
I run apache because I am testing my beta website.
It's using alot of PHP and MySQL, and there is one thing I can't manage to fix.
Uploading a file. I don't have the permission to do that.
I know the script is good .. used it before on my windowsPC...

I get this message:
PHP Code:
 WarningUnable to create '../swf-files/dieptes.swf'Permission denied in /var/www/html/php-files/processuploads.php on line 40 


Problem: #3
I have always used phpMyAdmin to manage my databases .
I can't get this program to work anymore ... Do I need to installer something adittional ???
help.......

Problem: #4
I use Webmin to manage most configs.
When I want to edit or set the SENDMAIL ... it gives the error sendmail.cf cannot be found .. I can't find anything about this topic .. What do I need to do?


Thanks in advance ya'll

Reply With Quote
  #2  
Old June 4th, 2002, 02:22 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Hi! Welcome to the Linux community

as usual, i first suggest you buy a book and / or linux magazines. how long did it take you to learn windows and how many people could you ask at this time?

Problem: #1
Webmin is a afaik total security fīup. If you want to connect to the internet, deinstall it!
for samba: samba comes with its own, easy-to-use gui (web-based like webmin): SWAT. edit /etc/inetd.conf, look for a line similar to "# swat swat - ....... - /usr/local/samba/bin/swat". remove the comment-sign ("#"), restart inetd ("killall -HUP inetd" on the console) and then access it with "http://<your-ip>:901"
read on. in a later problem, iīll discuss the problems with complete access to all your linux files...

Problem: #2
Yes, this is where i add on to the last sentence.
Linux has a different permissions scheme than windows. on windows 9x/me you donīt have file permissions at all. anyone can edit/modify/delete all files, his own, othersī and system files.
on windows NT/2k/XP, you have a (quite good and detailed) user/group permission scheme. you canīt delete other usersī data and you canīt delete system files. (unless you are the administrator)
the latter is similar in linux. your files and folders have permissions (although they work a little different from windows...).
you are nearly right: it is your web-server that is not allowed to write files anywhere
short explanation:
each file and folder has three groups of permissions: user-, group- and world-permissions. these can be a mixture of "read", "write", "execute". these are written in a row, eg:
/home/user/myfile could have "rwxrwxr-x", that is: first three are user. he can read, modify and execute the file (any file can be executable in unix, they donīt need stoopid names like ".com" or ".exe")
middle three are the group (iīll leave group ownership out for now) and the last three are "world" which is anyone not being the user or in the fileīs group. they can only read and execute. no writing.
your solution:
the webserver usually runs as wwwrun/nogroup or similar. so you create the folder it should be allowed to write to as aministrator:
login as root.
cd /usr/local/www/ (or where ever your docroot is)
mkdir upload
chown wwwrun upload (change owner of "upload" to "wwwrun")

then you have a folder where your server IS allowed to write to since it belongs to it

Problem: #3
phpMyAdmin is cool. i use it too.
if it is installed, first look where. is it /usr/local/www/phpMyAdmin or does it have a different name. something like "rpm -q -l phpmyadmin" or "find /usr -name phpMyAdmin*" could give a hint. your installation program should support listing the files in rpms too.
you only need a web server with php support. php support must be enabled for the extension of the phpMyAdmin files. they come in two variations: one always ends in .php3, one always .php . but mandrake should have taken care of this for you...

Problem: #4
Sorry, canīt help you much here. Sendmail is very complicated and i never dealt with mandrake before...

Long post, eh? hope this helps and thus was worth the effort!
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Last edited by M.Hirsch : June 4th, 2002 at 02:29 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Apache configuration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway