Ubuntu Servers :: Apache2 + PHP5 And Fileuploads Via POST - 1GB

Feb 22, 2010

my server :

ubuntu jaunty 9.04 32bits
apache2 2.2.11-2ubuntu2.5
php5 5.2.6.dfsg.1-3ubuntu4.5

I have a problem uploading large files : from 0 to 1 048 576 000 octet (1000mega) : OK greater... KO... i mean even no file uploading temporaly in /tmp I have tried using "jyraphe" or "openupload" in the server part and from mozilla or IE in the client part.... always the same thing...

php.ini :
post_max_size = 5G
upload_max_filesize = 5G

I even set "LimitRequestBody 10000000000" in /etc/apache2/sites-available/default thinking the default value (not set OR 0) didnt work but...

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Seg Fault With Apache2 (SSL) And PHP5-Curl

Jun 3, 2010

I'm trying to run apache2 with mod_ssl and php support and I need curl too. When php5-curl is installed apache doesn't work with ssl and I've got this one in error.log:

Code:
[Thu Jun 03 10:00:39 2010] [notice] child pid 26013 exit signal Segmentation fault (11)
[Thu Jun 03 10:00:39 2010] [notice] child pid 26014 exit signal Segmentation fault (11)

It's strange because it works well without ssl. The problem occures only when I'm trying to access and SSl page, doesn't matter if it's a html page or php file. I'm using Ubuntu 10.06 Desktop version which is x64. Below are the packages which I've got installed related to apache php and curl. I successfully compiled php5 from source, but the problem still exists so probably it's somewhere in apache?

View 7 Replies View Related

Server :: Apache2 SVN Post-commit Script Certificate Error Post-commit Hook Failed (exit Code 1) With Output?

Oct 12, 2009

I am using apache2 with subversion and trying to get post commit script to run an svn update command. All svn commands seem to work fine manually

Everything used to work fine but then the server ip changed and I can no longer access it with the web name and have to use the ip directly

I am using tortoise svn with vista on my work machine

Here is the script

#!/bin/sh
export LC_CTYPE=en_US.UTF-8
/usr/bin/svn update /home/common/webroot/bob

Here is the result.

Command: Commit
Modified: C:UsersMattDesktopcheckout - bobindex.php
Sending content: C:UsersMattDesktopcheckout - bobindex.php
Completed: At revision: 63
Error: post-commit hook failed (exit code 1) with output:
code....

I think what i need to do is update the certifcate for the apache2, but I'm not sure how to do this, where to put it, and then which of the thousand apache config lines needs to be changed

View 5 Replies View Related

Ubuntu :: Can't Seem Php5 Work With Apache2

May 12, 2010

I can't seem php5 work with apache2. I am getting the text openning instead of php. I think this is infamous problem, found many suggestions adding AddType application/x-httpd-php .php, did that in/etc/apache2/apache2. conf and /etc/apache2/httpd.confwith no luck, it's still opening text

View 6 Replies View Related

Ubuntu :: Cannot Install Mysql, Php5 And Apache2 Server On 10.04?

Aug 4, 2010

currently I am using Ubuntu 10.04.I want to install mysql, php5 and apache2 server in my machine. I have tried this- aptitude install mysql-server mysql-client

But the outcome is
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

[Code]...

View 2 Replies View Related

Ubuntu :: Apache2 Server Configuration With MySQL And PHP5

Jul 2, 2009

I am new to linux. Currently I am using ubuntu 8.10 desktop operating system. As part of my academic project. I need to configure webserver to access from external. I installed all these using apt-get packages but when it comes to configuration. I am really not understanding. I read some documentation about this configuration but I couldn't get and fully in confused. I formatted my machine 3 times. When I tried to use localhost in firefox its working fine.

1. I need to change port from 80 to 7574. In port.conf I changed, in place of 80. I kept 7574. After that I restart and tried to access but its not working.

2. My admin provide to me. 7574 port to route it into my machine. When the user hits for suppose:
59.160.188.190:7574/project/route.html
It should goes to:
192.168.202.236:7574/project/route.html
Project folder is in /var/www
I wrote the form, to update user vehicle details. They can able to update their details in mysql server from any where.

3. Just I need the application user can access my files and update from their desktop by using path:
59.160.188.190:7574/project

How to update user details (there is no login form is directly visible to every one) in server from their desktop. What I need to configure.

View 1 Replies View Related

Ubuntu Servers :: Use PHP5.2 Instead Of PHP5.3?

May 3, 2010

I'd like to use PHP5.2x instead of PHP5.3x on my Ubuntu 10.04. There is a small bug in Drupal where tweaking Views causes an error which seems to be associated with php5.3.

So, how would I regress to using 5.2x on Ubuntu?

View 1 Replies View Related

Debian Configuration :: Can't Get Php5 To Run In Apache2 Userdirs (Squeeze)

Aug 11, 2010

I'm running an up-to-date install of Squeeze, and I'm having an annoying issue where php5 won't parse in userdirs (/home/*/public_html), although it works fine in the main document root (/var/www). I found this bug: [URL] Which seems to say the issue is fixed. However, the last comment for this bug suggests it is still an issue for some.

I've had a look at: /etc/apache2/mods-enabled/php5.conf and commented out the lines suggested in the comment:

[Code]....

..and it still doesn't work. I've googled this and can't find an answer. Anybody know? Am I missing something simple?

View 1 Replies View Related

Server :: PHP5 And Apache2 Parsing Code But No Output?

May 2, 2010

I have apache 2.2.3 installed with php5 and libapache2-mod-php5. The server displays web-pages fine, but when I try to load a .php file, nothing shows up. There aren't any errors, not in the browser and not in the Apache2 error logs... just nothing shows up. When I look at the page source on the browser, all the HTML code is there, but all the PHP code is gone, as though it was parsed. I can't get any output to show up though, echo and print both do nothing.What could be the problem?Example:

Code:
<html>
<body>

[code]...

View 7 Replies View Related

Software :: Apache2 Won't Serve Php5 In Home Directory?

May 21, 2010

Running Ubuntu 10.04

Installed apache2 and php5 and it works in /var/www

but once I point it to a home directory it won't serve php. Normally I have used phpcgi but I am currently trying to use regular php.

Here is my default file.

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/greensmoothiegirl/public_html
<Directory />

[Code]....

View 4 Replies View Related

Ubuntu Servers :: PHP5 Can't Reach From Outside LAN?

Jun 23, 2011

I have just installed ubuntu Server with Apache2, PHP5, MySQL and PhpMyAdmin.
Everything works fine when I access the server on the LAN. I have forwarded port 80 in my router to the LAN ip of this server. (I have other windows based web servers so I am familiar with port forwarding) however when I try to access the server from the true static IP outside the LAN I cannot reach it and the connection just times out with the Ubuntu server connected if I use canyouseeme it says port 80 is closed. If I replace the Ubuntu server with another server I can reach this just fine from outside and canyouseeme says the port is open. So I am pretty darn sure the router is correct and that there is some config problem with the Ubuntu box, but I cannot find it. the ports.conf file has listen 80 in it and the apache2.conf includes the ports.conf file.

View 2 Replies View Related

Ubuntu Servers :: Php5 Installation Directory

Jun 9, 2010

I have installed LAMP on ubuntu server 10.04. where can i find the installation folder...the extension folder and so on ? i tried the command locate php but it didnt return the path i wanted.

View 2 Replies View Related

Ubuntu Servers :: Can't Use Mysqli() With Php5 / Show That?

Apr 10, 2011

When try to do a database query with php5 and mysql. I encounter this error:

Code:
Fatal error: Call to undefined function mysqli()
while phpinfo() says mysqli support is enabled? What's wrong in this picture?

View 1 Replies View Related

Ubuntu Servers :: 10.04 LTS - PHP5 Email Contact Form

Nov 24, 2010

I am running Ubuntu 10.04LTS on a server. I am trying to make an e-mail contact form. When I hit submit, it says the message was sent. I check my e-mail and I don't see it. Does it not work with gmail? or do I need to use a system username@mydomain.net? This is the PHP mailer.

Code:
<?php
if(isset($_POST['submit'])) {
$to = "myemail@mydomain"; #This is set to my gmail.com e-mail.
$subject = "Unserv Form";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];

$body = "From: $name_field
E-Mail: $email_field
Message:
$message";

echo "Message was sent!";
mail($to, $subject, $body);
} else {
echo "Error, it did not work! Please mention this to admin@unserv.net!";
} ?>

This is a snip of HTML from the contact site:
Code:
<form method="POST" action="sndmsg.php">
Name: <input type="text" name="name" size="19"><br>
<br>
E-Mail: <input type="text" name="email" size="19"><br>
<br>
Message:<br><textarea rows="20" name="message" cols="50">

View 6 Replies View Related

Ubuntu Servers :: PHP5 LAMP Configuration Break?

Mar 4, 2011

I've recently setup LAMP on my VPS.I believe I may have broken the PHP configuration somehow, not 100% sure exactly how, but I'm getting internal server errors upon loading .php files.

*Edit* phpmyadmin still runs fine so maybe there's an error in my Apache configuration or my VirtualHosts?

View 3 Replies View Related

Fedora Servers :: Enable .php5 File Extension?

Sep 15, 2009

Platform information:
Fedora 11
HP a1250n PC w/3Gb RAM and 2Ghz (?) CPU
PHP v5 and Apache 2.2

The situation I've got is that my PHP and Apache installs do not recognize files with the .php5 file extension. I can successfully open .php files in my browser just as I have designed them. However, when I try to open a .php5 file in my browser, it simply outputs the code and not the web page (as it should). I've pasted (what I believe to be) the relevant parts of the output from phpinfo() command below. Any help correcting this is greatly appreciated as I have searched the forums and the Internet fairly exhaustively with various different keywords and still have come up empty. I think if I could figure out how to add ".php5" to the list of "Registered PHP Streams" then I would be all set, but I can't figure that out. I also tried copying /etc/php.ini to /etc/php.d/ and re-naming it php5.ini, but this did not work.

Clem
Configure Command
'./configure' '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--

[code]....

View 3 Replies View Related

Ubuntu Servers :: Mod_rewrite Breaks PHP Post

Aug 29, 2010

My .htaccess file looks like this:

Code:
Options -indexes
RewriteEngine on
RewriteBase /

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Limit To The Size Of POST Variables?

Mar 3, 2011

I have a problem with a PHP/Apache program.

The website creates a RPG character through a traditional Wizard. It calls itself with a hidden variable being the page number and tests which page and returns the page data with the page incremented.

Each page should be treated as a seperate page and so would be unique. I am echoing the contents of POST to the top of the page and so I can see variables being returned. When I get data from an Ajax query from page three it saves the data (23 post fields of no more than 25 characters for each field). Page four does the same but with less fields - but it is NOT returning the data - only four fields being those that were originally posted.

I cut/paste the function from section three to section four and changed the displayed text and the names of variables to test so there are no code errors, since page three works and is saved to a database.

So the only option is that there is a PHP or Apache2 issue when POST variables are returned? I am completely out of ideas as to why this would even be an issue or how it could possibly appear.

Is the number of variables an issue? This page is less than the previous page.... And the form is POSTed...

PS: I am getting NOTICE errors from PHP being the POSTed variables that are not displayed/returned... I used:

error_reporting (E_ALL ^ E_NOTICE);

to stop these form being reported but do I need to test each one? PPS: Using If Isset($_POST['xxx']) does NOT allow that variable through...

PS: I have the default Ubuntu 10.04 Apache2 with all the ubuntu 10.04 updates...

View 3 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Cant Uninstall Apache2?

Apr 9, 2011

So i want to remove Apache2 so i can compile my own edited version. But when i do it says that it cant remove it. here is a 'log':

Code:
geisst@ubuntu:~$ sudo apt-get purge apache2
Reading package lists... Done

[code]....

View 5 Replies View Related

Ubuntu Servers :: Check SSH Settings Post Upgrade / Pre Restart?

Aug 30, 2010

I just rented a godaddy dedicated, the ubuntu variety comes loaded with 8.04...(& I need PHP 5.3)Followed the directions here: URL...I did have to change my sources.list, everything after that went as expected (not like i'd know what to expect)At one point it asked if I wanted to update my grub/menu.lst to the release version, or use my old one, I updated it.Once the upgrade completed, I checked the menu.lst again to ensure it was gonna boot 10.04 (as warned by the guide)However once I sent reboot, I couldn't SSH back in, I waited 5m, 15m, tried again, still couldn't SSH then I had the server power cycled via my godaddy control panel, and still nothing, attempts on port 22 timed out & other ports were refused.

I think I overlooked something because, from what I've read here and there this is technically possible, I also just found this guide here:URL...The first user comment (above link/guide) seems to have a tip for what I'm trying.Anyways had the server re-provisioned via my control panel & I'm about to try again, only this time. uh, check the SSH settings post upgrade/pre restart?

View 9 Replies View Related

Ubuntu Servers :: Apache2 Fails To Start ?

Jan 17, 2010

How to resolve this apache2 problem I keep getting, I have installed a debian LAMP server with ispconfig3 and everytime I reboot apache fails to start, I don't know and I have done some research but nothing seems to work, which leads me to reinstall everything from scratch again, I think I have reinstalled at least 10x or more.

When ever I reboot I get the following error

Code:

View 9 Replies View Related

Ubuntu Servers :: Perl .pl, Cgi-bin Apache2 Configuration On 9.10?

Jan 18, 2010

Very new to Ubuntu (linux) in general and read various forum and threads to get .pl file to run on a new Ubuntu 9.10.My cgi-bin is in /var/www/site/cgi-bin. The server will run 2 websites site1 and site 2. Site2 is html only and site1 has some cgi and pl files. Everytime i get to the cgi-bin/other_director the browser tries download the file or even if going directly to index.pl. Please find attached my site-available for both default and site1 for your consideration. I also ran a2ensite site1 and a2ensite site2, the reloaded the apache2 serverQuote:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www

[code]....

View 2 Replies View Related

Ubuntu Servers :: Apache2 - HTAccess Will Not Work

Feb 9, 2010

I'm a newb when it comes to linux operating systems so I'm attempting to get better through experience. I work for a web development company and we use Ubuntu for our operating systems (the programmers at least). Anyways, I'm trying to install LAMP services and get them working. I have all L.A.M.P. services installed... but Apache2 is giving me a problem. I have an .htaccess file installed in a directory under my document root. But Apache2 is not interpreting it. I have AllowOverride All on but I can't figure it out. I did make a bogus .htaccess file attempting to make apache give me a error, nothing.

View 2 Replies View Related

Ubuntu Servers :: Apache2 Is Missing Apxs2?

Mar 9, 2010

I'm configuring an Ubuntu server that's running x64 9.1. I installed the LAMP stack during the os installation and now I need to build an apache2 module. It appears as though apxs is missing. I've installed apache2-threaded-dev but am still missing apxs2.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved