Aumentar el Tamaño Máximo al Cargar Archivos con PHP y Apache en Ubuntu 12.04

Mensaje de error

Deprecated function: Array and string offset access syntax with curly braces is deprecated in include_once() (line 20 of /home/fabrikagrafika/public_html/includes/

Solución 1: Modificar php.ini global

$ sudo nano /etc/php5/apache2/php.ini
upload_max_filesize = 10M

También te recomiendo aumentar los valores de post_max_size(tamaño máximo de carga por envío, debe ser igual o mayor al especificado en upload_max_filesize), e incluso el de max_execution_time (tiempo máximo en segundos que el servidor esperará al script para que termine su ejecución, en este caso, la carga de archivos). Por ejemplo:

upload_max_filesize = 10M
post_max_size = 20M
max_execution_time = 120

Guarda el archivo, y sal del editor. Para que los cambios aplicados funcionen, basta con reiniciar Apache.

Solución 2: Usar php.ini local

Básicamente es hacer lo mismo que la solución anterior, la diferencia es que no se modifica el php.ini global, si no que creamos un php.ini local. Este método tiene algunas limitantes:

  • Los efectos del php.ini local no son recursivos a los subdirectorios en donde se encuentre ubicado, así que no basta crearlo en el directorio raíz de nuestro servidor, si no que debemos especificar un php.ini en cada directorio donde queramos obtener el efecto deseado.
  • Puesto que cada php.ini local se toma en cuenta en vez del php.ini global, éstos deben incluir ciertas directivas de compatibilidad necesarias para el web hosting que tengas contratado, por lo que es necesario consultar a tu proveedor por dichas directivas.

Un ejemplo de php.ini local, con directivas de compatibilidad y las que nosotros necesitamos, sería:

zend_extension = /usr/local/ioncube/
register_globals = Off
magic_quotes_gpc = Off
session.save_path = /tmp
memory_limit = 200M
upload_max_filesize = 10M
post_max_size = 20M
max_execution_time = 120

Pero repito, es muy importante consultar la documentación de tu proveedor de hosting.

Solución 3: Usar .htaccess

Crea (o modifica, en caso de que ya exista) el archivo .htaccess en el directorio raíz de tu sitio, blog o aplicación web, o bien, en el directorio donde deseas que las directivas tengan efecto.

Agrega las siguientes líneas (modifica los valores según lo requieras):

php_value upload_max_filesize 10M
php_value post_max_size 20M
php_value max_execution_time 120

A diferencia de la solución anterior, aquí no hay limitantes: los efectos del .htaccess si son recursivos a los subdirectorios donde se encuentre ubicado, y basta con especificar las directivas que nos interesan.


Based Companies Articles
Several entrepreneurs count on a home-based company to begin their path to business success. A preponderance of home-based businesses are linked the internet via social marketing, or e-commerce. Home-based businesses have a number of advantages consisting of simplicity of access with reduced resources prices, not calling for a storage facility of supply, limitless geographic variety, modern technology tools to offer 24/7 customer care, and the ease of producing multiple outlets for your service or products. The challenges for a home-based business are discovering the right niche market, modern technology know-how to establish customer partnership tools for today and also for future growth as well as standard accounting demands. Check out the choices of a home-based business in these Centers.
Popular Topics
by Mary Wickison2 months ago
Do you like the suggestion of having a little farm yet question how you can work from it? Right here are 26 methods to do merely that. All these are possible with a little preparing.
by Heather Walton6 weeks ago
Generate income marketing jeans on today. Jeans to sell include Diesel, True Religion, Paige, and Levi's. Accurate sizes and quality images are a must. Make money marketing denims.
by jacqui20114 years ago
A beneficial quick guide of the best ways to establish and also run your own soap making company from home. Tips and also steps to make your freelance business benefit you.
by Kierstin Gunsberg4 months earlier
With so many direct-sales firms coming and going, right here I study as well as examine the most pertinent as well as existing for stay-at-home-moms.
by Mellisa Louise2 years earlier
If you're a brand-new Avon Independent Sales Rep, you will possibly have some concerns that weren't answered in your initial meeting. Check out these Answers as well as inquiries to find out more about the Avon business.
People from across the world add to HubPages by discussing words as well as pictures Learn more about us a bit by reviewing exactly what day-to-day individuals have to say about Local business & Entrepreneurs, as well as Home-Based Business Ideas The breadth of material on HubPages is wide, yet each post specifies in its very own special way!
Copyright © 2016 HubPages Inc. as well as respective owners.
Various other item and also firm names revealed might be trademarks of their corresponding proprietors.
HubPages ® is a registered Solution Mark of HubPages, Inc
. HubPages and Hubbers (authors) may gain income on this page based upon associate partnerships and also promotions with partners including, eBay, Google, as well as others.

Women, Young More Open On Transgender Issue In U.S.
Exclusive: Women, young more open on transgender issue in U.S. - Reuters/Ipsos poll
The first gender-neutral restroom in the Los Angeles school district is seen at Santee Education Complex high school in Los Angeles, California, April 18, 2016.
Reuters/Lucy Nicholson/Files
NEW YORK Transgender Americans may find greater acceptance in the future, according to a Reuters/Ipsos opinion poll that shows young adults and women more open to people using public bathrooms matching their gender identity.
The issue is polarizing much of the United States, notably in North Carolina, where big businesses and rock stars are boycotting the state over a new law requiring people to use the public restroom matching their birth certificate.
Americans aged 18 to 29 favor letting transgender people use the restroom of their identity by a 2-to-1 ratio. Among Americans aged 60 or more, the ratio was 2-to-1 in reverse with people saying restroom use should be mandated by the gender on one's birth certificate.
Forty-four percent of women favor letting a man who is in transition from male to female into their public toilets, compared to 39 percent who say they must use the facilities matching their gender assigned at birth.
"As long as they're not harming anyone, not harming children, and are dressed as male or female according to the bathroom where they are going, they have the same rights as everybody else," said Debbie Dellera, 65, a Republican and Donald Trump supporter from central New Jersey who participated in the poll.
Overall, the public is roughly split, with 43 percent saying they are closer to the view that people should use public restrooms "according to the biological sex on their birth certificate" compared to 41 percent who opt for "according to the gender with which they identify."
The poll of 2,039 people was taken April 12-18, amid running controversies on the issue in several states, and has a credibility interval of 2.5 percentage points. The credibility interval is 5.5 points for the 18-to-29 subgroup.
The results should be encouraging for advocates of transgender rights, who might also take heart from how rapidly public opinion shifted on the issue of same-sex marriage, said Paisley Currah, an author on transgender issues and a political science professor at Brooklyn College.
"Gender identity is a pretty new term for a lot of people so having effectively an even split on the bathroom question is a very good result," Currah said. "I was pleasantly surprised.
"The gay rights movement in the last few years moved very quickly and I feel like the transgender movement is moving at even greater speed."
The poll found 92 percent of respondents have heard of the term transgender, which refers to a range of people who do not conform to the sex assigned to them at birth, regardless of whether they have undergone any medical procedures toward gender reassignment.
Democrats, by 57 percent to 29 percent, and people in large metropolitan areas are more likely to allow transgender people to use the restroom corresponding to their gender identity. Republicans side with the birth certificate criteria by 64 percent to 23 percent.
New England and the Northeast were the regions most accepting of transgender people choosing restrooms by identity while the Southwest, Southeast and South were most inclined to side with the birth certificate standard.
People who frequently attend church are more than twice as likely to agree with the North Carolina law, although Roman Catholics are evenly split.
Support for transgender rights on the bathroom issues was strongest among those aged 18 to 29, who supported gender identity over birth certificate gender by 62 percent to 29 percent.
For those age 60 or older, 53 percent say transgender people should use the bathroom matching their birth certificate compared to 27 percent who sided with gender identity.
One of the respondents in that majority was Dale Garvey, 76, of Washington state, who raised concerns about "peeping Toms."
He also said he preferred the birth certificate standard in part based on an experience in the late 1980s when a co-worker was in transition from man to woman and made other women uncomfortable when he used their restroom.
"Quite seriously, sometimes we would get a rental car (for work) and people didn't want to ride with him. It gave us an uneasy feeling," Garvey said. "I guess I'm still somewhat biased and still back in the 1900s."
(Reporting by Daniel Trotta)
Trending On Reuters
News and Media Division of Thomson Reuters
Thomson Reuters is the world's largest international multimedia news agency, providing investing news, world news, business news, technology news, headline news, small business news, news alerts, personal finance, stock market, and mutual funds information available on , video, mobile, and interactive television platforms. Thomson Reuters journalists are subject to an Editorial Handbook which requires fair presentation and disclosure of relevant interests.
NYSE and AMEX quotes delayed by at least 20 minutes. Nasdaq delayed by at least 15 minutes. For a complete list of exchanges and delays, please click here

Añadir nuevo comentario

Anonimo HTML

  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Etiquetas HTML permitidas: <a> <hr> <br> <br /> <ul> <ol> <li> <em> <b> <u> <i> <strong> <sub> <sup> <code>
  • Saltos automáticos de líneas y de párrafos.
  • HTML tags will be transformed to conform to HTML standards.

Plain text

  • No se permiten etiquetas HTML.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Saltos automáticos de líneas y de párrafos.
Al enviar este formulario aceptas la política de privacidad de Mollom.