Server on mõeldud veebihostinguks, kuhu siis installitud vajalikud apache, php, mysql jm. vajalik selleks.
Klientide haldamiseks on paigaldatud ISPconfig-3 Kõik on ilus ja kena ...loon kliendid ja muu vajaliku neile ning saidid mühisevad töötada.
Probleem on siis selels kui lähen minudomeen.com aadressile (mis peaks kuvama /var/www sisu) saan 500 errori. Siis kui lähen minudomeen.com/phpmyadmin siis viskab ette akna kus pakub salvestamist või valida programm millega avada
aga kui sinna /var/www katalooma paigaldada *.html leht siis kuvatakse seda ilma probleemideta
Millest selline probleem on tingitud ning kuidas seda lahendada? Nigu saan aru siis ei taha ta *.php lehti kuvada aga samas serveris klientidel lehed töötavad
Muidugi klientide lehed asuvat /var/www/kliendidomeen.com/blablaa kataloomas.
# chown -R www-data /var/www
chown: changing ownership of `/var/www/clients/client1/web1': Operation not permitted
chown: changing ownership of `/var/www/clients/client1/web5': Operation not permitted
chown: changing ownership of `/var/www/clients/client6/web7': Operation not permitted
chown: changing ownership of `/var/www/clients/client3/web3': Operation not permitted
chown: changing ownership of `/var/www/clients/client4/web4': Operation not permitted
chown: changing ownership of `/var/www/clients/client5/web6': Operation not permitted
chown: changing ownership of `/var/www/clients/client2/web2': Operation not permitted
Nüüd kahe klientide veebid 500 erroriga teised OK
Mis nipiga taastada see ???
Töötava kliendi veebi õigused
Kood:
# ls -l /var/www/clients/client1/web1
total 32
drwxr-xr-x 2 root client1 4096 juuli 29 17:57 backup
drwxr-xr-x 2 root client1 4096 juuli 25 18:49 cgi-bin
drwxr-xr-x 2 root root 4096 aug 9 15:47 log
drwx--x--- 2 root client1 4096 juuli 25 18:49 private
drwxr-xr-x 2 root root 4096 juuli 25 18:49 ssl
drwxrwxrwx 2 root client1 4096 aug 9 11:51 tmp
drwx--x--- 8 root client1 4096 juuli 31 08:17 web
drwx--x--- 2 root client1 4096 juuli 25 18:49 webdav
ja mitte töötava ehk 500 errori
Kood:
# ls -l /var/www/clients/client4/web4
total 116
drwxr-xr-x 2 root client4 4096 juuli 30 01:31 backup
drwxr-xr-x 2 root client4 4096 juuli 25 22:38 cgi-bin
drwxr-xr-x 2 root root 4096 aug 9 15:43 log
drwx--x--- 2 root client4 4096 juuli 25 22:38 private
drwxr-xr-x 2 root root 4096 juuli 25 22:38 ssl
drwxrwxrwx 2 root client4 86016 aug 9 15:31 tmp
drwxrwxr-x 11 root client4 4096 aug 8 10:17 web
drwx--x--- 2 root client4 4096 juuli 25 22:38 webdav
on õigused samad aga miks ühel error teisel ei
apache error.log
Kood:
[Fri Aug 09 15:58:01 2013] [error] [client 5.135.178.42] File does not exist: /var/www/bilgi_tamamla.php
[Fri Aug 09 15:58:21 2013] [notice] child pid 5345 exit signal Segmentation fault (11)
[Fri Aug 09 15:59:01 2013] [error] [client 5.135.178.42] File does not exist: /var/www/bilgi_tamamla.php
[Fri Aug 09 15:59:21 2013] [notice] child pid 6418 exit signal Segmentation fault (11)
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
[Fri Aug 09 16:00:01 2013] [error] [client 127.0.0.1] SoftException in Application.cpp:350: UID of script "/var/www/index.php" is smaller than min_uid
[Fri Aug 09 16:00:01 2013] [error] [client 127.0.0.1] Premature end of script headers: index.php
[Fri Aug 09 16:00:01 2013] [error] [client 5.135.178.42] File does not exist: /var/www/bilgi_tamamla.php
[Fri Aug 09 16:00:21 2013] [notice] child pid 7287 exit signal Segmentation fault (11)
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
[Fri Aug 09 16:01:01 2013] [error] [client 5.135.178.42] File does not exist: /var/www/bilgi_tamamla.php
[Fri Aug 09 16:01:21 2013] [notice] child pid 3260 exit signal Segmentation fault (11)
[Fri Aug 09 16:01:35 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:01:35 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:01:35 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:01:35 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:01:51 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:01:51 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
[Fri Aug 09 16:02:01 2013] [error] [client 5.135.178.42] File does not exist: /var/www/bilgi_tamamla.php
[Fri Aug 09 16:02:21 2013] [notice] child pid 8138 exit signal Segmentation fault (11)
[Fri Aug 09 16:02:24 2013] [error] [client 85.25.100.127] File does not exist: /var/www/announce.php
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
Ma ei saa enam ültse aru... samas serveris osad klientide lehed töötavad ja osad ei tööta. Vaatates /var/www katalooma ja eraldi ka klientide kataloomi võrreldes siis kõikidel kataloomadel on samad õigused ja omankud...täielik müstika....
Lähen aadressile kliendidomeen.com on error 500, lähenn kliendi webmaili aadressile kliendidomeen.com/webmail on asi OK ja postkast töötab...
lisan index.html kuvab lehe kenasti aga kui seal pesitseb index.php siis 500 error....
Ausalt ma küsin WHAT A FUCK????
Mitte töötavate klientide kaustades olev error.log räägib sellist asja
Kood:
[Sat Aug 10 08:03:33 2013] [error] [client 177.458.99.72] Premature end of script headers: index.php
[Sat Aug 10 08:03:33 2013] [warn] [client 177.458.99.72] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Nüüd on asi nii kaugel et 500 error on asendunud 403 Forbidden