Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

EduGeek Joomla 1.0 Package Here it is, Sysmans everlasting contribution to education. The pretty website with BIG potential. Get it and advice here.

Go Back   EduGeek.net Forums > EduGeek Projects > Projects: > EduGeek Joomla 1.0 Package
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 11-07-2008, 05:07 PM   #1
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default Optimise PHP & Apache Configuration

Hi

Some of you may know my Edugeek Joomla site is running slow. Someone suggested it could be the PHP configuration. I have attached out PHP.ini file, what changes can i make so speed my site up please? The site url is:
Thanks

Z

Edit: please see below for apache config

Last edited by FN-GM; 22-08-2008 at 09:19 PM..
  Reply With Quote
Old 11-07-2008, 05:25 PM   #2
 
Jona's Avatar
 
Join Date: May 2007
Location: Aberystwyth
Posts: 418
uk uk wales
Thanks: 7
Thanked 42 Times in 42 Posts
Rep Power: 11 Jona has a spectacular aura aboutJona has a spectacular aura aboutJona has a spectacular aura about
Default

Maybe install some caching - both APC and eaccelerator have commented sections in your config so might already be installed, worth having a read up and turning one of them on.

You could turn off some of your php extentions if your not using them. Apart from that nothing that should especially affect performance.

You could turn on gzip compression in apache for your images, etc.

Cheers
Jona

Last edited by Jona; 11-07-2008 at 05:37 PM.. Reason: correction
  Reply With Quote
The Following User Says Thank You to Jona For This Useful Post:
FN-GM (11-07-2008)
Old 11-07-2008, 05:27 PM   #3
 
kgcs's Avatar
 
Join Date: Jul 2005
Location: Bolton, Lancashire
Posts: 181
Thanks: 27
Thanked 4 Times in 4 Posts
Rep Power: 8 kgcs is on a distinguished road
Send a message via Yahoo to kgcs
Default

is this any help

: A HOWTO on Optimizing PHP with tips and methodologies
  Reply With Quote
The Following User Says Thank You to kgcs For This Useful Post:
FN-GM (11-07-2008)
Old 11-07-2008, 05:34 PM   #4
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

Quote:
Originally Posted by Jona View Post
Maybe install some caching - both APC and eaccelerator have commented sections in your config so might already be installed, worth having a read up and turning one of them off.

You could turn off some of your php extentions if your not using them. Apart from that nothing that should especially affect performance.

You could turn on gzip compression in apache for your images, etc.

Cheers
Jona
Hi

most of that means nothing to me

as for the images, it downloads them fast once its started. It seems to be the initial reading of the php file.

Quote:
Originally Posted by kgcs View Post
Thanks i will have a look through that.
  Reply With Quote
Old 11-07-2008, 05:42 PM   #5
 
Jona's Avatar
 
Join Date: May 2007
Location: Aberystwyth
Posts: 418
uk uk wales
Thanks: 7
Thanked 42 Times in 42 Posts
Rep Power: 11 Jona has a spectacular aura aboutJona has a spectacular aura aboutJona has a spectacular aura about
Default

Caching -
See: eAccelerator - Trac
To enable it (if it's installed) uncomment this block in your php.ini
PHP Code:
[eAccelerator]
;
extension=eaccelerator.dll
;eaccelerator.shm_size "0"
;eaccelerator.cache_dir "C:\xampp\tmp"
;eaccelerator.enable "1"
;eaccelerator.optimizer "0"
;eaccelerator.debug "0"
;eaccelerator.check_mtime "1"
;eaccelerator.filter ""
;eaccelerator.shm_max "0"
;eaccelerator.shm_ttl "0"
;eaccelerator.shm_prune_period "0"
;eaccelerator.shm_only "0"
;eaccelerator.compress "1"
;eaccelerator.compress_level "9"
;eaccelerator.keys "shm_and_disk"
;eaccelerator.sessions "shm_and_disk"
;eaccelerator.content "shm_and_disk"
;eaccelerator.admin.name =
;
eaccelerator.admin.password 
Additionally you should be able to comment some of the extentions in the [Extentions] block of your php.ini that your not using an example is:
extension=php_mssql.dll which if your not using a ms-sql database you can turn off. But this shouldn't have that much affect. I'm still slightly at a loose to know why your install is so slow are you sure it's php? Does the php load fast locally?

Jona
  Reply With Quote
The Following User Says Thank You to Jona For This Useful Post:
FN-GM (11-07-2008)
Old 11-07-2008, 05:49 PM   #6
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

What do you do about username and password?

also is it installed with xampp by default?

thanks
  Reply With Quote
Old 11-07-2008, 05:58 PM   #7
 
ZeroHour's Avatar
 
Join Date: Dec 2005
Location: Aberdeen, Scotland
Posts: 1,923
uk uk scotland
Thanks: 91
Thanked 196 Times in 84 Posts
Blog Entries: 1
Rep Power: 45 ZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud ofZeroHour has much to be proud of
Send a message via MSN to ZeroHour Send a message via Skype™ to ZeroHour
Default

We use Xcache here and it gets very good write ups.
  Reply With Quote
Old 11-07-2008, 06:18 PM   #8
 
Jona's Avatar
 
Join Date: May 2007
Location: Aberystwyth
Posts: 418
uk uk wales
Thanks: 7
Thanked 42 Times in 42 Posts
Rep Power: 11 Jona has a spectacular aura aboutJona has a spectacular aura aboutJona has a spectacular aura about
Default

Quote:
Originally Posted by ZeroHour View Post
We use Xcache here and it gets very good write ups.
Yeh me too ZH but Xcache dosn't get installed with xampp but the looks of it eAcclerator and APC do.
  Reply With Quote
Old 11-07-2008, 06:19 PM   #9
 
Jona's Avatar
 
Join Date: May 2007
Location: Aberystwyth
Posts: 418
uk uk wales
Thanks: 7
Thanked 42 Times in 42 Posts
Rep Power: 11 Jona has a spectacular aura aboutJona has a spectacular aura aboutJona has a spectacular aura about
Default

Quote:
Originally Posted by FN-Greatermanchester View Post
What do you do about username and password?

also is it installed with xampp by default?

thanks
I *think* the username and password only matter if you want to use the cache administration console wigget so just set them to what ever I think. I assume it is installed by default but I'm not sure because I use a WAMP stack built from scratch.
  Reply With Quote
Old 11-07-2008, 06:59 PM   #10
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

Quote:
Originally Posted by Jona View Post
Caching -
See: eAccelerator - Trac
To enable it (if it's installed) uncomment this block in your php.ini
PHP Code:
[eAccelerator]
;
extension=eaccelerator.dll
;eaccelerator.shm_size "0"
;eaccelerator.cache_dir "C:\xampp\tmp"
;eaccelerator.enable "1"
;eaccelerator.optimizer "0"
;eaccelerator.debug "0"
;eaccelerator.check_mtime "1"
;eaccelerator.filter ""
;eaccelerator.shm_max "0"
;eaccelerator.shm_ttl "0"
;eaccelerator.shm_prune_period "0"
;eaccelerator.shm_only "0"
;eaccelerator.compress "1"
;eaccelerator.compress_level "9"
;eaccelerator.keys "shm_and_disk"
;eaccelerator.sessions "shm_and_disk"
;eaccelerator.content "shm_and_disk"
;eaccelerator.admin.name =
;
eaccelerator.admin.password 
Additionally you should be able to comment some of the extentions in the [Extentions] block of your php.ini that your not using an example is:
extension=php_mssql.dll which if your not using a ms-sql database you can turn off. But this shouldn't have that much affect. I'm still slightly at a loose to know why your install is so slow are you sure it's php? Does the php load fast locally?

Jona

Just done this rebooted the server and no change.
  Reply With Quote
Old 11-07-2008, 07:09 PM   #11
 
maniac's Avatar
 
Join Date: Feb 2007
Location: Kent
Posts: 1,310
uk uk kent
Thanks: 38
Thanked 69 Times in 59 Posts
Rep Power: 18 maniac is just really nicemaniac is just really nicemaniac is just really nicemaniac is just really nice
Default

Are you sure it's PHP execution time holding up proceedings? It seems like it may be something else to me, as when I've viewed your site once each subsequent refresh is very fast, but it would be re-generating the page each time I press refresh, so if it were a PHP problem I'd expect it to take ages every time.

I would possibly look at your apache configuration, and how the server is configured, as it could be the webserver delaying things, and not PHP.

Just out of interest if you load the page on the server itself after clearing your cache, is it the same speed as viewing it externally??

Mike.

Edit: you might like to try inserting some code in your template to time PHP execution.

Back up your template first of course!

Then put this at the top of the main template PHP code.

$time_start = microtime(true);

<<<<Rest of template code here>>>

Put this at the end after everything else (inside the PHP identifier of course)

$time_end = microtime(true);
$time = $time_end - $time_start;
echo "Page generated in $time seconds\n";

It should give you a time that PHP took to generate the page right at the bottom of every page. I would have used the code boxes, but they seem to have disappeared!

Mike.

Last edited by maniac; 11-07-2008 at 07:18 PM..
  Reply With Quote
Old 11-07-2008, 07:19 PM   #12
 
DMcCoy's Avatar
 
Join Date: Oct 2005
Location: Isle of Wight
Posts: 1,900
uk uk isle of wight
Thanks: 2
Thanked 108 Times in 100 Posts
Rep Power: 29 DMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to all
Default

I did post on the other thread but it got eaten by farsehosts.

If the speed is ok locally and on the same network then it's not a php issue. You say it's on another network. You aren't using ISA to publish the server are you as that has been unbelievebally awful when I used it with a php site in the past, often it would just halt on images.
  Reply With Quote
Old 11-07-2008, 07:20 PM   #13
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

Quote:
Just out of interest if you load the page on the server itself after clearing your cache, is it the same speed as viewing it externally??
Its very fast when i got to htpp://localhost on the Server.

i have attached to apache config, please help

Quote:
Originally Posted by DMcCoy View Post
I did post on the other thread but it got eaten by farsehosts.

If the speed is ok locally and on the same network then it's not a php issue. You say it's on another network. You aren't using ISA to publish the server are you as that has been unbelievebally awful when I used it with a php site in the past, often it would just halt on images.
To be honest i am not 100% but i don’t think it is, i don’t handle that side. We are on a network with our local CLC and the guy there looks after the DMZ. The webserver has been put directly exposed to the internet in front of all the firewalls etc and the same thing happens.
Attached Files
File Type: txt httpd.txt (19.3 KB, 23 views)

Last edited by FN-GM; 11-07-2008 at 07:23 PM..
  Reply With Quote
Old 11-07-2008, 07:24 PM   #14
 
DMcCoy's Avatar
 
Join Date: Oct 2005
Location: Isle of Wight
Posts: 1,900
uk uk isle of wight
Thanks: 2
Thanked 108 Times in 100 Posts
Rep Power: 29 DMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to allDMcCoy is a name known to all
Default

ServerName localhost:80

You could try changing this to the servers IP that may help.
  Reply With Quote
Old 11-07-2008, 07:26 PM   #15
 
FN-GM's Avatar
 
Join Date: Jun 2007
Location: Rochdale, Lancashire
Posts: 4,807
uk
Thanks: 156
Thanked 156 Times in 150 Posts
Rep Power: 37 FN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to beholdFN-GM is a splendid one to behold
Send a message via Skype™ to FN-GM
Default

Quote:
Originally Posted by DMcCoy View Post
ServerName localhost:80

You could try changing this to the servers IP that may help.
Tried that. I tried using the public and the local server IP and i get the same result. I put it back to default after i played with it.
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2.2 configuration saundersmatt Web Development 3 12-07-2008 09:17 AM
Sophos configuration Bobo Windows 4 27-06-2008 10:52 AM
VLAN Configuration robknowles Networks 1 28-05-2008 04:01 AM
Office configuration mseaney Windows 6 01-12-2005 01:38 PM
Scripting IP configuration. Dos_Box Scripts 3 02-09-2005 09:07 AM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump