PDA

View Full Version : Error 500 when trying to install php script


cruz
16th August 2007, 02:55
I am trying to install my php script. I got the server working . I set up the site and can see it when I enter the domain in my browser outside of the firewall. I uploaded the script to the site in a folder called dsb2. I first tryed to upload it in the root file, but the whole site stoped working. I realy want it so there is no dsb2 file, but am new to how to get it to work without the sub folder.The info from the script told me to enter www.apostolichearts.com/dsb2. then It is supose to show a hyperlink that has install, but it is giving me an error 500. The requested URL caused an internal server error. I tryed to move the file .htaccess to the root file (web) but when I do that nothing works. Can you please help me?

edge
16th August 2007, 10:58
It's most probably a line Optioins +Followsymlinks in your .htaccess
Tru removing it if so.

If not, try removing line by line from the .htaccess file, and see what line is causing the error.

cruz
17th August 2007, 01:00
Can I use # to removing the line in the .htaccess?

edge
17th August 2007, 01:37
Can I use # to removing the line in the .htaccess?

Yes you can.

cruz
17th August 2007, 09:21
it worked. I commented out all but the first line. then it worked. Here is the file.DirectoryIndex index.php
#Options -Indexes
#php_flag file_uploads on
#php_flag session.use_cookies on
#php_flag register_globals off
#php_flag session.use_trans_sid off
#php_value include_path "."
#php_value error_reporting 2047
#php_flag display_errors offWil it hurt not to have these active? I had this script running on another LAMP and I did not have to comment out the lnes. What causes this to hapen? Also, when I uploaded the files to the server I used winSCP3 and had to use root access to upload them. now the filders belong to root. will this be ok? I tryed to use the user name and password from when I made the website in ingconfig but it would not log on under that program. I am very new to most of this stuff. thanks for the help. Any exsplaing on how and why's would be greatly helpful.

edge
17th August 2007, 10:41
If you use ISPconfig than try adding it to the site's Apache Directives.
You will find the Apache Directives in the ISP Site > basis (at the bottom)
Make sure you uncomment the lines again.

cruz
17th August 2007, 23:59
how do I add it? ISPconfig? enter this in the apache directives? Then I can uncomment out the lines after entering it? Sorry kind of new to this. Just want to do it right.

falko
18th August 2007, 12:45
how do I add it? ISPconfig? enter this in the apache directives?
Yes, that's right. :)

cruz
18th August 2007, 18:59
I added the string ispconfig in the apaches directives and removed the # from the .htaccess file and tryed to bring up the website in the browser and got the same error as when I started. Help!!

falko
19th August 2007, 15:38
What exactly did you enter? Any errors in Apache's error log?

cruz
20th August 2007, 01:32
i entered (ispconnfig) in the box were I was told. Also Were is the apache log files at? I looked in var> log and can not find it. I am using debian 4.0.

falko
20th August 2007, 20:06
i entered (ispconnfig) in the box were I was told.Yes, but what did you enter?

Also Were is the apache log files at? I looked in var> log and can not find it. I am using debian 4.0.They are in /var/log/apache2.

cruz
20th August 2007, 23:13
ispconfig
that is what I entered in the box.
There is nothing in apache2. it is empty.

falko
21st August 2007, 18:36
ispconfigWhy did you enter ispconfig in the Apache Directives field? I thought you wanted to enter something like
DirectoryIndex index.php
#Options -Indexes
#php_flag file_uploads on
#php_flag session.use_cookies on
#php_flag register_globals off
#php_flag session.use_trans_sid off
#php_value include_path "."
#php_value error_reporting 2047
#php_flag display_errors off?
ispconfig is no Apache directive...

There is nothing in apache2. it is empty.What's the output of ls -la /var/log/apache2?

cruz
23rd August 2007, 23:30
Dose the Apache Directives field replace the .htaccess ? If I do enter the lines from the .htaccess to the Directives Field, do I remove the .htaccess from the script?

falko
24th August 2007, 23:35
Dose the Apache Directives field replace the .htaccess ? Yes.

If I do enter the lines from the .htaccess to the Directives Field, do I remove the .htaccess from the script?Yes.

cruz
25th August 2007, 19:25
I wanted to say thank you for your reply. I always get good info from you.