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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th July 2013, 00:06
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Question Browser downloads php file instead of showing me the web page

Hello,

In Ispconfig 3.0.5.2 on OpenSuse 12 with Apache I have the following problems:

Problem 1.

When i try to access
http://www.mydomain.com/phpmyadmin
or
http://www.mydomain.com/webmail
the browser is not showing anything and php file is downloaded (The "Save as" Window appear).
The problem appeared after my first site was created. Before that everything was great.
Any idea?

Problem 2.

On the address http://My_IP the browser return my first site (in alphabetical order, not web1)
For this problem I found an answer here:

http://www.howtoforge.com/forums/showthread.php?t=61991

This is a solution but I don't think this is the best.


My server was installed using this tutorial:
http://www.howtoforge.com/perfect-se...ot-ispconfig-3
EDIT: single server setup

Thank You in advance!
Reply With Quote
Sponsored Links
  #2  
Old 15th July 2013, 10:23
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts
Default

@Problem 2:
This is the correct solution. You have to enable the default vhost and put your default site there.
__________________
Marius Cramer

pixcept KG
Reply With Quote
The Following User Says Thank You to Croydon For This Useful Post:
scenic2 (15th July 2013)
  #3  
Old 16th July 2013, 14:12
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by scenic2 View Post
Hello,

In Ispconfig 3.0.5.2 on OpenSuse 12 with Apache I have the following problems:

Problem 1.

When i try to access
http://www.mydomain.com/phpmyadmin
or
http://www.mydomain.com/webmail
the browser is not showing anything and php file is downloaded (The "Save as" Window appear).
The problem appeared after my first site was created. Before that everything was great.
Any idea?

Thank You in advance!
I think the problem is about permission of /srv/www/htdocs folder because I made an experiment:
1. Moved folder phpMyAdmin inside to mydomain (/srv/www/clients/client1/web1/web),
2. removed (comment) symlink from /etc/apcahe2/conf.d/phpMyAdmin.conf
3. Trying to access www.mydomain.com/phpMyAdmin

Everything was OK.

So accesing php file from /srv/www/htdocs php script is not executed
Accesing from /srv/www/clients/client1/web1/web everything is OK

What's the problem? Anybody can help me?
Thanks

Last edited by scenic2; 16th July 2013 at 14:24.
Reply With Quote
  #4  
Old 18th July 2013, 11:32
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default

So, nobody knows?
Reply With Quote
  #5  
Old 18th July 2013, 11:48
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts
Default

I think php is not enabled in the main web directory /srv/www so it can not execute php scripts in there.
If you need this you have to create the corresponding php settings for modphp, fcgi etc. in the default vhost.
__________________
Marius Cramer

pixcept KG
Reply With Quote
The Following User Says Thank You to Croydon For This Useful Post:
scenic2 (19th July 2013)
  #6  
Old 27th July 2013, 09:16
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default

I don't know how to do that but i will google it first.
Thanks
Reply With Quote
  #7  
Old 5th August 2013, 13:39
scenic2 scenic2 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 18
Thanks: 8
Thanked 2 Times in 2 Posts
Default Phpmyadmin or webmail is working fine only in mod-php mode.

Quote:
Originally Posted by scenic2 View Post
Hello,

In Ispconfig 3.0.5.2 on OpenSuse 12 with Apache I have the following problems:

Problem 1.

When i try to access
http://www.mydomain.com/phpmyadmin
or
http://www.mydomain.com/webmail
the browser is not showing anything and php file is downloaded (The "Save as" Window appear).
The problem appeared after my first site was created. Before that everything was great.
Any idea?

My server was installed using this tutorial:
http://www.howtoforge.com/perfect-se...ot-ispconfig-3
EDIT: single server setup

Thank You in advance!
OK. I made another (little) step.

Phpmyadmin or webmail is working fine only in mod-php mode.

When I switch to Fast-CGI, CGI, Su-PHP, or PHP-FPM the appear.
So, what should I do? What's the problem?
Can You Help Me?

Thank You!

PS: At the time of installation I chose to change the ISPConfig listen port setting from 8081 (default) to 9091 (my custom port) for instance. Can this be the cause of my problems?
I ask that because in /etc/apache2/sites-available/apps.vhost the port remain 8081 and changing to my new port 9091 apache failed to start.
Reply With Quote
  #8  
Old 5th August 2013, 13:51
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts
 
Default

The port 8081 is the apps vhost. (/var/www/apps)
The port 8080 (or 9091 in your case) is only ISPConfig interface.
__________________
Marius Cramer

pixcept KG
Reply With Quote
The Following User Says Thank You to Croydon For This Useful Post:
scenic2 (5th August 2013)
Reply

Bookmarks

Tags
apache, php, phpmyadmin ispconfig3

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
ioncube install kwickcut Installation/Configuration 6 17th May 2013 22:00
Can't send/recieve mail. (postfix/smtps/smtpd: SSL_accept error from localhost) MON@H Rasta Installation/Configuration 9 1st May 2013 00:48
Tried to compile a kernel but: bryzf Kernel Questions 0 20th January 2013 00:48
Postfix doesn't have Nolan Installation/Configuration 5 13th April 2011 06:00
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


All times are GMT +2. The time now is 20:05.


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