Fedora Servers :: Upload Something Via Http To MySQL?

Nov 18, 2009

I have a server (fedora 11 , LAMP). I want to know if I can upload something to my server via http (I mean from WAN),and this data stream can directly run into MySQL database . Do I need to write some special codes on my web page , or just change apache's configure file

View 7 Replies


ADVERTISEMENT

Programming :: Upload Zip With Textfiles Via Http --> Import Into MYSQL?

Jun 13, 2011

I want the LAMP server to present an upload page to the user The user uploads a zip file containing txt files which are tables in clear-text format The server : opens the zip validates the text files (going to skip this for now, but will try to make later) converts the files as here imports them to MYSQL tables All this is supposed to happen automatically, then the user can immediately use the website with the updated data How to implement this (esp. the first part with the zip file)

View 1 Replies View Related

Ubuntu Servers :: 10.04 No Upload Folder In /tmp With Php Upload Script?

Jun 13, 2010

have setup a LAMP server with ubuntu 10.04 server edition x86 for my study in VMware Workstation 7.1 For a assignment I had to make a php script that would load a file up to the server and set the name in a mysql database. According to the book the server should set the image in a cryptic folder in the /tmp/ folder.

This isn't working and i also try'd locate and find to find the image i uploaded. I checked the php.ini and file uploads were on but no folder so i set that one to /tmp/ but still no images. Can anyone help me with enabling this function?

View 3 Replies View Related

Ubuntu Servers :: Nagios On 10.04 Server Using Apt-get - HTTP WARNING: HTTP/1.1 404 Not Found

Aug 4, 2010

I installed Nagios on my Ubuntu 10.04 server using apt-get and when I accessed the web console, everything was OK. I made some changes to apache (creating some new virtual sites) and since then Nagios gives me a warning message for HTTP with the message, HTTP WARNING: HTTP/1.1 404 Not Found. The sites that I created are working perfectly. I noticed that the attemps are 4/4. Does this need to be reset or does Nagios automatically reset that once it detects the issue is resolved?

View 1 Replies View Related

Security :: Folder Permissions To Avoid File Upload By Http User?

Feb 24, 2011

However, configured a website on a dedicated server using WHM/cPanel. The site was uploaded using the master account for the website.

The security issue is public users are able to upload files on to my server via the website. They could even access the root and execute whatever they want on the server.

I have consulted with 2-3 Linux experts. According to them, the PHP user has rights to execute anything on the server or upload & store files in whichever folder they want.

Can I protect my folders to avoid file uploads via the website. The application has security vulnerabilites. However, I want to prevent hackers to enter my site until the vulnerabilities are fixed.

View 2 Replies View Related

Fedora Servers :: WordPress Can't Upload?

Jun 18, 2009

But I can't upload files or pictures all the time.Everytime I tried to upload , it tips me : "can't create file or folder ...... . is its parents folder writable by the server?"Now it's considered as a bug.But I tried 3 methods introduced on the net . But none of them worked. They are : 1: change the folder permission to 777 , not work for me.2: change the URL to "wp-content/uploads" not "/wp-content/uploads" , not work for me.3: use full url not "wp-content/uploads" also not work.

View 8 Replies View Related

Fedora Servers :: Apache Php Upload Not Work

Dec 24, 2010

I've write a php code to upload files. by move_uploaded_file. I've given 777 to the folder. But file upload unsuccess, error log show no premission. I test the code in Centos it wotks. I change the dest folder in Fedora to /tmp it works, but it only work on /tmp. neither /tmp/abc nor /temp. I guess it's a setting problem on apache or php. I also copy http.conf and php.ini from Centos, but mod_file_cache and mod_mem_cache not find in Fedora.

View 2 Replies View Related

Fedora Servers :: Can't Upload File To Empty Home Directory

Feb 1, 2009

I just installed FC10 and then used yumex to install the vsftpd FTP daemon package. I'm using the vsftpd.conf file that came with the distribution, and its almost identical to one I copied from my FC2 machine's working set-up. When I try to FTP in as a known system user I'm presented with my home directory /home/myusername/. The directory appears empty to the FTP program, but isn't in reality. I can't upload a file to the empty home directory. I can move up the directory hierarchy to /home/, but again that appears as an empty directory.

I don't think it's a vsftpd.conf file issue. I've tried everything I can there. Could it have something to do with permissions? I fiddled with those, but couldn't make an FTP directory listing work.

[code]....

View 5 Replies View Related

Fedora Servers :: Change The Http://localhost/ To Own Name?

Feb 24, 2009

how do i change the http://localhost/ to my owe name

View 1 Replies View Related

Fedora Servers :: HTTP - Can't See Websites Externally

Dec 7, 2009

HTTP - Can't see website(s) externally

View 4 Replies View Related

Fedora Servers :: Streaming Two Webcams Via Http?

Aug 10, 2011

I've got an old laptop with F15 installed. I want to use it together with two usb-webcams to monitor my wood boiler in the basement. And I want to stream it via http. I tried zoneminder and it didn't found my cheap cams. I tried vlc but it didn't work that well. Are there any other options to put out the streams on a webpage? Sent from my Transformer TF101 using Tapatalk

View 3 Replies View Related

Fedora Servers :: Can't Edit HTTP Server Configuration In Fedora 13

Aug 12, 2010

I am trying to edit my http configuration (menu System -> Administration -> Server Settings -> HTTP) and it seems to be impossible. My Server Name comes up empty and I want to change the default Webmaster email address root@localhost to something else, but I can't change anything. I enter mu new server name and e-mail address, but when I click on the OK button I get a popup box which asks me if I want to save and exit. I click on the Yes button, and the box disappears. HTTP Server configuration does not exit and my changes are not saved.

View 3 Replies View Related

Fedora Servers :: HTTP Config Tool Not Running On F12

Mar 23, 2010

I just done a brand new install of fed12 and did all the yum updates. Apache seems to start ok and I always liked the http config tool but it won't run on Fedora 12. I downloaded and installed system-config-httpd.noarch 5:1.4.6-1.fc12 and it all went fine but when I try to start it I get the usual box asking for my root password, I type it in and press enter, the box disappears and then....nothing. If I run system-config-httpd in a terminal I get the same box asking for root passowrd but when I enter it I get a long scroll of text which ends with:

line 4: 2137 Aborted (core dumped) /usr/bin/python /usr/share/system-config-httpd/ApacheConf.py

I don't know what causes this. Is there any way to get the http config tool working?

View 2 Replies View Related

Fedora Servers :: Asterisk Mini Http How Start

Jun 6, 2010

I have fedora 13, and installed asterisk.. Before I had centos and have my asterisk running to test and learn.. but in fedora I see there is a http miniserver for admin asterisk..I edited enable, port and ip in the file http.con but when I try URL...I got 404 page no found Asterisk server.

View 1 Replies View Related

Fedora Servers :: Configuring Non-standard Http Port?

Jun 23, 2011

It appears that my ISP is blocking port 80, so I can't set up a proper website on my home computer. I'd like to choose a different port to use (they block 443 also), and I'm not sure how to do this with Fedora (or any Linux flavor for that matter

View 2 Replies View Related

Fedora Servers :: HTTP Access - Browser Unable To Establish Connection

Apr 20, 2009

I need to install a program by using the address http://255.255.255.255. However, when I type this address in my browser, I get the following error: "Failed to connect. Firefox can't establish a connection to the server at 255.255.255.255. Though the site seems valid, the browser was unable to establish a connection." Is there an easy way to put this site into the air?

View 3 Replies View Related

Fedora Servers :: Apache - Can't Acces Http Remotely But Https Works

Jan 17, 2010

I have 2 web server in my office : http and https. You will find attached the httpd.conf and ssl.conf. I can acces the https server from home, but not the http one.

What I did :
configure the router to forward port 80 to my fedora 11 machine
open port 80 with system-config-network
created a virtualhost

The same exact steps have been done for port 443

I can access both server locally but only the https server remotelly.

Here are my iptables :

Code:

you can try to acces my servers using [url]

I made httpd to listen to port 8080, and done all the port forwarding/opening stuf, and it works. so is it a bug ?

Finally found my error seams like turning off UseCanonicalName to off did the trick

I really think it's a bug now. It was definitively working last week, I just added content to the main host of my website, and now i can't acces it from port 80. If someone think it's not a bug or find someting missing/wrong in my conf file.

View 2 Replies View Related

Fedora Servers :: Mysql At Boot Time In 10 / Get Mysql To Start At Boot?

Jul 28, 2009

I am trying to get mysql to start at boot without any success.

The mysqld scripts works fine when run from the command line, but it does not work when i use the links created by chkconfig. I checked the boot.log and found that mysql starts but then it stops or gets shutdown. This is the log message:

Starting mysqld daemon with databases from /data/mysql [ OK ]
Starting cups: [ OK ]
STOPPING server from pid file /var/run/mysqld/mysqld.pid
starting DenyHosts: /usr/bin/denyhosts.py --daemon --config=/usr/share/denyho
sts/denyhosts.cfg
090727 04:35:47 mysqld ended

The same init script works fine in Ubuntu.

View 2 Replies View Related

Fedora Servers :: Cannot Start Apache - No Read / Write Access To HTTP Files

Jan 14, 2009

I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:

Code:
Summary:
SELinux prevented httpd reading and writing access to http files.

Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.

Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"

Fix Command:
setsebool -P httpd_unified=1

I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>

<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.

View 10 Replies View Related

Server :: MySQL & HTTP Process Allocation To Separate Processors

Sep 29, 2010

I have 2 CPU 8 GB RAM server running MySQL & HTTP server with apps using LAMP architecture. Since last few days we are having some performance problems.While looking at the problem i came to know both mysql and http are almost taking 100% cpu time of a single processor and the second processor is free. redirecting the mysql load to one cpu and http load to the second one? Is it possible? If so how to do it?

View 1 Replies View Related

Ubuntu Servers :: Mysql Error Stopping MySQL Database Server Mysqld?

Jun 17, 2010

I have installed Mysql in Ubuntu 9, for the use of roundcube database.After installing iam getting the error like this

* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [ OK ]
* Checking for corrupt, not cleanly closed and upgrade needing tables.

So because of this in the roundcube configuration its giving the error message that MYSQL is not installed. So Kindly give me a idea how to solve this.

View 1 Replies View Related

Ubuntu Servers :: Mysql ERROR 1045 \ Trying To Allow Remote Access To Mysql?

Jan 14, 2011

i was trying to allow remote access to mysql by following mysql was running perfectly until i got here :

Code:
/sbin/iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp --destination-port 3306 -j ACCEPT
i changed my.cnf bind-address line to : "bind-address = 127.0.0.1" and nothing

[code]....

View 4 Replies View Related

Fedora Servers :: MySQL Acees Over LAN?

Oct 22, 2010

I've setup a fedora core 13 server and I am running mysql on it. I wanted to use MySQL Workbench on my Windows 7 computer on the same LAN to connect to the database. Currently I am unable to connect to the database except if I go through ssh. What ports do I need to open on my firewall? Is there any specific configuration that I need to do to my MySQL database to get it working?

View 3 Replies View Related

Fedora Servers :: Php Not Seeing Mysql Module Installed ?

Mar 4, 2009

long time user of redhat, first time user of fedora...

Installed fedora 10 to the hard drive (building a new web server, switched from RHEL5)

Started to install everything I need, apache, php, mysql, odbc, iseries access for linux, etc...

Got to the php modules, installed php-odbc, php-mysql, etc... but php doesn't see the mysql module

doing a phpinfo() produces -without-mysql

uninstalled it, reinstalled it (this is all done through kpackagekit so far) - no good

uninstalled and tried to reinstall via yum, no good

all the config files are fine - copied my php.ini from the old server and let the installs create the new mysql ini files

how to get it in ? this is my last step before i can begin pen and vulnerability testing it.

View 1 Replies View Related

Fedora Servers :: Changing MySQL Datadir?

Aug 16, 2009

Has anyone been able to successfully change MySQL's default datadir in Fedora? I've tried on two machines now (F7 and F11), but run into the same problem on both. Here is what I did:

1. shutdown MySQL (service mysqld stop)
2. create new mysql directory (e.g. ~/mysql/) and set ownership to mysql:mysql
3. move tables from /var/lib/mysql to the new directory (I've tried moving only one user-created table, and also moving system tables with same result).
4. edit my.cnf and change "datadir" to point to new location
5. start MySQL (service mysqld start)

[Code]...

View 7 Replies View Related

Fedora Servers :: MYSQL MAX Connection Per User

Sep 28, 2009

I am running a mysql 5.0.41 community edition server.i have a user x and i need to set max connection limit for the user... Can any one give the correct syntax to update the current user to include max connection for the user x.

View 1 Replies View Related

Fedora Servers :: MySQL CPU Usage Spiking?

Oct 15, 2009

Having major problems with mysqld causing CPU usage to rocket to 100% on one core for a short time, which usually drops back down again to 1-7%, though sometimes it can last an extended period of time. This is a problem because things using mysql become unresponsive in this time.

[Code]...

View 4 Replies View Related

Fedora Servers :: Windows Xp Does Not Connect In MYSQL 5.1?

Dec 15, 2009

I installed Fedora 12 with package standard of the MYSQL, configured this the same twirling in such a way localhost as in one it schemes with windows VISTA, to put I have others 4 you scheme with windows XP that I do not obtain to have access in the MYSQL. What I have to make pra these you scheme with XP to have access?

View 2 Replies View Related

Fedora Servers :: MySQL Connection Failed

Jun 26, 2010

Let me show you the Details:

[code]...

So that means the User Test can connect from any host without password and with the named privileges, but he has no right to grant any privileges. CONSOLE:

[code]...

View 1 Replies View Related

Fedora Servers :: MySQL Doesnt Wanna Set A Pass?

Jun 24, 2009

This is my first post. After executing /usr/bin/mysqladmin -u root password 'thepass' as a root, I get this:

Code:
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
SELinux is off.

View 14 Replies View Related







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