PDA

View Full Version : ERROR 500 with file .PHP5



blustic
06-03-2007, 03:52 AM
I have an error 500 with file .php5

my options.conf :

default_php=4
php4_cli=yes
php4_cgi=no
php5_cli=no
php5_cgi=yes
apache_ver=1.3
dovecot=no

and in /configure/ap1/configure.php4 I replaced
--with-apxs2 \by
--with-apxs \

How to regulate the problem of error 500 ?

PS: i am french :D excuse my english

edit: I use Debian 3.1

smtalk
06-03-2007, 05:36 AM
Make sure the file is owned by the user (not root) and it has chmod <755.

blustic
06-03-2007, 05:41 AM
Make sure the file is owned by the user (not root) and it has chmod <755.

The file is owned by the user "admin" and chmod is 755 :(

smtalk
06-03-2007, 06:29 AM
Try "./build rewrite_confs".

blustic
06-03-2007, 06:35 AM
sd:/usr/local/directadmin/custombuild# ./build rewrite_confs
Using 193.34.16.xxx for your server IP
make[1]: entrant dans le répertoire « /usr/local/directadmin/custombuild/apache_1.3.37/src »
SSL Certificate Generation Utility (mkcert.sh)
Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.

Generating self-signed Snake Oil certificate [DUMMY]
______________________________________________________________________

RESULT: Server Certification Files

o conf/ssl.key/server.key
The PEM-encoded RSA private key file which you configure
with the 'SSLCertificateKeyFile' directive (automatically done
when you install via APACI). KEEP THIS FILE PRIVATE!

o conf/ssl.crt/server.crt
The PEM-encoded X.509 certificate file which you configure
with the 'SSLCertificateFile' directive (automatically done
when you install via APACI).

WARNING: Do not use this for real-life/production systems

make[1]: quittant le répertoire « /usr/local/directadmin/custombuild/apache_1.3.37/src »
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
sd:/usr/local/directadmin/custombuild#

But I always have an ERROR 500 :(

smtalk
06-03-2007, 06:58 AM
Do "service httpd restart" after it. (P.S. make sure that the directory is chmod <755 too).

blustic
06-03-2007, 07:01 AM
Do "service httpd restart" after it. (P.S. make sure that the directory is chmod <755 too).

I restart service httpd but i always have an ERROR 500 :o

smtalk
06-03-2007, 07:10 AM
Please email me your server details and I'll fix it in seconds ( martynas[at]e-vaizdas[dot]net).

blustic
06-03-2007, 08:10 AM
Please email me your server details and I'll fix it in seconds ( martynas[at]e-vaizdas[dot]net).

Mail sent !!

thank's

smtalk
06-03-2007, 08:24 AM
Ah.. It's PHP 5.2.3, it has some problems with suPHP. Send an email to suPHP mailing-list for that - http://lists.marsching.biz/mailman/listinfo/suphp.

blustic
06-03-2007, 08:42 AM
Ah.. It's PHP 5.2.3, it has some problems with suPHP. Send an email to suPHP mailing-list for that - http://lists.marsching.biz/mailman/listinfo/suphp.

Ok, thank's!

smtalk
06-03-2007, 09:35 AM
Changed CGI install target to php-cgi and 'make install' to install CLI when CGI is selected. (Jani)

I'll fix it into custombuild soon.

smtalk
06-04-2007, 01:08 AM
It's fixed now.

blustic
06-04-2007, 05:34 AM
It's fixed now.
Thank you very much!!! :eek:

work very well! :D :D :)

smtalk
06-04-2007, 05:41 AM
You're always welcome. Thank you for the report.

blustic
06-04-2007, 05:48 AM
You're always welcome. Thank you for the report.

You must also replace
--with-apxs2 \by
--with-apxs \in file "/configure/ap1/configure.php4" ;)

Thank's !

smtalk
06-04-2007, 05:56 AM
Thank you for the report.

smtalk
06-04-2007, 10:16 AM
blustic, it's fixed now.

blustic
06-04-2007, 11:21 AM
blustic, it's fixed now.

Thank you :)

blustic
06-04-2007, 11:35 AM
My second server has an error 500 with file .php5 :confused:

Chmod of file is 755 and owner "admin"

What is the problem ? :(

smtalk
06-04-2007, 12:08 PM
My second server has an error 500 with file .php5 :confused:

Chmod of file is 755 and owner "admin"

What is the problem ? :(
Have you tried:


./build update
./build rewrite_confs
service httpd restart

? If yes, isn't directory chmodded >755?

blustic
06-04-2007, 12:14 PM
ns6675:/usr/local/directadmin/custombuild# ./build update
--21:01:57-- http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
=> `./custombuild.tar.gz'
Résolution de files.directadmin.com... 72.35.85.222
Connexion vers files.directadmin.com[72.35.85.222]:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 65,198 [application/x-gzip]

100%[=================================================================================>] 65,198 119.71K/s

21:01:58 (119.61 KB/s) - « ./custombuild.tar.gz » sauvegardé [65198/65198]

custombuild/
custombuild/build
custombuild/configure/
custombuild/configure/ap1/
custombuild/configure/ap1/configure.php5
custombuild/configure/ap1/configure.apache_ssl
custombuild/configure/ap1/conf/
custombuild/configure/ap1/conf/mime.types
custombuild/configure/ap1/conf/httpd.conf
custombuild/configure/ap1/conf/extra/
custombuild/configure/ap1/conf/extra/httpd-vhosts.conf
custombuild/configure/ap1/conf/extra/httpd-deflate.conf
custombuild/configure/ap1/conf/extra/httpd-info.conf
custombuild/configure/ap1/conf/extra/httpd-alias.conf
custombuild/configure/ap1/conf/extra/httpd-userdir.conf
custombuild/configure/ap1/conf/extra/httpd-languages.conf
custombuild/configure/ap1/conf/extra/httpd-default.conf
custombuild/configure/ap1/conf/extra/httpd-autoindex.conf
custombuild/configure/ap1/conf/extra/directadmin-vhosts.conf
custombuild/configure/ap1/conf/extra/httpd-ssl.conf
custombuild/configure/ap1/conf/magic
custombuild/configure/ap1/configure.php4
tar: custombuild/configure/ap1/configure.php4: tampon date-heure 2007-06-05 01:55:25 sera 17607 s dans le futur
custombuild/configure/ap2/
custombuild/configure/ap2/configure.php5
custombuild/configure/ap2/conf/
custombuild/configure/ap2/conf/mime.types
custombuild/configure/ap2/conf/httpd.conf
custombuild/configure/ap2/conf/extra/
custombuild/configure/ap2/conf/extra/httpd-vhosts.conf
custombuild/configure/ap2/conf/extra/httpd-deflate.conf
custombuild/configure/ap2/conf/extra/httpd-mpm.conf
custombuild/configure/ap2/conf/extra/httpd-multilang-errordoc.conf
custombuild/configure/ap2/conf/extra/httpd-info.conf
custombuild/configure/ap2/conf/extra/httpd-alias.conf
custombuild/configure/ap2/conf/extra/httpd-userdir.conf
custombuild/configure/ap2/conf/extra/httpd-languages.conf
custombuild/configure/ap2/conf/extra/httpd-dav.conf
custombuild/configure/ap2/conf/extra/httpd-default.conf
custombuild/configure/ap2/conf/extra/httpd-autoindex.conf
custombuild/configure/ap2/conf/extra/directadmin-vhosts.conf
custombuild/configure/ap2/conf/extra/httpd-ssl.conf
custombuild/configure/ap2/conf/extra/httpd-manual.conf
custombuild/configure/ap2/conf/magic
custombuild/configure/ap2/cert_config
custombuild/configure/ap2/configure.apache
custombuild/configure/ap2/configure.php4
custombuild/configure/dovecot/
custombuild/configure/dovecot/dovecot.conf
custombuild/configure/proftpd/
custombuild/configure/proftpd/configure.proftpd
custombuild/configure/suphp/
custombuild/configure/suphp/configure.php5
custombuild/configure/suphp/configure.suphp
custombuild/configure/suphp/configure.php4
File already exists: apache_1.3.37.tar.gz
File already exists: configure/ap1/configure.apache_ssl
File already exists: mod_ssl-2.8.28-1.3.37.tar.gz
File already exists: httpd
File already exists: httpd_freebsd
File already exists: httpd_debian
File already exists: mod_frontpage.c
File already exists: Makefile.tmpl.patch
File already exists: frontpage.patch
File already exists: fp-patch-apache_1.3.22
File already exists: fp-patch-suexec
File already exists: mod_frontpage-1.6.1.tar.gz
File already exists: mime.types
File already exists: mod_perl-1.30.tar.gz
File already exists: curl-7.16.2.tar.gz
File already exists: gd-2.0.34.tar.gz
File already exists: libmcrypt-2.5.7.tar.gz
File already exists: mhash-0.9.9.tar.gz
File already exists: zziplib-0.10.82.tar.gz
File already exists: php-4.4.7.tar.gz
File already exists: php-5.2.3.tar.gz
File already exists: webalizer-2.01-10-src.tgz
File already exists: proftpd-1.3.1rc2.tar.gz
File already exists: suphp-0.6.2.tar.gz
File already exists: autoconf-2.61.tar.gz
ns6675:/usr/local/directadmin/custombuild# ./build rewrite_confs
Using ns6675.ovh.net for your server IP
make: *** Pas de règle pour fabriquer la cible « certificate ». Arrêt.
cp: ne peut évaluer `./conf/ssl.crt/server.crt': Aucun fichier ou répertoire de ce type
cp: ne peut évaluer `./conf/ssl.key/server.key': Aucun fichier ou répertoire de ce type
Writing data to /etc/httpd/conf/extra/httpd-suphp.conf
Done.
ns6675:/usr/local/directadmin/custombuild# /etc/init.d/httpd restart
Stopping httpd:
Remaining processes: 23537 23543 23581 23582 23583 26246 26247
Stopping httpd:
Starting httpd: Syntax error on line 76 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_perl.c': not in list of loaded modules

ns6675:/usr/local/directadmin/custombuild#

Apache don't start now :confused:

smtalk
06-04-2007, 12:32 PM
Comment out mod_perl.c in httpd.conf.

blustic
06-04-2007, 12:50 PM
I add in /etc/httpd/conf/httpd.conf :
LoadModule perl_module /usr/lib/apache/libperl.soAnd now apache start :)

but I always have the same error :(

ns6675:/usr/local/directadmin/custombuild# /etc/init.d/httpd restart
Stopping httpd:
Remaining processes: 29812 29845 29846 29851
Stopping httpd:
Starting httpd: [Mon Jun 4 21:35:12 2007] [warn] NameVirtualHost 87.98.223.xxx:80 has no VirtualHosts
[Mon Jun 4 21:35:12 2007] [warn] NameVirtualHost 87.98.223.xxx:443 has no VirtualHosts
[Mon Jun 4 21:35:12 2007] [warn] NameVirtualHost 87.98.221.xxx:80 has no VirtualHosts
[Mon Jun 4 21:35:12 2007] [warn] NameVirtualHost 87.98.221.xxx:443 has no VirtualHosts

ns6675:/usr/local/directadmin/custombuild#

smtalk
06-04-2007, 01:27 PM
Because 87.98.223.xxx and 87.98.221.xxx has no virtual hosts. And it's not an error ;)

blustic
06-04-2007, 01:38 PM
Because 87.98.223.xxx and 87.98.221.xxx has no virtual hosts. And it's not an error ;)

but why I have this error 500 with .php5 file in my second server ? :(

smtalk
06-04-2007, 01:58 PM
Contact me again and I will say where is the problem.

blustic
06-04-2007, 02:05 PM
Contact me again and I will say where is the problem.
Mail sent :)

Thank you

smtalk
06-04-2007, 02:12 PM
-rwxrwxrwx 1 admin admin 25 2007-06-04 18:45 info.php5


It's 777 :) Changed to 755.



[Mon Jun 04 23:00:16 2007] [warn] Directory "/home/admin/domains/test-ag.com/public_html" is writeable by group
[Mon Jun 04 23:00:21 2007] [warn] Directory "/home/admin/domains/test-ag.com/public_html" is writeable by group


I said you to check the directory if its chmod is <755.



drwxrwxrwx 6 admin admin 4096 2007-06-04 22:58 public_html


Now it's 755 and the file is working perfectly ;) Good luck!

blustic
06-04-2007, 02:20 PM
Thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D

Have a good day! ;)

smtalk
06-04-2007, 02:25 PM
Thank you :) Have a good day too! Happy using! :)