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.
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
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?
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:
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
I'm using debian 5 x64 with xfce.Is there a way to configure (start/stop/restart) services (especially Apache2, mySQL and PHP) using a graphical or cli tool? I tried to use sysv-rc, sysv-rc-conf, rcconf and rc-conf in the terminal but Bash didn't find them (Although Synaptic show that sysv-rc is installed).
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...
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?
I want to learn perl CGI. I tried to configure it on apache server. But when I was searching about it in the net, I faced some difficulties. Each and every post has been leaded me in different way. I am confused now. I have done this,
1. Installed this libapache2-mod-perl2 module
2. Then I checked the /etc/apache2/mods-available/ using ls command for checking the module availability.Here I mentioned the output of ls command.
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80 no listening sockets available, shutting down Unable to open logs failed!
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?
I'm trying to install Image magick on debian 5.0.1 using pecl install imagick I understand that I need to install php5-dev to get phpize on my system. apt-get install php5-dev appears to run without any problems - but it isn't adding phpize to my system, and therefore I can't install imagick.
Since upgrading from Wheezy to Jessie I have not been able to start the MySQL-server. When I do a "systemctl start mysql" I get the following answer on the console:
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details. Entering 'systemctl status mysql.service' the answer is: ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql) Active: failed (Result: exit-code) since Don 2015-06-18 18:35:41 CEST; 4min 1s ago Process: 11272 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
syslog and hostname.err don't show any pertinent messages.
I need to tune the mysql and apache server for the comparatively busy webserver. My scenario is like this.
1. The Web request is around 2000 request at a time or more. 2. Each web request will generate one mysql query. 3. The query to database is all read. 4. This server load will be at peak for around 3-4 hours after that the load will subside. As the task will be published, around 300,000 will be viewing the page.
5 quad servers are deployed, load is balanced via DNS but performance is not as expected. Centos 5.5 is used as OS. Top command shows The mysql process is around 185%!
I had a hard drive failure and have recovered (rsync) my backup root filesystem onto a new drive. This all seems to be fine, except that at least two services no longer start: mysql and apache2.I can start successfully both through
although mysql throws a warning about Upstart. Neither start automatically.My system is Ubuntu 10.04.1 LTS x86_64. Part of my reolution actions has involved a kernel update to 2.6.32-27-generic.I have tried to resolve the mysql issue first:
Code:
sudo update-rc.d -f mysql remove sudo update-rc.d mysql defaults
Code:
sudo apt-get remove --purge mysql-server sudo apt-get install mysql-server adding them /etc/init.d/... start commands to /etc/init.d/rc.local script and to a session startup script
checking the services are in rcX.d (using bum and sysv-rc-conf) Ensuring there's a .conf file in /etc/init (which there is).I can't see anything in syslog which would suggest if the system has tried to start these but failed, but then I may be looking in the wrong place. I think they're not starting at all. I wonder if it's something to do with the restore, perhaps symlinks?
I use apache2 with virtual host and I 've a solution of Webftp who run on it. This solution send automatically email when a new client register himself. In the header of the mail I look this "Content-type: text/html". But when I look this mail with Outlook 2007 the accents are bad coding.It's a script who generate this Html content email.
At the moment I am having a problem with the MySQL server on my VPS. It's a completely fresh install of both Debian 5 and MySQL but the problem is upon logging in I get:
[root@boris ~]#mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Just setup an Apache2 server, and I would like to setup a login. I also wanted to use the same method that is setup for vsftpd For vsftpd I've created a mysql database.... structured as:
Code: mysql> use vsftpd Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> describe accounts;
I think this goes here, but I'm not sure. I decided that XAMPP had been troublesome enough. MySQL never worked. So I decided to instal the LAMP stack offered by YaST. I went about installing it thinking that it would all work. But it seems that I was wrong. So I try to start mysql, and here's what I get:
Code: the-matrix:~ # mysql start ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) or Code: the-matrix:~ # rcmysql start Starting service MySQL warning: /var/mysql/mysql.sock didn't appear within 30 seconds chmod: cannot access `/var/run/mysql/mysqld.pid': No such file or directory
i am using liferay5.2(mysql included in the download pack) on fedora. while liferay is working fine but i cannot connect to mysql.i am getting the error
[ [root@localhost ~]# ln -s /var/lib/mysql/mysql.sock /tmp [root@localhost ~]# /etc/init.d/mysqld start Timeout error occurred trying to start MySQL Daemon.
[code]....
i didnt find the mysql.sock file in the location /var/lib/mysql/mysql.sock. i cannot find the portal-ext.properties file also to make intial settings.
Installation of SUSE 11 server now when I try to configure apache2 (opening port 80) I get a "cannot adjust apache2 service" error??? Can anyone shed some light on this.
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.
I have a ubuntu10.04 server 64bit, my application can under run under php5.2.x. So there anyway i can install the php5.2.x in ubutnu 10.04 without the need to source compile?
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:
I have a personal apache server with php5 module in it that I have set to host user directories Host/~username. When I introduce any errors to the php file, such as echo "Syntax error; , I get a blank white screen. The error exists in the apache log file in /var/log.
I have found the php.ini file in and found every occurance of "error" in it and set it to "On" or E_ALL depending on what the argument wants. I still get a white screen.
I am having no luck configuring ProFTPd on a Debian Lenny production server we use to host our MySQL databases and a few websites. I had originally set it up so I could login and manage our internal sites, but I have the need to allow a few clients in to access their sites that we host. I am trying to root the users in their site directory, which would be "/sites/www.whatever.com/".
It just hit me while typing this. Is it possible to create a user without a shell to prevent login via SSH and set the home folder to /sites/whatever instead of /home/username? That would allow me to continue operating with my current configuration and root them in their site while preventing SSH logins.