June 18, 2010

0

Solving RadiusManager Web Interface

Siamak asked me: After following the installation manual, the admin.php page still showing blank page instead of the login page. Why is that?

My Answer: I'm not a wizard to magically answer your problem... let me check your server.

After checking the server here is some information...

The linux:

[root@localhost html]# uname -a
Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686 i386 GNU/Linux

I try to see what is happening in the /var/log/httpd/access_log...

XX.XX.XX.XXX - - [18/Jun/2011:23:12:03 +0800] "GET /radiusmanager/admin.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19"

so, I can see it is getting 500 error... seems like the server is misconfigured or something.

This RadiusManager is using ionCube to encode the page. Therefore, I think the httpd server haven't configured to use enough memory to parse the file.

What I do to fix this is simply edit the /etc/httpd/conf.d/php.conf and add this line at the bottom...

php_value memory_limit 500M

save the file and restart the httpd server:

[root@localhost html]# service httpd restart


Now, I can see the RadiusManager page. That's all Siamak. Have fun using linux!

Share This Article:


Bookmark This Article:
Feed Me Digg Technorati del.icio.us Best to Stumbleupon Reddit Blinklist Furl Spurl Yahoo Simpy




June 16, 2010

0

Beginning C Programming in Linux

Don't ask a lot to begin C programming in Linux. Just grab your tools and start small. This time, I just wanna show you how to start C programming in linux. You can use any Linux distro. However, if you are beginner, just follow me using Ubuntu Linux.

1. Install the required packages.
First of all, you have to make sure that you have C compiler to compile your code. In linux, we use "gcc - GNU project C and C++ compiler".

In Debian, Ubuntu and it's family distro, all the basic programming tools for C programming can be found in build-essential package. Use this command to install this package:

$ sudo apt-get install build-essential 

2. Write your first program
Now, after installing the required package, we can start coding our first program. As usual, you may start with a "Hello World" program.

Create new project directory
Under your home directory, you may start creating your project directory to begin with. In this example, I'm calling it as myhello:

$ mkdir myhello

Then, get into our project directory:

$ cd myhello

Now, create our hello.c file. You may follow this example "hello world" code or be imaginative to modified it as you like. Experiments to see what is possible to modify in this code:
#include <stdio.h>

int main() {

    printf("Hello My friend, Let's do C programming\n");
}

3. Compile your program.
To compile your first linux C program, launch your terminal and go to current directory where you put your hello.c code. Then, run this command:
$ gcc hello.c -o hello

After that, you will have an executable file called hello in this directory. Congratulations! you have created your first C program in linux. You can now, execute this program using this command:
$ ./hello

The output will be printed on your screen. You can add more stuff and experiments. Until next time, I hope you enjoy this. Happy coding...

Share This Article:


Bookmark This Article:
Feed Me Digg Technorati del.icio.us Best to Stumbleupon Reddit Blinklist Furl Spurl Yahoo Simpy