Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have a message board program (much like this one) written in PHP. It works great on my Windows 2000 box with that version of PHP - but I get a "server error" when I run it on my linux box. I've set the directory and all files to user/group "apache", and I think everything has the right permissions.
Is permissions the only problem I should look into? I was just wanting to verify that PHP was correctly installed.
Does the "execute" bit even matter for PHP scripts?
Well...I havent yet ventured into php much, but I think the execute bit wont matter here ( i'll have to confirm that, so right now its just a guess!)..
However, I'd like to know where do you get this "Server Error" ?...Is it right at where you launch index.php? or is it with some particular page? BTW where is index.php located ? Also, the execute permission for index.php may be a factor, so check that too..
Have u tried to execute a simple php script before trying to run your own program? Well, at least give the sample script a try and then let us know whats happening..
It might have something to do with the fact you have to files stored in the cgi-bin directory. Look through the httpd.conf to read what it says about that directory. I tried putting php in there and it didn't work giving similar errors.
Are you still having trouble with this? I noticed that the links you supplied still don't work. I'll see if I can help you with this when I get back to my house and look at my setup.
Meanwhile, could you answer a few questions :
- What version of apache?
- What version of php?
- What distro are you using?
Also, could you post a bit of one of the pages that's not working? You also could try replacing one of the pages that doesn't work with one of your 'simple' pages that you've posted that will work. Save away the 'real' page and replace it with a page that you know works under that same directory and filename. That way, you can eliminate issues like what directory it's in and some of the bit twiddling questions that you have. I'm guessing that your page is using some facility like database access or similar that you don't have set up on your new machine.
I'll look back into this forum in an hour or so when I get home from work to see if you've made any replies. It will be late Sunday before I can check back after that.
I'm sure I can help you at least figure out what's going on, and we may actually be able to fix it. :-)