Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 159 online users. » 0 Member(s) | 155 Guest(s) Applebot, Bing, Google, Yandex
|
Latest Threads |
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 444
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 87,923
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 41,584
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,887
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,370
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 41,439
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 117,521
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 55,424
|
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 45,416
|
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 42,010
|
|
|
install mmcache for php |
Posted by: hijinks - 2005-02-26, 03:35 AM - Forum: LAMP
- Replies (11)
|
 |
Maybe you have heard about Turck MMCache, basically it caches php code into memory to help speed up dynamic content based sites. Its a great little php addon for forums and heavily used sites. This will go through how to install mmcache for your rpm based installs for apache/php on fedora/redhat systems.
First lets download mmcache from sourceforge
Code: wget http://superb-west.dl.sourceforge.net/sourceforge/turck-mmcache/turck-mmcache-2.4.6.tar.gz
Now lets extract it and go into the mmcache source directory
Code: tar zxfv turck-mmcache-2.4.6.tar.gz
cd turck-mmcache-2.4.6
Now we need to set a var. If you are using the standard rpms it will be in /usr so lets set that.
Code: export PHP_PREFIX="/usr"
Now lets compile mmcache
Code: $PHP_PREFIX/bin/phpize
./configure --enable-mmcache=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
Now lets copy over the compiled mmcache module into the same place where the php module is installed for apache. This is just to keep it neater. You are free to put it anywhere you want. Just make sure you make the same changes below when we edit the php.ini file
Code: cp modules/mmcache.so /usr/lib/httpd/modules/
Now lets edit the php.ini file. It is in /etc/php.ini in the rpm installs. We want to add the following lines at the bottom of the file
Code: zend_extension="/usr/lib/httpd/modules/mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"
Now lets make the temp directory for mmcache and then chmod it correctly
Code: mkdir /tmp/mmcache
chmod 777 /tmp/mmcache
Now lets restart apache
Code: service httpd restart
Now just load up a php page on your website and you should see files in the /tmp/mmcache directory. If you don't then change the zend_extension part to extension in your php.ini and then restart apache again.
Using mmcache should increase your php content driven sites around 1-10 times their load times and bring your load down on the server also since your server isn't always re-compiling php pages over and over again
|
|
|
New To Mandrake |
Posted by: NaMu - 2005-02-25, 09:49 PM - Forum: Mandriva
- Replies (2)
|
 |
Hello,
I have been using windows for 5 years now and i wasnt to start learning linux.
I installed Mandrake 10.1 and im not very firmilar with te command so do you guys
have any good tutorials or anyting that can help me get firmiliar with them.
-NaMu
|
|
|
Wildcard in DNS & Apache |
Posted by: hijinks - 2005-02-25, 01:56 PM - Forum: DNS and DHCP
- No Replies
|
 |
Here is a nice idea for people that have like webhosting or just run any websites with subdomains. Also i often type a url like ww.domain.com.
So a wildcard will catch any not matched dns entry and point it to a IP. Say I have this simple dns zone file
Code: NS ns1.domain.com.
NS ns2.domain.com.
NS ns3.domain.com.
domain.com. MX 5 flood.domain.com.
domain.com. MX 20 web2.domain.com.
domain.com. A 66.111.22.33
www CNAME domain.com.
Now I add the following to the end of the zone file for the wildcard
Code: *.domain.com. IN A 66.111.22.33
Now reload named.
Code: service named reload
So that will take all random subdomains people may try and then send them to the IP of my webserver for example. We can easily test that
Code: [root@web1 named]# host bla.domain.com
bla.domain.com has address 66.111.22.33
[root@web1 named]# host jy.rules.domain.com
jy.rules.domain.com has address 66.111.22.33
[root@web1 named]# host AHHHHHHHHH.domain.com
AHHHHHHHHH.domain.com has address 666.111.22.33
So now that bind is all setup we need to do the same for apache. You need to have your virtualhosting setup in apache for this to work
So we add the following simple section at the bottom of the httpd.conf file
Code: <VirtualHost 66.111.22.33>
DocumentRoot /var/www/html
ServerAlias *.domain.com
ServerName www.domain.com
</VirtualHost>
That is very simplified.. so you can always add more entries if needed like the logs or such. Now just restart apache
Code: service httpd restart
Now you should be able to enter ww.domain.com into your browser and it should take you to your website.
|
|
|
Changing directorys like a stack |
Posted by: xDamox - 2005-02-24, 08:09 PM - Forum: Tips and Tricks
- No Replies
|
 |
Heres a little trick on how to change directorys like a stack with push and pop :)
push == add directory to the stack
pop == remote the last directory form the stack
The first thing we are going to do is change to a directory with push this done by
entering pushd /path/ as shwon below.
Code: [damian@localhost ~]$ pushd /home/damian/public_html
~/public_html ~
[damian@localhost public_html]$ pwd
/home/damian/public_html
[damian@localhost public_html]$
Now you can see that the directory has changed if we wanted to go back a directory we would
pop the directory like popd as shown below.
Code: [damian@localhost public_html]$ pwd
/home/damian/public_html
[damian@localhost public_html]$ popd
~
[damian@localhost ~]$ pwd
/home/damian
[damian@localhost ~]$
Well enjoy poping and pushing your directorys :)
|
|
|
Default password for VNC on Debian Starge |
Posted by: Suedish - 2005-02-24, 08:19 AM - Forum: Remote Access
- Replies (2)
|
 |
Hi,
I installed debian starge on my server the other day, and also installed vncserver (or if it came with debian by default ..) on it. However, now that i try to reach it from outside, i get the password prompt of course. And thats then i struck me that i never got the option to choose a password for vncserver ...
So is there some default password for vnc that i can use? Cause i can connect to it, but i dont know the password hehe :)
|
|
|
Doom3/opengl problem |
Posted by: veritas366 - 2005-02-23, 02:12 PM - Forum: nVidia Problems
- Replies (2)
|
 |
I installed, correctly as far as I can tell, the nvidia drivers to my geforce video card. Tuxracer works, for example, and the nvidia splash screen comes up at boot.
I installed the linux doom3 demo to see if it would work and it does not. This isn't that surprising, but the reason it didn't was surprising. The errors are about locating opengl....Here is the actual output:
Code: Running in restricted demo mode.
----- Initializing Decls -----
------------------------------
------- Initializing renderSystem --------
using ARB renderSystem
renderSystem initialized.
--------------------------------------
5151 strings read from strings/english.lang
Couldn't open journal files
couldn't exec editor.cfg
execing default.cfg
couldn't exec DoomConfig.cfg
couldn't exec autoexec.cfg
5151 strings read from strings/english.lang
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Couldn't get a visual
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Couldn't get a visual
idRenderSystem::Shutdown()
Fatal X Error:
Major opcode of failed request: 105
Minor opcode of failed request: 0
Serial number of failed request: 39
BadValue (integer parameter out of range for operation)
Fatal X Error:
Major opcode of failed request: 2
Minor opcode of failed request: 0
Serial number of failed request: 43
BadWindow (invalid Window parameter)
Fatal X Error:
Major opcode of failed request: 4
Minor opcode of failed request: 0
Serial number of failed request: 44
BadWindow (invalid Window parameter)
Sys_Error: Unable to initialize OpenGL
I'm trying to sort out if the error is with the driver or with the game. If it is with the game...oh well, but if this indicates I'm having nvidia driver problems still....I'd like to sort it out.
I note that when I installed the drivers and did the "modprobe nvidia" command, it returned the driver information, but now modprobe nvidia only gets me another command prompt. (Yes, I entered su - before trying it, otherwise it won't even recognize the command.)
Does that indicate that somehow linux (fc3 in my case) can't FIND the module again?
Tux racer still works, which was my way of testing if the driver was installed. Tux racer would not play very well at all before the driver was installed.
Appreciate any clues!
|
|
|
|