new user no php

theplayer

Verified User
Joined
Jan 26, 2009
Messages
69
Strange issue.

I have a couple of domains on a server with Debian 5 and DA. All the domains seems to be working correctly with php etc...

Now i'm making a new user/domain and htm(l) works but *.php don't work. I have restart everything but no go for the new user. I allready add some test users and all users can't use *.php files, you will get this error:

Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2 Server at 212.115.192.78 Port 80

Strange thing i have found on further investigation is this:

If i go to: http://www.kiddingyou.com/check/index.php it works

And if i go to: http://212.115.192.78/~kiddingyou/check/index.php i get the above error, but its the same page. only differents is that the first one is a real domain name and the second one is the name for users witch don't have a real domainname. What can be the problem ? and ofcourse how can i fix this?
 
This is the only error:

[Mon Dec 14 20:53:28 2009] [error] [client 82.176.176.4] No user or group set - set suPHP_UserGroup
[Mon Dec 14 20:53:28 2009] [error] [client 82.176.176.4] File does not exist: /var/www/html/500.shtml
 
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
 
if i run the commando
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
it does nothing ?
 
Last edited:
Its not supposed to it runs commands in the background. Wait about 1-2mins after running it and then check to see if it fixed the problem.

If it does not then do this:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build suphp d
./build php d
./build apache d
./build rewrite_confs
 
i get this message at the end:


Code:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Stopping httpd:
Remaining processes: 1728 2399 2641 2687 2689 2887 2894 2904 11214 11728 11729
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

theplayer:/usr/local/directadmin/custombuild# ./build rewrite_confs
 
Can't find the solution that http://ip-address/~username won't work anymore. (only html files works, php don't)

Any one idea's? i think its just a small problem?

@ scsi, maybe you want to take a look on the server? lett me know! (can't pm you)
 
Last edited:
I do believe that suphp does not support apache userdir. I get internal server errors on my server as well when trying to go to ~username
 
It have workt till last week...

I work alway's with http://ip-adres/~username because all my test sites, cms systems etc... are first tested on this system.

Is there a way to fix it again on DirectAdmin and Debian 5?


I do believe that suphp does not support apache userdir. I get internal server errors on my server as well when trying to go to ~username
 
Ok this was the solution for all users who have allready an account.

All new users it didn't work :(

Old user: http://212.115.192.78/~kiddingyou/check works now

New user:

http://212.115.192.78/~theplayer2/check don't work (and all other new accounts/users...

I get still this error by new users only:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2 Server at 212.115.192.78 Port 80


 
can you please post the httpd.conf of a non working user.

It is located at /usr/local/directadmin/data/users/yournonworkinguser/httpd.conf
 
Hmmmm old users it work, users before the solution (theplayer2) don't work, users after solution work.

Here you have the conf file of theplayer2 with the error. i have take a look to new user (theplayer3) conf file and it looks exact the same....

Code:
ServerRoot /etc/httpd



<VirtualHost 212.115.192.78:80>


        ServerName www.theplayer2.nl
        ServerAlias www.theplayer2.nl theplayer2.nl
        ServerAdmin [email protected]
        DocumentRoot /home/theplayer2/domains/theplayer2.nl/public_html
        ScriptAlias /cgi-bin/
/home/theplayer2/domains/theplayer2.nl/public_html/cgi-bin/

        UseCanonicalName OFF

        SuexecUserGroup theplayer2 theplayer2
        CustomLog /var/log/httpd/domains/theplayer2.nl.bytes bytes
        CustomLog /var/log/httpd/domains/theplayer2.nl.log combined
        ErrorLog /var/log/httpd/domains/theplayer2.nl.error.log

        <Directory /home/theplayer2/domains/theplayer2.nl/public_html>
                Options +Includes -Indexes



                suPHP_Engine ON
                #suPHP_UserGroup theplayer2 theplayer2

        </Directory>



</VirtualHost>



<VirtualHost 212.115.192.78:443>

        SSLEngine on
        SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
        SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key


        ServerName www.theplayer2.nl
        ServerAlias www.theplayer2.nl theplayer2.nl
        ServerAdmin [email protected]
        DocumentRoot /home/theplayer2/domains/theplayer2.nl/private_html
        ScriptAlias /cgi-bin/
/home/theplayer2/domains/theplayer2.nl/public_html/cgi-bin/

        UseCanonicalName OFF

        SuexecUserGroup theplayer2 theplayer2
        CustomLog /var/log/httpd/domains/theplayer2.nl.bytes bytes
        CustomLog /var/log/httpd/domains/theplayer2.nl.log combined
        ErrorLog /var/log/httpd/domains/theplayer2.nl.error.log

        <Directory /home/theplayer2/domains/theplayer2.nl/private_html>
                Options +Includes -Indexes



                suPHP_Engine ON
                #suPHP_UserGroup theplayer2 theplayer2

        </Directory>



</VirtualHost>


Its just one user now, so its not a big deal to delete the user and make an new account with the same username. It must be work again.


can you please post the httpd.conf of a non working user.

It is located at /usr/local/directadmin/data/users/yournonworkinguser/httpd.conf
 
Last edited:
Back
Top