PDA

View Full Version : ISPConfig Not Running PHPNuke Code!


badgerbox76
6th March 2006, 22:43
I have setup a site using ISPConfig and phpnuke http://monitorwaves.no-ip.org/ i have put the phpnuke files in the sharedip directory which ispconfig has made in the apache directory. PHP Scripts is enabled for this site but it is not runing the code. what is wrong?


ISP Site


Group:
Title:
Folder:


Basis

User & Email

Co-Domains

Statistics

Options

Invoice


Server: Server1
Hostname: www
Domain: monitorwaves.no-ip.org
IP Address: 192.168.0.105
Create DNS:
Create DNS-MX:
Space MB: -1
Traffic MB: -1
Traffic Exceedance: suspend
Max. User: -1
Max. Domain: -1
Shell Access: no
CGI Scripts: yes
Standard CGIs: no
PHP Scripts: yes
PHP Safe Mode: no
SSI: no
FTP Access: yes
MySQL: yes
Number of Databases: 3
SSL: no
Anonymous FTP: no
Anon. FTP MB: -1
WAP: no
Individual Error Pages: no
Mailuser Login: no
Apache Directives
(Optional): None

falko
6th March 2006, 23:12
I have setup a site using ISPConfig and phpnuke http://monitorwaves.no-ip.org/ i have put the phpnuke files in the sharedip directory which ispconfig has made in the apache directory. PHP Scripts is enabled for this site but it is not runing the code. what is wrong?
Why do you put it in the Shared-IP directory and not in the monitorwaves.no-ip.org directory?

badgerbox76
7th March 2006, 00:26
ok i have moved the files to the /var/www/web10/web directory and i am still having the same problems. i have tryed moving the files all over the place to see if i could get them to work but the problem still goes on. what to do now? Also when i login under the client name i have made and select the web-ftp and put in the same user name and password for the client i get a messages the says could not connect myusername. but i can login under my computer user name and password so how can i set ispconfig up to add the user name of the client to the ftp server and have the web directroy only avalible
http://70.34.184.212:8081/

till
7th March 2006, 07:47
ok i have moved the files to the /var/www/web10/web directory and i am still having the same problems. i have tryed moving the files all over the place to see if i could get them to work but the problem still goes on. what to do now? Also when i login under the client name i have made and select the web-ftp and put in the same user name and password for the client i get a messages the says could not connect myusername. but i can login under my computer user name and password so how can i set ispconfig up to add the user name of the client to the ftp server and have the web directroy only avalible
http://70.34.184.212:8081/

First, you will have to enable FTP in the setting of the website. Then create a user and check the "administrator" Checkbox for this user.

badgerbox76
7th March 2006, 22:37
Server: Server1
Hostname: www
Domain: monitorwaves.no-ip.org
IP Address: 192.168.0.105
Create DNS:
Create DNS-MX:
Space MB: -1
Traffic MB: -1
Traffic Exceedance: suspend
Max. User: -1
Max. Domain: -1
Shell Access: no
CGI Scripts: yes
I have enabled FTP if you look at my settings for the site and php but the ftp is not creating accounts for the user and the server is not running the php scripts.

Standard CGIs: no
PHP Scripts: yes
PHP Safe Mode: no
SSI: no
FTP Access: yes
MySQL: yes
Number of Databases: 3
SSL: no
Anonymous FTP: no
Anon. FTP MB: -1
WAP: no
Individual Error Pages: no
Mailuser Login: no
Apache Directives
(Optional): None

till
7th March 2006, 22:46
You added a user to the site and the user does not show up in /etc/passwd ?

badgerbox76
7th March 2006, 23:13
yes i have added a user and then i set the user up with a web site with the settings i just gave.

my password file

GNU nano 1.3.8 File: /etc/passwd

list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
dhcp:x:101:101::/nonexistent:/bin/false
syslog:x:102:102::/home/syslog:/bin/false
klog:x:103:103::/home/klog:/bin/false
admin:x:1000:1000:Administrator,,,:/home/admin:/bin/bash
cupsys:x:100:104::/:/bin/false
fetchmail:x:104:65534::/var/run/fetchmail:/bin/sh
messagebus:x:105:109::/var/run/dbus:/bin/false
hal:x:110:110:Hardware abstraction layer,,,:/var/run/hal:/bin/false
saned:x:111:111::/home/saned:/bin/false
gdm:x:106:112:Gnome Display Manager:/var/lib/gdm:/bin/false
hplip:x:107:7:HPLIP system user,,,:/var/run/hplip:/bin/false
sshd:x:108:65534::/var/run/sshd:/bin/false
bind:x:109:113::/var/cache/bind:/bin/false
mysql:x:112:114:MySQL Server,,,:/var/lib/mysql:/bin/false
postfix:x:113:115::/var/spool/postfix:/bin/false
ftp:x:114:65534::/home/ftp:/bin/false
admispconfig:x:1001:1001:Administrator ISPConfig:/home/admispconfig:/bin/bash

falko
7th March 2006, 23:31
yes i have added a user and then i set the user up with a web site with the settings i just gave.

I guess you mean you created a customer, and under that customer you created a web site?
A customer is not a system user, it is a user that exists only in ISPConfig and can only log in to ISPConfig.

After you have created the web site in ISPConfig, you must go to the "User & Email" tab and create a user there. This user can use FTP and email.

badgerbox76
8th March 2006, 00:16
Thats good news about the ftp and email but what about the php scripts not runing?

Here is how i have set up the options for my site:

Database Name Database User
web11_db1 web11_u1
Mailserver: localmail
Logsize: 30%
DirectoryIndex: index.php

but the server is still opening up index.html. The files that are in this directory http://70.34.184.212:8081/www.americasliberationforce.no-ip.org/web/ are PHPnuke files and i have added the mysql file to the data base.


http://70.34.184.212:8081/

till
8th March 2006, 08:33
Please delete the index.html file from ISPConfig in the web directory.

falko
8th March 2006, 09:49
You must use http://www.americasliberationforce.no-ip.org:8081 instead of http://70.34.184.212:8081/www.americasliberationforce.no-ip.org/web/ becasue the last one is a completely different vhost than the first one, and it's possible that PHP isn't enabled for the last one but is for the first.

badgerbox76
8th March 2006, 13:21
i cant figure out why it is doing this http://70.34.184.212:8081/www.americ...no-ip.org/web/ because i set it up like this

Server:
Hostname: www
Domain: americasliberationforce.no-ip.org
IP Address: 192.168.0.105

i have deleted the index.html flie if you would like to check and see.

www.monitorwaves.no-ip.org or use http://70.34.184.212:8081/ which is my computers host name.

falko
8th March 2006, 20:58
www.americasliberationforce.no-ip.org doesn't exist, I can't connect to it.
When I use americasliberationforce.no-ip.org in my browser, I'm redirected to http://70.34.184.212:8081/. So I guess you created a redirect at no-ip.org instead of creating correct DNS records. Take a look here: http://www.howtoforge.com/forums/showthread.php?t=2697&page=3

badgerbox76
8th March 2006, 21:47
i think i am setting it up right take a looks. http://monitorwaves.no-ip.org/Screenshot-1.png its the exact same why that i have set up monitorwaves exept that monitorwaves is my computers host name. Having a dns problems still does not explain why my php index file is not being run by the php server.

Here are some more screen shots of ISPConfig. Hope it helps
http://monitorwaves.no-ip.org/Screenshot-2.png
http://monitorwaves.no-ip.org/Screenshot-3.png
http://monitorwaves.no-ip.org/Screenshot-4.png

Here is part of my phpinfo page:

PHP Version 5.1.2

System Linux monitorwaves.no-ip.org 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686
Build Date Mar 2 2006 18:17:56
Configure Command './configure' '--with-apxs=/root/ispconfig/httpd/bin/apxs' '--enable-track-vars' '--enable-sockets' '--enable-mbstring=all' '--with-config-file-path=/root/ispconfig/php' '--enable-ftp' '--prefix=/root/ispconfig/php' '--with-openssl=/root/ispconfig/openssl' '--with-mysql=/usr' '--disable-libxml' '--disable-dom' '--disable-xml' '--disable-xmlreader' '--disable-xmlwriter' '--disable-simplexml' '--without-pear'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /root/ispconfig/php/php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*

till
9th March 2006, 08:08
It seems that no-ip.org is making some type of http header redirect.

When i enter americasliberationforce.no-ip.org in my browser, the address line in the browser changes to http://70.34.184.212:8081. This will prevent namebased vhosts from working.

The correct host type in the DNS settings from no-ip is: DNS Host (A). But then you will have to use port 8081 to connect to your webserver if your provider blocks port 80.

badgerbox76
10th March 2006, 02:14
I will play with the DNS some more and see if i can get it working but would you please tell me how to fix the php problem.

My router setup
http://monitorwaves.no-ip.org/Screenshot-5.png

falko
10th March 2006, 09:59
Once you get the DNS problem fixed PHP should work, too.
The problem right now is that you're in the wrong vhost where PHP is disabled.
When the DNS problem is fixed, you'll be in the right vhost, aand if you enabled PHP for that vhost in ISPConfig, it will work.

badgerbox76
10th March 2006, 22:30
Good i will be working with the system over the weekend i will let you know how it goes but i would like to know if i have setup my router correctly? Does it look alright in the picture

falko
11th March 2006, 10:49
Did you post a screenshot of your router configuration? :confused:

badgerbox76
11th March 2006, 20:25
http://70.34.184.212:8081/americasliberationforce.no-ip.org/web/

ok i still can not get this to work and i have just about had it! Would some one be kind and log into my system and fix the problem ? I will set up a vnc or ssh or telnet what ever i just need to get this to work. :mad:

falko
11th March 2006, 20:56
You still have the problem I posted here: http://www.howtoforge.com/forums/showpost.php?p=18518&postcount=17

americasliberationforce.no-ip.org must point to 70.34.184.212, instead it is pointing to 204.16.252.98:

dig americasliberationforce.no-ip.org

; <<>> DiG 9.2.1 <<>> americasliberationforce.no-ip.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43640
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;americasliberationforce.no-ip.org. IN A

;; ANSWER SECTION:
americasliberationforce.no-ip.org. 60 IN A 204.16.252.98

;; Query time: 241 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sat Mar 11 20:56:00 2006
;; MSG SIZE rcvd: 67

badgerbox76
11th March 2006, 22:24
I have reinstalled ISPConfig once today because i could not get the recycle bin to empty( I fix the problem by reinstalling ISPconfig). I dont understany why my domain is pointing to that ip because i have set it up like this http://monitorwaves.no-ip.org/Screenshot.png (They are both port 80 redirects

http://70.34.184.212:81/
http://70.34.184.212:8081/
http://70.34.184.212:443/


My vHost.conf file

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.105:80
<VirtualHost 192.168.0.105:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: americasliberationforce.no-ip.org:80
######################################
#
#
<VirtualHost 192.168.0.105:80>
ServerName americasliberationforce.no-ip.org:80
ServerAdmin webmaster@americasliberationforce.no-ip.org
DocumentRoot /var/www/web3/web
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>
#
#
#

badgerbox76
12th March 2006, 06:13
ok i have changed the dns port to 81 and now i am getting http://americasliberationforce.no-ip.org/ to open up the Shared ip .html document in the sharedip/ directory. i have swaped the files in the dirctory to see if it would run php but it did not. its still not opening the right directory on the server. it should be opening /americasliberationforce.no-ip.org/ i belive or web3/

falko
12th March 2006, 14:41
I dont understany why my domain is pointing to that ip because i have set it up like this http://monitorwaves.no-ip.org/Screenshot.png (They are both port 80 redirects

http://70.34.184.212:81/
http://70.34.184.212:8081/
http://70.34.184.212:443/


I've already told you: http://www.howtoforge.com/forums/showpost.php?p=18227&postcount=13
You're using redirects instead of directly pointing americasliberationforce.no-ip.org to the correct IP address.

badgerbox76
12th March 2006, 19:42
I have changed my dns but i now i can only connect by puting 81 at the end of the address how can i fix this problem if i am not useing a port 80 redirect instead of an DNS.

http://americasliberationforce.no-ip.org
http://www.americasliberationforce.no-ip.org



admin@monitorwaves:~$ host www.monitorwaves.no-ip.org
Host www.monitorwaves.no-ip.org not found: 3(NXDOMAIN)
admin@monitorwaves:~$ host http://monitorwaves.no-ip.org (PORT 80 REDIRECT)
http://monitorwaves.no-ip.org has address 8.4.112.108
admin@monitorwaves:~$ host http://americasliberationforce.no-ip.org (DNS)
http://americasliberationforce.no-ip.org has address 8.4.112.108
admin@monitorwaves:~$


More No-ip Screen shots to show you how i have it set up
http://monitorwaves.no-ip.org/Screenshot.png
http://monitorwaves.no-ip.org/Screenshot-1.png
http://monitorwaves.no-ip.org/Screenshot-2.png
http://monitorwaves.no-ip.org/Screenshot-3.png
http://monitorwaves.no-ip.org/Screenshot-4.png
http://monitorwaves.no-ip.org/Screenshot-5.png

I just changed the domain name in ispconfig from americasliberationforce.no-ip.org to monitorwaves.no-ip.org because i belive that monitorwaves is working but i got this http://monitorwaves.no-ip.org/www.monitorwaves.no-ip.org/web/ and the code still does not run.


admin@monitorwaves:~$ sudo /etc/init.d/apache2 force-reload
* Forcing reload of web server (Apache2)... [Sun Mar 12 21:49:27 2006] [warn] NameVirtualHost 192.168.0.105:80 has no VirtualHosts
[Sun Mar 12 21:49:28 2006] [warn] NameVirtualHost 192.168.0.105:80 has no VirtualHosts
[ ok ]
admin@monitorwaves:~$

till
13th March 2006, 10:02
Have you asked your dsl / cable provider if they block port 80?

falko
13th March 2006, 11:41
americasliberationforce.no-ip.org and monitorwaves.no-ip.org are pointing to two different IP addresses:

dig americasliberationforce.no-ip.org

; <<>> DiG 9.2.1 <<>> americasliberationforce.no-ip.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42762
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;americasliberationforce.no-ip.org. IN A

;; ANSWER SECTION:
americasliberationforce.no-ip.org. 60 IN A 70.34.184.212

;; Query time: 208 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Mon Mar 13 11:38:28 2006
;; MSG SIZE rcvd: 67

mh1:~# dig monitorwaves.no-ip.org

; <<>> DiG 9.2.1 <<>> monitorwaves.no-ip.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61926
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;monitorwaves.no-ip.org. IN A

;; ANSWER SECTION:
monitorwaves.no-ip.org. 60 IN A 204.16.252.98

;; Query time: 210 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Mon Mar 13 11:38:45 2006
;; MSG SIZE rcvd: 56 so one of them is pointing to the wrong one...

badgerbox76
13th March 2006, 22:20
If you look at the screen shots i gave you it shows that ip i have set these domains to. Yes my isp does block port 80 is cabel and i pay $50 US a mouth which is ALOT! :mad: but speed is not cheep :D

falko
13th March 2006, 23:16
http://americasliberationforce.no-ip.org:8081/ is working.

Which port do you have in Vhosts_ispconfig.org? You must have 8081 instead of 80 there.

badgerbox76
14th March 2006, 01:47
I can see that the domain is working but why is the php code not running and why is it not takeing me to the correct directory right away?

ports.conf

Listen 80
Listen 443
Listen 8081


vHost.conf

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.0.105:80
<VirtualHost 192.168.0.105:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.monitorwaves.no-ip.org:80
######################################
#
#
<VirtualHost 192.168.0.105:80>
ServerName www.monitorwaves.no-ip.org:80
ServerAdmin webmaster@monitorwaves.no-ip.org
DocumentRoot /var/www/web3/web
DirectoryIndex index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web3/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>
#
#
#


Could this be my problem? http://www.howtoforge.com/forums/showthread.php?p=18943#post18943

till
14th March 2006, 09:03
The ISPConfig vhosts where listening on port 80:

<VirtualHost 192.168.0.105:80>

and not port 8081. You will have to edit the PHP function make_vhost(.....) in the file /root/ispconfig/scripts/lib/config.lib.php and change line 1206 from:

$web_port = ":80";

to:

$web_port = ":8081";

Then change something in the settings of this website, then ISPConfig will rewrite your Vhost_ispconfig.conf file.

badgerbox76
15th March 2006, 02:57
after makeing these changes i was unabel to use my brower and still can not use it or connect to any websites. i have changes the port back to 80 but still i cannot use my brower. now i cant even connect to the server or log into ispconfig.

till
15th March 2006, 07:59
now i cant even connect to the server or log into ispconfig.

The changes in this file cannot prevent you from connecting to your server. Waht else have you changed?

badgerbox76
15th March 2006, 17:49
Thats the only thing so i am going to uninstall the program when i get home, i am at school right now. Could you give me the command for uninstalling ISPConfig

till
15th March 2006, 19:08
The command is:

/root/ispconfig/uninstall

falko
15th March 2006, 22:41
Are you sure you changed all ports in the Apache configuration and also in the ISPConfig source code?

badgerbox76
15th March 2006, 23:18
the ports in ports.conf are 80 8081 and 443 i changed the port in the ispconfig file from 80 to 8081 and thats when i had probles but i will reinstall the software and try again. :rolleyes:

falko
16th March 2006, 11:48
You can remove port 80 from ports.conf. You must also check all the other Apache configuration files and replace 80 with 8081.