Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th August 2009, 14:38
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Lightbulb httpd and phpmyadmin recirect issue

I generated certificate at cacert.org and used it on 8080 port changes ispconfig.vhost to use certificate. (segure open ssl).

Im using debian and phpmyadmin package donīt have autoconfigurations to put phpmyadmin alias to https. Only for http.

Itīs make sense for use the same certificate if ispconfig operates with ssl put phpmyadmin alias on same virtual host used by ispconfig.

phpmyadmin and ispconfig can share the same host and certificate and all operate on secure connections. because both sending password over networks.

Im copy and paste /etc/apache2/conf.d/phpmyadmin.conf on
/etc/apache2/sites-available/ispconfig.vhost now works perfectlly.

i modified the file on /interface/web/sites/database_phpmyadmin.php to reflect this modifications and tested on debian not on another distros and uploaded to svn.

database_phpmyadmin.php
-----------------------------------
isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http';
($_SERVER["SERVER_PORT"] != '80' and $http == 'https')? $serverPort = ':'.$_SERVER["SERVER_PORT"] : $serverPort = '';
header('location:'.$http.'://'.$serverData['server_name'].$serverPort.'/phpmyadmin');
-------------------------------------
If using segure conections phpmyadmin alias not configured on 443 port (apache2) by default to recive url rediretion. The idea is put alias on same ispconfig host if you using ispconfig with ssl.

Another sugestion is if ispconfig is on https redirect to phpmyadmin on http.
I belive keep all on secure connection itīs better way.

Please give-me a feedback of this modifications, i considered itīs make more sense about phpmyadmin and work with ispconfig.

Itīs a simple modification at the end of file but i can not check impact of this modification on another distros.

Sugestions and comments will be apreciated.
Reply With Quote
Sponsored Links
  #2  
Old 10th August 2009, 16:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

This configuration will not work when ispconfig is running as php-fcgi. You can try this by disabling mod_php in apache. Also we have not used this configuration to separate ISPConfig from phpmyadmin so the system can not be compromised by a phpmyadmin bug.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th August 2009, 16:13
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Lightbulb Sugestion.

Dedicated vhost with mod_php for phpmyadmin on another port with same address and certificate is one way.


Take more liberty to admin choose a url location of phpmyadmin and configure vhost manually to do it.

Options on config at panel to specify a url of phpmyadmin. itīs a great idea no?

or

Options on config.inc.php file to set a url of phpmyadmin itīs more elegant way to solve this issue.

Whats you think about this?
Reply With Quote
  #4  
Old 10th August 2009, 16:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Quote:
Options on config at panel to specify a url of phpmyadmin. itīs a great idea no?
Thats already planned for 3.0.2. Same for webmail URL.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th August 2009, 16:23
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 92
Thanks: 7
Thanked 15 Times in 11 Posts
Exclamation I can help to do it?

Im using a ispconfig 3 on production enviroment.
and i can build a test enviroment and make more code contribibs insted only translation to portuguese.

I have some advanced php skills.

And i can help with bugs fixing all bugs if i can do it.

any adtional question i will use forum to talk with all developers.

actually im a simple user on bugtrack can not take tasks to me. i can not assign then for myself.
Reply With Quote
  #6  
Old 11th August 2009, 12:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
 
Default

Thank you for helping with ispconfig development.

I've adeed your bugtracker user to the developer group, so you can assign tasks to yourself.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Httpd service not running grant-skywalker General 3 30th November 2006 15:04


All times are GMT +2. The time now is 14:58.


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