Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I just began leasing a VDS from a well known hosting company and set everything up the way I thought, but when I uploaded my site, 3 of the most important functions didn't work:
- file uploads through the browser (simple HTML form and PHP script)
- directory creation on the fly (simple PHP command)
- writing to a .txt file (simple PHP script)
I set the permissions wide open in these appropriate directories where this all takes place but it still doesn't work. The hosting company doesn't have an answer and nobody else does either. I figure this would be the best place to go.
And you've confirmed this by looking at the results of "phpinfo()", correct?
The server has access to SSH, but it seems when I type the one and two letter codes in that I've found on internet help forums, it doesn't do anything.
I don't know what you mean. Please clarify.
I did open all the permissions up in the directories.
<= You do NOT (repeat, do NOT!) want "777" permissions on
ANY web server that faces the Internet.
Not even a virtual machine!
I have not set correct users and groups other than what was set when I got the server.
<= Fair enough. And one of those users is your web server user.
Does this user have read/write permissions to the director(ies) in question?
I did nothing with the httpd.conf permissions.
<= Fair enough.
But what about the <Directory> claus(es) in your httpd.conf?
For starters, you can put "echo" debug statements in your PHP scripts, and look at your Apache access and error logs
<= This is THE single most important thing you can do at this point. What are the results?
Also: perhaps selinux is active, and causing you grief?
Keep us posted ... and don't forget to "thank" smoker or I, if we've helpd.
Yes, I confirmed safe_mode is off by looking at the "phpinfo()"
What I mean by the codes that I'm trying to type in via SSH, here is an example from what I got off the internet:
1. “cd /etc”
Check that there is the php.ini listed if not you will have to ask your hosting provider where it is.
3. “vi php.ini”
Find the bit in php.ini you would like to edit.
4. “i” – This enables you to edit the php.ini file
5. After changing the file, please Esc.
6. “:wq” – (w = saves the file, q = quit)
7. reboot your server and your done.
By looking at the phpinfo(), I see the upload_tmp_dir is set to "no value", so I was told to set that to a directory. But whenever I tried typing any of the above into the command line, it wouldn't do anything but say something like "directory not found".
I have a company that wants to charge me $125 to change the user apache is running under. He said that is the problem. That's one reason I'm coming here - to get another oppinion.
I thought you said you were in charge of this server ?
I am in a way. It's a virtual server so other users are on it but they say the partitioned space I have is "virtually" a server on its own because I have all the functionality and freedom of having a dedicated server. So I don't know if I have access to root or not.