Jump to content

rashid

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rashid's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there, I wondered if anyone ran into a similar problem like this. I have configured 4 name-based vhosts on my MAC, but when I add another 1 it stops working. I run a apachectl configtest which says 'syntax ok' then I try to restart apache and it fails. When I remove the 5th vhost it all works again. Ive double checked typos, made sure etc/hosts is correctly configured. Basically I copied a working vhost, pasted it in my httpd.conf and just edited it to the new directory name but it just fails. Its weird. So I was wondering if there was a limit set that im not aware of that allows me only 4 vhosts and any more than that it fails. Also if anyone knows how to configure lighty(lighttpd) with vhosts please let me know, as Im toying around with Ruby on Rails and they recommend to give this a try. Thanks for reading.... Peace
  2. [!--quoteo(post=387963:date=Jun 26 2006, 03:20 AM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Jun 26 2006, 03:20 AM) [snapback]387963[/snapback][/div][div class=\'quotemain\'][!--quotec--] Not a problem. The only reason I have time to reply here is because the other guys are doing such a great job of replying in other parts of the forum that need attention too :) Hope you sort it out and let me know if need further assitance with this. [/quote] Bane You are the man! I now have a fully functional LAMP server. I checked your links then found out how to disable SELinux by going to /etc/sysconfig/Selinux and changing =enforcing to disabled. Rebooted I then ran ./configure again make & make install started MySQl - restarted apache but ran a systax check first. Looked all ok, then tested my php page from the DIR where all my html docos are stored. piece a cake. I'll be looking to run this on Gentoo very soon. Thanks again for your time. Peace...
  3. [!--quoteo(post=387544:date=Jun 24 2006, 03:06 PM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Jun 24 2006, 03:06 PM) [snapback]387544[/snapback][/div][div class=\'quotemain\'][!--quotec--] sounds like an SELinux issue. i can't confidently tell you the solution because i've never tried this but you would probably have to manipulate the .so file using chcon so that you can manipulate the security settings of that particular .so file. It seems as though SELinux is not allowing apache to access it because the system sees it as an unauthorized file. [a href=\"http://en.wikipedia.org/wiki/Security_Enhanced_Linux\" target=\"_blank\"]Security-Enhanced Linux (SELinux)[/a] [a href=\"http://www.nsa.gov/selinux/info/faq.cfm\" target=\"_blank\"]SELinux Frequently Asked Questions (FAQ)[/a] [/quote] Bane thx for being the only one bothered to reply, appreciate that. i will look into this though Im sure I disabled SELinux at the install stage. I'll check the links you posted, thanks very much dude.
  4. Can someone please tell me what this means [root@magic ~]# apachectl -t httpd: Syntax error on line 54 of /www/conf/httpd.conf: Cannot load /www/modules/libphp5.so into server: /www/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied I have installed everything perfectly. I have apache 2 working + made databases and table data in mysql. As soon as I try to complete the P of the LAM it keeps acting the fool. Here is my install process, please please advise me where Im going wrong... gunzip php tar -xvf php yum -y install libxml2-devel (./configure will not work without this and neither will make) vi php_install cd /usr/local/src/php-5.1.4 ./configure \ --prefix=/usr/local/php --with-apxs2=/www/bin/apxs \ --with-mysql=/usr/local/mysql \ --enable-ftp \ --enable-trans-sid chmod 755 php_install ./php_install (this goes alll ok with no errors) make (watch verbose output) Build complete. (It is safe to ignore warnings about tempnam and tmpnam). make install. cp php.ini-dist /usr/local/lib/php.ini and then when I make my test php page called index.php as I have added the following in httpd.conf <IfModule dir_module> DirectoryIndex index.php default.php index.html index.htm </IfModule> AddType application/x-httpd-php .php .phtml this is when I get the above error when running apachectl -t /graceful/start/restart/stop any of these switches returns the error. Im so hacked off! This is all I need to get working so I can work on data etc. Im trying to build this quicktime so I can get some HTML/CSS files on to my server and start testing. Im grateful for all your time in reading this... hope to hear from anyone soon. Box is Fedora Core 5 on Compaq Deskpro 256Mb+ 9.5Gb HDD Thx+Peace
  5. Thorpe thanks for the good advice. I think source is the way to go, and Im also looking at Gentoo as an alternative to fedora core 5. I want to have full control over whats installed with less package-bloat. cheers.
  6. Hi there, just registered and looking for some advice on building my LAMP server. I was almost on my way to completing my build with the following Fedora 5 Linux Apache (httpd-2.2.2) MySQL 5.0 PHP 5.0. I had installed from source the LAM & then installed PHP. All of a sudden my vhosts-apachectl would not work. I had edited my /etc/hosts on my windows box to go to the IP address of my linux box to test vhosts. However after PHP I couldnt even get apachectl start to work. Then I got into this debate at work regarding which is better to use, source of binaries. For the benefit of upgrading I have been RPM's are better. But every LAMP guide I've read instructs you to build from source. Can anyone who has successfully built a LAMP let me know the pro's & cons. Id rather use source as Im trying to learn how my system works rather than letting it do things that I have no knowledge of. For instance, most guides say install to /usr/local/src but yum would put install to /usr/bin/ ... My apache install went sweet with no probs and that was source and I ran the usual ./configure & make / make install. MySQL went fine and I even made some databases/tables. Since It wouldnt work I just wiped the box and done a clean install again, I've currently just installed httpd again, which works fine, and am debating how I should continue. A LAMP server built on source as well as binaries would probably not be the best way forward. I appreciate anyone reading this and taking the time to reply. Rashid
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.