Hello,
All Virtualhosts are routing to my default folder. Any Ideas?
Thanks
User Profile
Collapse
-
All Virtualhosts are routing to my default folder.
-
Hello,
check out http://howtoforge.com
here is a tutorial for Apache on CentOS and RH
http://www.howtoforge. com/quick-n-easy-lamp-server-centos-rhel -
A few problems ...
Hello,
I have writen a client server application, when I send a request to the server from the client I get an output that looks like this "ÿûÿû ÿûÿû'ÿýÿûÿýt est" clearly this is odd. How do I remove the misc characters?
Secondly I have the following java code.
Code:String test = "asdasdada {svr_id}"; test.replace("\\{svr_id\\}", "replace");
-
figured it out.
echo -n $"Statting app"
<exe>
PID=$!
echo $PID > "/var/run/app.pid"Leave a comment:
-
Creating a pidfile
How can I get my program to output a pidfile once its finished loading? Thanks -
-
-
-
This wont help, but I have left sky as there service was very poor anyway. As for you emails thats not sky's faut, unless its there email, if it is I sugest you get a new one. Once spammers have your email there is little you can do.Leave a comment:
-
Linux Services
Hello,
I am writing a service for Linux I have written all the code. Here's what’s wrong I hope you can help. When the service runs it checks several things, this need to be visible to the user. Afterward it listens on a port and because its listening it stop and doesn’t return the user to the shell it just carries on waiting. This is a problem when the server start as is obviously doesn’t complete the setup it stops and waits... -
Including MySQL in Installation of Binary
Hey,
I have compiled my application and it works fine connection to a MySQL database. When I move the application onto another computer It cant locate mySQL.h this is resolved by "yum install mysql-devel" however, how do I include MySQL in my project without the need to install mysql-devel on each machine I run my app on.
Thanks -
getline();
Hello,
I am having trouble getting the getline() function in C++ to work I ahve read the references but I'm stilling having a hard time trying to get it to work can anybody help? thanks!
Code:FILE * pFile; char du_sum[50]; string check_dir = ("servers/" + cmd_svrid); string du_dir = ("du -sb " + check_dir); pFile = popen(du_dir.c_str(), "r");
-
woops!
Had a bit of a problem...
cannot convert ‘std::string’ to ‘char**’ for argument ‘1’ to ‘__ssize_t getline(char**, size_t*, FILE*)’
Any ideas?Leave a comment:
-
-
Thankyou :)
Oh one other question. The string goes onto two lines like:
"42342423
<blank>"
how do I just get the first line?
ThanksLeave a comment:
-
Getting numbers out of a string.
Hello,
I am using the Linux command "du -sb /root/" to get the number of bytes of the folder root. This of course returns something like:
1775440949 /root/
the number of bytes changes. How can I get C++ to take the string with "1775440949 /root/" in it a just get the numbers and put them into a separate string.
Thanks -
Is there another way of getting the information of a program running on "screen" on C.
I want to be able to get the last few lines of an console based applciation using C. Is this possible?Leave a comment:
-
yum install mysql-devel
seemed to get some developer packs
Installing:
mysql-devel x86_64 5.0.45-6.fc7 updates 2.5 M
mysql-devel i386 5.0.45-6.fc7 updates 2.4 M
Installing for dependencies:
mysql-libs i386 5.0.45-6.fc7 updates 1.5 M
Updating for dependencies:
mysql ...Leave a comment:
-
-
No activity results to display
Show More
Leave a comment: