Halfagain IM Forums
May 17, 2012, 07:47 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Install Problem/Question  (Read 1166 times)
0 Members and 2 Guests are viewing this topic.
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« on: March 05, 2006, 17:53 »

Well, I uploaded everything as binary. No problems. However, no CHMOD settings that I have tried, work. When I set /common and /templates to CHMOD 777, the entire public_html goes to 777. (Which is normal I think.) But then I get a 500 server error on everything.

I seem to recall that some systems will not even run a .PHP file at 777. I've tried 755, 766, and 644. I couldn't even run phpinfo.php in the root dir unless I deleted the .htaccess.

Anyone know where to add the Apache Server settings in cPanel or WHM?

Thanks
Saddle
Logged
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« Reply #1 on: March 05, 2006, 18:08 »

My web host told me that I have to add the apache settings in the DNS as an A type entry. Like this:

ServerName IN A yourdomain.com
ServerAlias IN A *.yourdomain.com

I get a bad dotted quad error near 'yourdomain.com'. I think it expects an IP address here, but I DON'T Think this is where this should be added! I think it's something they have to do.

Any Ideas?
Logged
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« Reply #2 on: March 05, 2006, 18:22 »

I get this when trying to run the install.php

/public_html/.htaccess: Invalid command 'php_flag' 'check spelling'

Huh
Logged
blackhands
Newbie
*

Karma: 10
Offline Offline

Posts: 28


« Reply #3 on: March 05, 2006, 19:44 »

Quote from: saddle
Well, I uploaded everything as binary. No problems. However, no CHMOD settings that I have tried, work. When I set /common and /templates to CHMOD 777, the entire public_html goes to 777. (Which is normal I think.) But then I get a 500 server error on everything.

I seem to recall that some systems will not even run a .PHP file at 777. I've tried 755, 766, and 644. I couldn't even run phpinfo.php in the root dir unless I deleted the .htaccess.

Anyone know where to add the Apache Server settings in cPanel or WHM?

Thanks
Saddle



Did you try 666 :cool:
Logged
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« Reply #4 on: March 05, 2006, 20:32 »

I asked the admin to add the Apache stuff. THey did. I add the info to the dns as well. So that's all done.

I found this on the internet:

2) .htaccess "php_" values
If after installing a PHP application that also required htaccess modifications you see an Internal Server Error (Error 500) and your permissions are set correctly, please check your htaccess file for instances of "php_value" or "php_flag".

ThinkHost runs suPHP. suPHP is a tool for executing PHP scripts with the permissions of the owner account - a much more efficient and secure method. What this means is that anything in your .htaccess files that begins with "php_" needs to go in its own file, php.ini.

Special note: The newly created php.ini file contents must be in the format:

option=value
or
option=value

instead of: option value. There is no need to add "php_value" or "php_flag" strings to this file

Once you have created the php.ini file, , in the .htaccess file you would put, for example:

suPHP_ConfigPath    /usr/home/www/username/path/to/

.. where /path/to/ is the path to the application and the php.ini file - do not include the php.ini file name in the path statement.

Tried it, but so far it didn't change anything. I've tried every permission. PHP won't run with 'others' having write access.

Waiting to find out for sure if they run suPHP. But, no go yet.
Logged
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« Reply #5 on: March 05, 2006, 20:37 »

Yes. 666, 770, 750...

I'm waiting to hear for sure if they use suPHP. If so, it doesn't like the php_flag statement as I listed above.

I tried it just now, but my error log reports that it doesn't know what 'suPHP_ConfigPath' is...

I didn't figure I'd spend all day on this!!
Logged
saddle
Newbie
*

Karma: 10
Offline Offline

Posts: 49


« Reply #6 on: March 05, 2006, 21:18 »

Ok, they are using phpsuexec. So no 777. Also because of that, you can't have PHP directives in the .htaccess. I found several sites that say you can put them in a php.ini and make sure it's in the folder that the script executes in. That isn't working for me yet.

I get this error in my error log now: Options ExecCGI is off in this directory: /home/bbbb/public_html/index.php

Is this because of the 'Options FollowSymLinks' in the .htaccess?

I need a beer...

Now what?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!