Jump to content
The Uniform Server Community

Authorization Required


meows
 Share

Recommended Posts

Apart from enabling SSL it looks as if you have enabled the “personal” server features (server access including apanel require a name and password).

 

The following Wiki page explains these features:

http://wiki.uniformserver.com/index.php/5....curity_features

 

To disable name password access edit the following files (.htaccess):

 

Apanel:

File: UniServer\home\admin\www\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Admin Panel 2.0"

#AuthType Basic

#AuthUserFile ../../../htpasswd/home/admin/www/.htpasswd

#Require valid-user

 

Server folder www:

File: UniServer\www\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Server Access"

#AuthType Basic

#AuthUserFile ../../../htpasswd/www/.htpasswd

#Require valid-user

 

Server folder ssl:

File: UniServer\ssl\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Secure Server Access"

#AuthType Basic

#AuthUserFile ../../../htpasswd/ssl/.htpasswd

#Require valid-user

 

 

All the best

Ric :)

Link to comment
Share on other sites

Apart from enabling SSL it looks as if you have enabled the “personal” server features (server access including apanel require a name and password).

 

The following Wiki page explains these features:

http://wiki.uniformserver.com/index.php/5....curity_features

 

To disable name password access edit the following files (.htaccess):

 

Apanel:

File: UniServer\home\admin\www\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Admin Panel 2.0"

#AuthType Basic

#AuthUserFile ../../../htpasswd/home/admin/www/.htpasswd

#Require valid-user

 

Server folder www:

File: UniServer\www\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Server Access"

#AuthType Basic

#AuthUserFile ../../../htpasswd/www/.htpasswd

#Require valid-user

 

Server folder ssl:

File: UniServer\ssl\.htaccess

 

Edit these sections to that shown below:

 

Order Deny,Allow

Deny from all

Allow from 127.0.0.1

 

#AuthName "Uniform Server - Secure Server Access"

#AuthType Basic

#AuthUserFile ../../../htpasswd/ssl/.htpasswd

#Require valid-user

All the best

Ric :)

 

 

Bless you :)

 

Made the changes and restarted Apache.

Now. please and pretty please. How do I add start Mysql to the Admin panel please?

It only has restart Apache and the other goodies. and PHPAdmin after i go in and start Mysql by hand but I would really like to start things in the admin panel..

 

Many thanks *hugs*

Christine

Link to comment
Share on other sites

I am not sure if I fully understand your request.

 

From Apanel under Server Control you can start and stop the MySQL server. :)

 

All the best

Ric :)

Link to comment
Share on other sites

I am not sure if I fully understand your request.

 

From Apanel under Server Control you can start and stop the MySQL server. ;)

 

All the best

Ric :)

 

Actually you can't.

here is the list before I start mysqld-opt.exe

Uniform Server 5.7.3-Nano

Home

 

Server Security

 

phpinfo()

 

Perl Envirnonment

 

Apache Status

 

Apache Info

 

Version Check

 

Server Control

Restart Apache service

 

Configurations

Apache Configuration

 

PHP Configuration

 

Admin Virtual Host

 

Admin Panel Configuration

 

Private Server Configuration

 

Private Secure Server Config

 

MySQL Server Configuration

 

Tools

Error Log Viewer

 

Win - Unix Converter

 

Server Key & Cert Gen

 

Restore MySQL Password

 

Plugin Manager

Install Pear

 

eAccelerator cPanel

 

Miscellaneous

Online Support

 

Documentation

Server Documentation

 

On-line Documentation

Uniform Server User Guide

 

Uniform Server Wiki

 

PHP Documentation

 

MySQL Documentation

 

Perl Documentation

 

Languages

 

Now the list after I start Mysql :o

 

Uniform Server 5.7.3-Nano

Home

 

Server Security

 

phpinfo()

 

Perl Envirnonment

 

Apache Status

 

Apache Info

 

Version Check

 

Server Control

Restart Apache service

Configurations

Apache Configuration

 

PHP Configuration

 

Admin Virtual Host

 

Admin Panel Configuration

 

Private Server Configuration

 

Private Secure Server Config

 

MySQL Server Configuration

 

Tools

phpMyAdmin Now PHPMyAdmin is here but nothing at all MySql Server start or stop

Error Log Viewer

 

Win - Unix Converter

 

Server Key & Cert Gen

 

Restore MySQL Password

 

Plugin Manager

Install Pear

 

eAccelerator cPanel

 

Miscellaneous

Online Support

 

Documentation

Server Documentation

 

On-line Documentation

Uniform Server User Guide

 

Uniform Server Wiki

 

PHP Documentation

 

MySQL Documentation

 

Perl Documentation

 

Languages

English

 

Thank you.

Christine

Link to comment
Share on other sites

This is the intended functionality:

From Apanel under Server Control you can start and stop the MySQL server.”

However as you rightly pointed out:

Actually you can't.” :o

 

Yep! You have found a minor bug. ;)

To correct this, edit the following file:

 

UniServer\home\admin\www\includes\server.inc

 

Navigate to end of file and replace this

<?php if(get_mysql_tracker()=='program'){ //=== MySQL  ?>
 <a target="content" onclick="h(this);" href="server_control.php?sel=start_mysql"?><?php echo  $US['nav-rmysql']?></a>
 <a target="content" onclick="h(this);" href="server_control.php?sel=stop_mysql"?><?php echo  $US['nav-smysql']?></a>
<?php } ?>

With

<?php if(get_mysql_tracker()=='program'){ //=== MySQL  ?>
 <a target="content" onclick="h(this);" href="server_control.php?sel=stop_mysql"?><?php echo  $US['nav-smysql']?></a>
<?php } ?>

<?php if(get_mysql_tracker()=='free'){ //=== MySQL  ?>
 <a target="content" onclick="h(this);" href="server_control.php?sel=start_mysql"?><?php echo  $US['nav-rmysql']?></a>
<?php } ?>

 

Note: After starting or stopping MySQL server Apanel’s navigation menu will no longer reflect correct MySQL state until your browser is manually refreshed.

 

This can be corrected by editing the following file:

UniServer\home\admin\www\server_control.php

 

Add this line:

 update_navigation_menu();				   // update nav

In two places as shown blow:

	print "<p>".$US['start-mysql-txt3']."</p>";   //	 inform user
update_navigation_menu();					 // update nav

print "<p>".$US['stop-mysql-txt2']."</p>";  // inform user server stopped
update_navigation_menu();				   // update nav

Finally add the following function just above the footer include as shown below:

 

function update_navigation_menu(){
print '<script language="javascript">';
print "window.onload = setTimeout('parent.navigation.location.href=\"navigation.php\" ',2000);";
print '</script>';
}

include_once "includes/footer.php";

 

Note: The two-second (2000) timeout is a compromise, however it should be adequate for the servers to have started or stopped before navigation menu checks current server status.

 

All the best

Ric :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...