David Slack - Web developer

php.ini

Chances are your hosing wont be exactly right for what you want, but that OK, you have the power to change it with php.ini...usualy!

  1. Login to your cPanel
  2. Click File Manager
  3. Click into your public_html folder
  4. Select 'New file' from the top
  5. In the new window type 'php.ini' (without the speech marks)
  6. Click the Create new file button
  7. Click the file php.ini
  8. Click 'Edit' at the top and click edit from the little window
  9. Click on the white page and add this:
    {syntaxhighlighter brush: plain;fontsize: 100; first-line: 1; }expose_php = Off max_execution_time = 1600 max_input_time = 1600 memory_limit = 128M upload_max_filesize = 10M post_max_size = 80M <IfModule mod_php5.c> php_value include_path ".:/usr/local/lib/php" php_admin_flag safe_mode on </IfModule> <IfModule mod_php4.c> php_value include_path ".:/usr/local/lib/php" php_admin_flag safe_mode on </IfModule>{/syntaxhighlighter}
  10. Click 'Save changes' then 'go back to the File Manager.'

Comments

I know this tutorial is for Drupal  6 but for Drupal 7 i had to add these lines as problems with regeistered globals being set to "on". This only happened in 1 out of two D7 installations. 
 
register_globals = off
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
 

Dave's picture

Yep, depends on the server setup.

D6 is very much out of date now, I'll probable update this for Symfony and D8 soon

I do websites, me

Add new comment

Latest content

There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some...
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent...
The Lost and Found website was built by myself (David Slack) and designed by Arm & Eye.The site was created to promote a bar and...

Social networks

Contact me here or catch me on one of
the social networks below


What I'm listening to

My blog

Wednesday, 2 August, 2017 - 06:56
There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some developers...
Tuesday, 5 March, 2013 - 09:49
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent learning...
Monday, 3 December, 2012 - 10:07
As a web developer and web designer I need to take into account everything on a site from SEO, marketing, usability across devices, the look and feel...

Recent comments

Try this on your mobile

Use your QR reader to read this

You should be able to use this right from the screen

Latest tweets

Calendar

M T W T F S S
 
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31
 
 
 
 
 
 
 

You are here

Back to top

Copyright David Slack - Web developer