Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th January 2007, 18:12
high_moon high_moon is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default php is saving!!!? Don't execute!

I've installed a fresh copy of suse10.2 and all components as described in the perfect setup page. Everything works fine. After that I have instaled ISPConfig. All right!!! I am running it on port 81 ok. I created a site and selected it to run php scripts, but when I try to run phpinfo(); the browser give me the download dialog insted of execute the script. What is worong??

Please someone could give me a feedback?
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2007, 18:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Where did you save the phpinfo script (full path)? What's in Vhosts_ispconfig.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st January 2007, 11:43
jdumont jdumont is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default suse 10.2 - PHP5

We have the same problem. We are not able to launch php scripts on ISPConfig & suse 10.2.

Does sombody has an idea?
Thanks!


---

vi /etc/apache2/vhosts/Vhosts_ispconfig.conf

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost xxxxxxxxxx:80
<VirtualHost xxxxxxxxxxx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>

######################################
# Vhost: www.xxxxx.xx:80
######################################
#
#
<VirtualHost xxxxxxxxxxxxxxx:80>
SuexecUserGroup web2_xxxxxxxxx web2
ServerName www.xxxxx.xx:80
ServerAdmin webmaster@xxxxx.xx
DocumentRoot /srv/www/web2/web
ServerAlias xxxxx.xx
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
ScriptAlias /cgi-bin/ /srv/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web2/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 On
php_admin_value open_basedir /srv/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /srv/www/web2/phptmp/
php_admin_value session.save_path /srv/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/srv/www/web2/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 ^/~([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web2/user/$1/web/$3
</VirtualHost>
#
#
Reply With Quote
  #4  
Old 22nd January 2007, 13:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Are there any errors in Apache's error log?
What's the output of
Code:
httpd -t
?
Can you post the link to a PHP script on your server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 22nd January 2007, 14:30
jdumont jdumont is offline
Junior Member
 
Join Date: Jan 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

This is the ouput of httpd -t

Syntax OK

This is a link:

http://www.helena.be/new2/labo.php?p...bo_copywriting

In the error logfile of apache, I see the following errors that can mean something:


[Mon Jan 22 15:27:15 2007] [error] an unknown filter was not added: PHP

[Sun Jan 21 13:54:03 2007] [error] [client ::1] Directory index forbidden by Options directive: /srv/www/htdocs/

[Sun Jan 21 13:54:02 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)


regards
Jurgen
Reply With Quote
  #6  
Old 23rd January 2007, 06:41
batsta batsta is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i'm having the exact same problem with pretty much the exact same setup. any help appreciated. very confused at the moment. i'm sure its something small. i am using suse 10.2 x86_64 though and i am starting to think that is the issue but im just not sure how.
Reply With Quote
  #7  
Old 23rd January 2007, 09:52
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,182
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

Please try to change the line:

$go_info["server"]["apache2_php"] = 'both';

to:

$go_info["server"]["apache2_php"] = 'addtype';

in the file /home/admispconfig/ispconfig/lib/config.inc.php.

Then login to ISPConfig, modify and save the settings of one of your websites to rewrite the Vhost configuration file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 23rd January 2007, 12:40
batsta batsta is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i got no joy with that any other ideas?
Reply With Quote
  #9  
Old 23rd January 2007, 17:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by jdumont
[Sun Jan 21 13:54:03 2007] [error] [client ::1] Directory index forbidden by Options directive: /srv/www/htdocs/
What's in your Apache configuration?

Quote:
i am using suse 10.2 x86_64 though and i am starting to think that is the issue but im just not sure how.
If you'd like to hear a recommendation from me: use another distribution, e.g. Debian. I've never used SuSE on a server, and I know why.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 24th January 2007, 00:22
batsta batsta is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi Falko
i usually am a debian guy how ever through a rushed purchase and being slack (not wanting to re-compile the kernel) i grabbed the first distro that let me use my sata chipset on the replacement motherboard i got. yes i should've researched before purchase but its done now lol so im living with the pain! lesson learnt. i half remember reading something about having to compile php in generic linux or something when installing ispconfig. i'm going to google some more now.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 09:54
ubuntu ispconfig joomla .htaccess steve1084 General 8 6th January 2007 15:55
VirtualHosts marra87 General 9 12th September 2006 04:09
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58


All times are GMT +2. The time now is 11:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.